formattedShort property

String get formattedShort

Returns a short version of the address suitable for very compact displays Shows just the first 4 and last 4 characters

Implementation

String get formattedShort {
  if (address.length <= 8) return address;
  return '${address.substring(0, 4)}...'
      '${address.substring(address.length - 4)}';
}