factoryCachedParamAsync<T extends Object, P1, P2> method
void
factoryCachedParamAsync<T extends Object, P1, P2>(})
a conditional wrapper method for getIt.registerCachedFactoryParamAsync
it only registers if _canRegister returns true
Implementation
void factoryCachedParamAsync<T extends Object, P1, P2>(
FactoryFuncParamAsync<T, P1?, P2?> factoryFunc, {
String? instanceName,
Set<String>? registerFor,
}) {
if (_canRegister(registerFor)) {
getIt.registerCachedFactoryParamAsync<T, P1, P2>(
factoryFunc,
instanceName: instanceName,
);
}
}