mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-04-27 18:11:54 -05:00
refactor: using string extension
This commit is contained in:
@@ -189,12 +189,6 @@ class RouterScreen {
|
||||
|
||||
final dateFormat = DateFormat.yMMMMd();
|
||||
|
||||
String convertBase64ToString(String input) {
|
||||
if (input == null) return null;
|
||||
final bits = base64.decode(input.replaceAll('\n', ''));
|
||||
return utf8.decode(bits);
|
||||
}
|
||||
|
||||
int sortByKey<T>(T key, T a, T b) {
|
||||
if (a == key && b != key) return -1;
|
||||
if (a != key && b == key) return 1;
|
||||
|
||||
Reference in New Issue
Block a user