displayAddress property

String get displayAddress

Single-line address shown on the tile. Falls back to a comma-joined flatHouseNo + addressLine1/2/3 when the host passes split fields but leaves address blank.

Implementation

String get displayAddress {
  if (address.trim().isNotEmpty) return address;
  final parts = [flatHouseNo, addressLine1, addressLine2, addressLine3]
      .where((p) => p != null && p.trim().isNotEmpty)
      .cast<String>()
      .toList();
  return parts.join(', ');
}