create method

ComponentRef<T> create(
  1. Injector injector, [
  2. List<List<Object>>? projectableNodes
])

Creates a new component with the dependency injector hierarchy.

WARNING: While projectableNodes is a part of the public API, support is limited and not recommended - it relies on a brittle undocumented structure. Please reach out before using.

Implementation

ComponentRef<T> create(
  Injector injector, [
  List<List<Object>>? projectableNodes,
]) {
  final hostView = _viewFactory();
  return hostView.create(projectableNodes ?? const [], injector);
}