PositionalFields class

Helper to work with positional fields.

Constructors

PositionalFields(Iterable<String> fields)

Properties

fields Set<String>
The fields names.
no setter
fieldsOrder List<String>
The fields order.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get<V>(String field, Iterable<Object?> row) → V?
Returns a field value from row.
getFieldIndex(String field) int?
Returns the index of a field.
getMapEntry<V>(String field, Iterable<Object?> row) MapEntry<String, V?>?
Returns a field MapEntry from row.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEntries(Iterable<Object?> row) Iterable<MapEntry<String, Object?>>
Converts row to a collection of MapEntry.
toListOfMap(Iterable<Iterable<Object?>> rows) List<Map<String, Object?>>
Converts rows to a list of Map.
toMap(Iterable<Object?> row) Map<String, Object?>
Converts row to a Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited