getMap<T1, T2> method
Returns a map computed from the elements in the table using the provided keyFunc and valueFunc.
The keyFunc is a function that takes a JsonRow and returns a value of type T1.
The valueFunc is a function that takes a JsonRow and returns a value of type T2.
Implementation
Map<T1, T2> getMap<T1, T2>(T1 Function(JsonRow) keyFunc, T2 Function(JsonRow) valueFunc) => Map.fromEntries(_table.where((e) => e[keyName] != null).map((e) => getMapEntry(e[keyName] as T, keyFunc, valueFunc)));