AircraftContract constructor
AircraftContract({
- required int id,
- required String reg,
- required bool active,
- required bool isFreighter,
- required bool verified,
- required int numRegistrations,
- String? serial,
- String? hexIcao,
- String? airlineName,
- String? iataType,
- String? iataCodeShort,
- String? icaoCode,
- String? model,
- String? modelCode,
- int? numSeats,
- DateTime? rolloutDate,
- DateTime? firstFlightDate,
- DateTime? deliveryDate,
- DateTime? registrationDate,
- String? typeName,
- int? numEngines,
- EngineType? engineType,
- String? productionLine,
- double? ageYears,
- AircraftContractImage? image,
- List<
AircraftRegistrationContract> ? registrations = const [],
Returns a new AircraftContract instance.
Implementation
AircraftContract({
required this.id,
required this.reg,
required this.active,
required this.isFreighter,
required this.verified,
required this.numRegistrations,
this.serial,
this.hexIcao,
this.airlineName,
this.iataType,
this.iataCodeShort,
this.icaoCode,
this.model,
this.modelCode,
this.numSeats,
this.rolloutDate,
this.firstFlightDate,
this.deliveryDate,
this.registrationDate,
this.typeName,
this.numEngines,
this.engineType,
this.productionLine,
this.ageYears,
this.image,
this.registrations = const [],
});