FieldDefinition<O> class

Constructors

FieldDefinition.new(String name, FutureOr<bool?> shouldBeRequiredOverall(GtfsDataset dataset, List<FieldDefinition> header, List<MapRecord> records), {FutureOr<bool?> shouldBeRequired(GtfsDataset dataset, List<FieldDefinition> header, MapRecord record)?, required FieldType<O>? type, bool primaryKey = false, String? defaultValue})

Properties

defaultValue String?
final
hashCode int
The hash code for this object.
no setteroverride
name String
final
primaryKey bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldBeRequired FutureOr<bool?> Function(GtfsDataset dataset, List<FieldDefinition> header, MapRecord record)?
Should the field be required. true means it's mandatory. null means it's optional. false means it's forbidden.
final
shouldBeRequiredOverall FutureOr<bool?> Function(GtfsDataset dataset, List<FieldDefinition> header, List<MapRecord> records)
final
type FieldType<O>?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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