mirror of
https://github.com/git-touch/git-touch
synced 2024-12-18 19:22:54 +01:00
10 lines
337 B
Dart
10 lines
337 B
Dart
import 'dart:convert';
|
|
|
|
extension MyString<T extends String> on String {
|
|
int get toInt => int.parse(this);
|
|
String get urlencode => Uri.encodeComponent(this);
|
|
String get urldecode => Uri.decodeComponent(this);
|
|
String get dropLineBreak => this.replaceAll('\n', '');
|
|
String get base64ToUtf8 => utf8.decode(base64.decode(this));
|
|
}
|