getMapEntry<V> method
Returns a field
MapEntry from row
.
Implementation
MapEntry<String, V?>? getMapEntry<V>(String field, Iterable<Object?> row) {
var idx = getFieldIndex(field);
if (idx == null) return null;
var val = row.elementAt(idx);
return MapEntry(field, val as V?);
}