registerFactory<T extends Object> abstract method
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});