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);
|
|
|
|
}
|
|
|
|
}
|