getSingletonOrNullT method

FutureOr<Object>? getSingletonOrNullT(
  1. Type type, {
  2. Entity<Object>? groupEntity,
  3. bool traverse = true,
})
inherited

Implementation

FutureOr<Object>? getSingletonOrNullT(
  Type type, {
  Entity? groupEntity,
  bool traverse = true,
}) {
  return (getOrNullK(
    Entity.type(Lazy, [type]),
    groupEntity: groupEntity,
    traverse: traverse,
  ) as Lazy?)
      ?.singleton;
}