AircraftContract constructor

AircraftContract({
  1. required int id,
  2. required String reg,
  3. required bool active,
  4. required bool isFreighter,
  5. required bool verified,
  6. required int numRegistrations,
  7. String? serial,
  8. String? hexIcao,
  9. String? airlineName,
  10. String? iataType,
  11. String? iataCodeShort,
  12. String? icaoCode,
  13. String? model,
  14. String? modelCode,
  15. int? numSeats,
  16. DateTime? rolloutDate,
  17. DateTime? firstFlightDate,
  18. DateTime? deliveryDate,
  19. DateTime? registrationDate,
  20. String? typeName,
  21. int? numEngines,
  22. EngineType? engineType,
  23. String? productionLine,
  24. double? ageYears,
  25. AircraftContractImage? image,
  26. 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 [],
});