Address constructor

Address({
  1. String? city,
  2. String? country,
  3. String? postalCode,
  4. String? state,
  5. String? street,
})

constructor

@param city String @param country String @param postalCode String @param state String @param street String

Implementation

Address(
    {String? city,
    String? country,
    String? postalCode,
    String? state,
    String? street}) {
  if (city != null) {
    addressMap["city"] = city;
  }
  if (country != null) {
    addressMap["country"] = country;
  }
  if (postalCode != null) {
    addressMap["postalCode"] = postalCode;
  }
  if (state != null) {
    addressMap["state"] = state;
  }
  if (street != null) {
    addressMap["street"] = street;
  }
}