registerFactory<T extends Object> abstract method

void registerFactory<T extends Object>(
  1. T fn(), {
  2. String? name,
})

Registers a factory function that produces an instance of any Object type whenever it's called.

Implementation

void registerFactory<T extends Object>(T Function() fn, {String? name});