getLazyUnsafeK<T extends Object> method

  1. @protected
FutureOr<Lazy<T>> getLazyUnsafeK<T extends Object>(
  1. Entity typeEntity, {
  2. Entity groupEntity = const DefaultEntity(),
  3. bool traverse = true,
})
inherited

Retrieves the lazily loaded dependency, returning the instance directly or throwing an error if not found.

Implementation

@protected
@pragma('vm:prefer-inline')
FutureOr<Lazy<T>> getLazyUnsafeK<T extends Object>(
  Entity typeEntity, {
  Entity groupEntity = const DefaultEntity(),
  bool traverse = true,
}) {
  UNSAFE:
  return getLazyK<T>(
    typeEntity,
    groupEntity: groupEntity,
    traverse: traverse,
  ).map((e) => e.unwrap()).unwrap();
}