staticFieldDefinitions property

List<FieldDefinition> staticFieldDefinitions
final

Implementation

static final List<FieldDefinition> staticFieldDefinitions = [
  FieldDefinition(
    'agency_id',
    (existingDataset, rawHeader, records) => records.length > 1 ? true : null,
    type: const IdFieldType(displayName: 'Agency ID'),
    primaryKey: true,
  ),
  FieldDefinition(
    'agency_name',
    (existingDataset, rawHeader, records) => true,
    type: const TextFieldType(),
  ),
  FieldDefinition(
    'agency_url',
    (existingDataset, rawHeader, records) => true,
    type: const UrlFieldType(),
  ),
  FieldDefinition(
    'agency_timezone',
    (existingDataset, rawHeader, records) => true,
    type: const TimezoneFieldType(),
  ),
  FieldDefinition(
    'agency_lang',
    (existingDataset, rawHeader, records) => null,
    type: const LanguageCodeFieldType(),
  ),
  FieldDefinition(
    'agency_phone',
    (existingDataset, rawHeader, records) => null,
    type: const PhoneNumberFieldType(),
  ),
  FieldDefinition(
    'agency_fare_url',
    (existingDataset, rawHeader, records) => null,
    type: const UrlFieldType(),
  ),
  FieldDefinition(
    'agency_email',
    (existingDataset, rawHeader, records) => null,
    type: const EmailFieldType(),
  ),
];