getEntry method

  1. @override
Future<E?> getEntry(
  1. String name,
  2. String key
)

Returns the partition entry specified by key.

  • name: The partition name
  • key: The key

Implementation

@override
Future<E?> getEntry(String name, String key) {
  final box = _adapter.box<O>(name);

  if (box != null) {
    return Future.value(_readEntry(box.get(key.hashCode), decoder(name)));
  }

  return Future<E?>.value();
}