read<T extends Object> method
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;
}