Initial commit
This commit is contained in:
10
lib/common/string.dart
Normal file
10
lib/common/string.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
extension StringExtension on String {
|
||||
bool get isUrl {
|
||||
try {
|
||||
Uri.parse(this);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user