createComponent<T extends Object> abstract method
Instantiates a single component and inserts its host view into this
container at the specified index
.
The component is instantiated using its ComponentFactory.
If index
is not specified, the new view will be inserted as the last
View in the container.
You can optionally specify the Injector that will be used as parent for the component.
Returns the ComponentRef of the host view created for the newly instantiated component.
Implementation
ComponentRef<T> createComponent<T extends Object>(
ComponentFactory<T> componentFactory, [
int index = -1,
Injector? injector,
List<List<Object>>? projectableNodes,
]);