defineCreator static method

dynamic defineCreator(
  1. Type type,
  2. Function instanceCreator,
  3. Function arrayCreator
)

Implementation

static defineCreator(
    Type type, Function instanceCreator, Function arrayCreator) {
  _factory.add(type, FactoryEntry(type, instanceCreator, arrayCreator));
}