Add e2ee settings
This commit is contained in:
15
lib/utils/beautify_string_extension.dart
Normal file
15
lib/utils/beautify_string_extension.dart
Normal file
@ -0,0 +1,15 @@
|
||||
extension BeautifyStringExtension on String {
|
||||
String get beautified {
|
||||
String beautifiedStr = "";
|
||||
for (int i = 0; i < this.length; i++) {
|
||||
beautifiedStr += this.substring(i, i + 1);
|
||||
if (i % 4 == 3) {
|
||||
beautifiedStr += " ";
|
||||
}
|
||||
if (i % 16 == 15) {
|
||||
beautifiedStr += "\n";
|
||||
}
|
||||
}
|
||||
return beautifiedStr;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user