getAsync<T extends Object> abstract method
Returns a Future of an instance that is created by an async factory or a Singleton that is
not ready with its initialization.
for async factories you can pass up to 2 parameters param1,param2
they have to match the
types given at registration with registerFactoryParamAsync()
type
if you want to get an instance by a Type object instead of a generic parameter.This should
rarely be needed but can be useful if you have a runtime type and want to get an instance
Implementation
Future<T> getAsync<T extends Object>({
String? instanceName,
dynamic param1,
dynamic param2,
Type? type,
});