mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-11 13:21:36 +08:00
custom player/max volume
Closes #2199 Closes #2358 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
final _regExp = RegExp("^(http:)?//", caseSensitive: false);
|
||||
|
||||
extension StringExt on String? {
|
||||
extension NullableStringExt on String? {
|
||||
String get http2https => this?.replaceFirst(_regExp, "https://") ?? '';
|
||||
|
||||
bool get isNullOrEmpty => this == null || this!.isEmpty;
|
||||
}
|
||||
|
||||
extension StringExt on String {
|
||||
String subLength(int length) {
|
||||
if (this.length < length) return this;
|
||||
return substring(0, length);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user