Skip to content

Commit ee51f7d

Browse files
feature: change url type to String
1 parent edaafb6 commit ee51f7d

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

lib/src/chatbox.dart

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,11 @@ class MessageActionEvent {
5656
enum UrlNavigationAction { allow, deny }
5757

5858
class UrlNavigationRequest {
59-
final Uri? url;
60-
final String rawUrl;
61-
final bool isValidUrl;
62-
63-
UrlNavigationRequest._(
64-
this.url,
65-
this.rawUrl,
66-
this.isValidUrl,
67-
) ;
68-
69-
factory UrlNavigationRequest(String url){
70-
final Uri? uri = Uri.tryParse(url);
71-
72-
return UrlNavigationRequest._(
73-
uri,
74-
url,
75-
uri!=null,
76-
);
77-
}
59+
final String url;
60+
61+
UrlNavigationRequest(
62+
this.url
63+
);
7864
}
7965

8066
/// A messaging UI for just a single conversation.

0 commit comments

Comments
 (0)