getAsyncUnsafeT<T extends Object> method

Future<T> getAsyncUnsafeT<T extends Object>(
  1. Type type, {
  2. Entity groupEntity = const DefaultEntity(),
  3. bool traverse = true,
})
inherited

Retrieves an asynchronous dependency unsafely, returning a future of the instance, directly or throwing an error if not found.

Implementation

@pragma('vm:prefer-inline')
Future<T> getAsyncUnsafeT<T extends Object>(
  Type type, {
  Entity groupEntity = const DefaultEntity(),
  bool traverse = true,
}) {
  return getAsyncUnsafeK<T>(
    TypeEntity(type),
    groupEntity: groupEntity,
    traverse: traverse,
  );
}