getAsync<T extends Object> method
Returns an 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()
Implementation
Future<T> getAsync<T extends Object>(
{String? instanceName, dynamic param1, dynamic param2}) =>
locator.getAsync<T>(
instanceName: instanceName,
param1: param1,
param2: param2,
);