1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-20 12:13:31 +01:00
git-touch-android-ios-app/lib/utils/extensions.dart

14 lines
237 B
Dart
Raw Normal View History

2019-12-12 14:06:12 +01:00
extension MyString<T extends String> on String {
2019-12-14 17:08:12 +01:00
int get toInt {
return int.parse(this);
}
2019-12-12 14:06:12 +01:00
String get urlencode {
return Uri.encodeComponent(this);
}
String get urldecode {
return Uri.decodeComponent(this);
}
}