6 lines
122 B
Dart
6 lines
122 B
Dart
extension StringExtension on String {
|
|
bool get isUrl {
|
|
return RegExp(r'^(http|https|ftp)://').hasMatch(this);
|
|
}
|
|
}
|