read property

Map<String, String> read

Read all the key-value pairs from the store synchronously

Prefer readAsync to avoid blocking the UI thread. Otherwise, this has slightly better performance.

Implementation

Map<String, String> get read => Map.fromEntries(
      _db.metadata.where().findAllSync().map((m) => MapEntry(m.name, m.data)),
    );