shortString method

  1. @override
String shortString()

Implementation

@override
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)}>';
}