shortString method
Implementation
String shortString() {
final pid = toString();
if (pid.length <= 10) {
return '<peer.ID $pid>';
}
return '<peer.ID ${pid.substring(0, 2)}*${pid.substring(pid.length - 6)}>';
}
String shortString() {
final pid = toString();
if (pid.length <= 10) {
return '<peer.ID $pid>';
}
return '<peer.ID ${pid.substring(0, 2)}*${pid.substring(pid.length - 6)}>';
}