factoryAsync<T extends Object> method
void
factoryAsync<T extends Object>(})
a conditional wrapper method for getIt.registerFactoryAsync
it only registers if _canRegister
returns true
Implementation
void factoryAsync<T extends Object>(
FactoryFuncAsync<T> factoryfunc, {
required String instanceName,
required Set<String> registerFor,
}) {
if (_canRegister(registerFor)) {
getIt.registerFactoryAsync<T>(factoryfunc, instanceName: instanceName);
}
}