first implementation finished

This commit is contained in:
Fabian Freund
2024-04-22 11:21:01 +02:00
parent 1a13ca0795
commit 0e1972242a
102 changed files with 7192 additions and 55 deletions
+12
View File
@@ -0,0 +1,12 @@
Uri? tryParseUrl(String? input) {
if (input != null) {
final uri = Uri.tryParse(input);
if (uri != null &&
uri.hasAuthority &&
(uri.isScheme('http') || uri.isScheme('https') || !uri.hasScheme)) {
return uri;
}
}
return null;
}