Future<Map<String, V>> toMap<V>() async { assert(_box != null, 'the store is not connected'); return _box!.toMap().cast<String, V>(); }