getAddressLine1 method
Implementation
String getAddressLine1() {
String addressLine1 = "";
bool insertComma = false;
if (street != null && street!.isNotEmpty) {
addressLine1 += street!;
insertComma = true;
}
if (district != null && district!.isNotEmpty) {
if (insertComma) {
addressLine1 += ", ";
}
addressLine1 += district!;
insertComma = true;
}
if (city != null && city!.isNotEmpty) {
if (insertComma) {
addressLine1 += ", ";
}
addressLine1 += city!;
insertComma = true;
}
return addressLine1;
}