mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
7 lines
169 B
Dart
7 lines
169 B
Dart
|
/// String utilities
|
||
|
///
|
||
|
/// @author Pierre Hubert
|
||
|
|
||
|
String reduceString(String str, int maxLen) =>
|
||
|
str.length <= maxLen ? str : str.substring(0, maxLen - 3) + "...";
|