get method

  1. @override
Future<V?> get(
  1. String key
)

Implementation

@override
Future<V?> get(String key) async {
  key = _toHiveKey(key);
  final box = await _getBox();
  if (box is LazyBox) return await box.get(key) as V?;
  return (box as Box).get(key) as V?;
}