hunnichat/lib/utils/beautify_string_extension.dart
mowetentertainment1 8ee77e3548
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled
12/6/2025
2025-12-06 12:46:34 -05:00

16 lines
348 B
Dart

extension BeautifyStringExtension on String {
String get beautified {
var beautifiedStr = '';
for (var i = 0; i < length; i++) {
beautifiedStr += substring(i, i + 1);
if (i % 4 == 3) {
beautifiedStr += ' ';
}
if (i % 16 == 15) {
beautifiedStr += '\n';
}
}
return beautifiedStr;
}
}