Skip to content

Commit 3264599

Browse files
committed
Added == operator to WebUri
1 parent 5f2885c commit 3264599

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

flutter_inappwebview_platform_interface/lib/src/web_uri.dart

+11
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,17 @@ class WebUri implements Uri {
188188
@override
189189
String get userInfo => _uri.userInfo;
190190

191+
@override
192+
bool operator ==(Object other) {
193+
if (identical(this, other)) {
194+
return true;
195+
}
196+
return other is WebUri &&
197+
_uri == other._uri &&
198+
_rawValue == other._rawValue &&
199+
forceToStringRawValue == other.forceToStringRawValue;
200+
}
201+
191202
///If [forceToStringRawValue] is `true` or [isValidUri] is `false`, it returns [rawValue],
192203
///otherwise the value of [uriValue]`.toString()`.
193204
@override

0 commit comments

Comments
 (0)