shouldBeRequired property
FutureOr<bool?> Function(GtfsDataset dataset, List<FieldDefinition> header, MapRecord record)?
shouldBeRequired
final
Should the field be required. true means it's mandatory. null means
it's optional. false means it's forbidden.
existingFields is the list of parsed fields in the first line of the file.
Implementation
final FutureOr<bool?> Function(
GtfsDataset dataset,
List<FieldDefinition> header,
MapRecord record,
)?
shouldBeRequired;