LocationModel constructor

LocationModel({
  1. int? id,
  2. String? uniqueId,
  3. String locationLabel = '',
  4. int favourite = 0,
  5. String street = "",
  6. String? zip,
  7. String city = "",
  8. String state = "",
  9. String country = "",
  10. String? utcModifier = "Europe/Tallinn",
  11. double lat = 0,
  12. double lng = 0,
  13. LocationType type = LocationType.home,
  14. String contactPhone = '',
  15. String deliveryInstructions = '',
  16. bool setAsDefault = false,
})

Implementation

LocationModel(
    {this.id,
    this.uniqueId,
    this.locationLabel = '',
    this.favourite = 0,
    this.street = "",
    this.zip,
    this.city = "",
    this.state = "",
    this.country = "",
    this.utcModifier = "Europe/Tallinn",
    this.lat = 0,
    this.lng = 0,
    this.type = LocationType.home,
    this.contactPhone = '',
    this.deliveryInstructions = '',
    this.setAsDefault = false});