getMap method

Map<String, dynamic> getMap(
  1. String table
)
inherited

Get a table map from the local dataset.

Implementation

Map<String, dynamic> getMap(String table) {
  if (!tables.contains(table)) throw 'Unknown table: $table';
  return (getRecords(table)..removeWhere((_, record) => record.isDeleted))
      .map((key, record) => MapEntry(key, record.value));
}