Encrypted peer-to-peer IM for data security. Own data, own privacy. (Rust+Flutter)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
String pidPrint(String? pid, [int n = 6]) { |
|
if (pid == null) { |
|
return ''; |
|
} |
|
|
|
final info = pid; |
|
final len = info.length; |
|
if (len > n+n) { |
|
return info.substring(0, n) + '...' + info.substring(len - n, len); |
|
} else { |
|
return info; |
|
} |
|
}
|
|
|