registerAsType method Null safety

void registerAsType(
  1. dynamic locator,
  2. dynamic type
)

Registers a component using its type (a constructor function).

  • locator a locator to identify component to be created.
  • type a component type.