read<T extends Object> method

T read<T extends Object>(
  1. Type type
)

Reads a value from the box based on type.

Implementation

T read<T extends Object>(Type type) {
  final value = _mocksMap[type] as T;
  debugPrintSynchronously(
      '${UnitLog.tag} 📦 Reading \'$type\' value: $value as ${value.runtimeType} from mocks!');
  return value;
}