registerCachedFactoryAsync<T extends Object> abstract method
void
registerCachedFactoryAsync<T extends Object>(
- FactoryFuncAsync<
T> factoryFunc, { - String? instanceName,
Like registerFactoryAsync but holds a weak reference to the last created instance if the instance wasn't garbage collected yet it will return this instance instead of creating a new one
Implementation
void registerCachedFactoryAsync<T extends Object>(
FactoryFuncAsync<T> factoryFunc, {
String? instanceName,
});