shortAddress property

String get shortAddress

Returns a short version of the address for display in limited space.

Implementation

String get shortAddress {
  if (address == null || address!.isEmpty) {
    return coordinates;
  }
  if (address!.length > 40) {
    return '${address!.substring(0, 37)}...';
  }
  return address!;
}