getAllValues method
Implementation
@override
Future<Map<String, V>> getAllValues() async {
final box = await _getBox();
final keys = box.keys.toList();
if (box is LazyBox) {
final values = await Future.wait(keys.map(box.get));
return {
for (var i = 0; i < values.length; i++)
Uri.decodeComponent(keys[i] as String): values[i] as V
};
}
return (box as Box)
.toMap()
.map((k, v) => MapEntry(Uri.decodeComponent(k.toString()), v as V));
}