read<T extends Object?> method

T read<T extends Object?>(
  1. Object key
)

Reads a value from the box based on key.

Implementation

T read<T extends Object?>(Object key) {
  final value = _mapBox[key] as T;
  debugPrintSynchronously(
      '${IntegrationLog.tag} 📦 Reading \'$key\' value: $value as ${value.runtimeType} from the box!');
  return value;
}