formatted property

String get formatted

Returns a truncated version of the address suitable for display Shows the first 6 and last 6 characters with ... in between

Implementation

String get formatted {
  if (address.length <= 12) return address;
  return '${address.substring(0, 6)}...'
      '${address.substring(address.length - 6)}';
}