getAsync<T extends Object> method

Future<T> getAsync<T extends Object>({
  1. String? instanceName,
  2. dynamic param1,
  3. dynamic param2,
})

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,
    );