fieldIndex method
Returns the zero-based schema index of fieldName.
Field lookup is case-insensitive. Throws when the field is unknown.
Implementation
int fieldIndex(String fieldName) {
final index =
_schemaCoordinator.fieldIndexByName[FdcFieldName.normalize(fieldName)];
if (index == null) {
throw ArgumentError.value(fieldName, 'fieldName', 'Unknown field.');
}
return index;
}