AddressModel constructor Null safety

AddressModel(
  1. {int? id,
  2. int? customerId,
  3. String? firstName,
  4. String? lastName,
  5. String? address,
  6. String? building,
  7. String? floor,
  8. String? apartment,
  9. String? postalCode,
  10. String? mobile,
  11. bool? isDefault,
  12. String? name,
  13. int? zoneId,
  14. double? latitude,
  15. double? longitude,
  16. String? locationUrl,
  17. CityModel? city,
  18. int? orderCount}
)

Implementation

AddressModel({
  this.id,
  this.customerId,
  this.firstName,
  this.lastName,
  this.address,
  this.building,
  this.floor,
  this.apartment,
  this.postalCode,
  this.mobile,
  this.isDefault,
  this.name,
  this.zoneId,
  this.latitude,
  this.longitude,
  this.locationUrl,
  this.city,
  this.orderCount,
});