getShorterString method
Implementation
String getShorterString() {
if (_address == null) return "";
if (_address!.length < 21) {
return _address!;
} else {
return _address!.substring(0, 9) +
"..." +
_address!.substring(_address!.length - 4);
}
}