findAsync<S> static method

Future<S> findAsync<S>({
  1. String? tag,
})

Asynchronously retrieves the registered instance of type S.

Useful for dependencies registered via lazyPutAsync.

  • tag: The unique identifier used during registration.

Throws an Exception if no registration is found.

Implementation

static Future<S> findAsync<S>({String? tag}) {
  return currentScope.findAsync<S>(tag: tag);
}