read method

  1. @override
Future read(
  1. String key
)
override

Reads a value from the box with the given key.

Returns null if no value is associated with key.

Implementation

@override

/// Reads a value from the box with the given [key].
///
/// Returns [null] if no value is associated with [key].
Future<dynamic> read(String key) async {
  return _box.get(key);
}