renderPrepend method
Renders this component inside the element with ID parentId
, prepended.
This also checks whether the parent exists.
Implementation
@nonVirtual
Future<void> renderPrepend(Element parentElement) async {
await preRender();
parentElement.insertAdjacentElement('afterBegin', baseInnerElement!);
await postRender();
}