mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -53,6 +53,10 @@ extension StringExt on String {
|
||||
String get http2https => replaceFirst(RegExp("^http://"), "https://");
|
||||
}
|
||||
|
||||
extension StringNullExt on String? {
|
||||
bool get isNullOrEmpty => this == null || this!.isEmpty;
|
||||
}
|
||||
|
||||
extension BoolExt on bool {
|
||||
bool get not => !this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user