getFactorySyncT method

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

Implementation

Object getFactorySyncT(
  Type type, {
  Entity? groupEntity,
  bool traverse = true,
}) {
  final value = getFactoryT(
    type,
    groupEntity: groupEntity,
    traverse: traverse,
  );
  if (value is Future) {
    throw DependencyIsFutureException(
      type: type,
      groupEntity: groupEntity,
    );
  } else {
    return value;
  }
}