getPairs<T1, T2> method
- (T1, T2) func()
Returns a list of pairs 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
List<(T1, T2)> getPairs<T1, T2>((T1, T2) Function(JsonRow) func) => this._table.where((e) => e[keyName] != null).map((e) => getPair(e[keyName] as T, func)).toList();