saveSnapshot method

Future<void> saveSnapshot()

Implementation

Future<void> saveSnapshot() async {
  _snapshot = {};
  for (final entry in tables.entries) {
    final rows = await entry.value.scan();
    _snapshot![entry.key] = rows.map((r) => r.toJson()).toList();
  }
}