diff --git a/flutter_inappwebview_platform_interface/lib/src/web_uri.dart b/flutter_inappwebview_platform_interface/lib/src/web_uri.dart index 4abe5c8a..23968ece 100644 --- a/flutter_inappwebview_platform_interface/lib/src/web_uri.dart +++ b/flutter_inappwebview_platform_interface/lib/src/web_uri.dart @@ -188,6 +188,23 @@ class WebUri implements Uri { @override String get userInfo => _uri.userInfo; + @override + bool operator ==(Object other) => + identical(this, other) || + other is WebUri && + runtimeType == other.runtimeType && + _uri == other._uri && + _rawValue == other._rawValue && + _isValidUri == other._isValidUri && + forceToStringRawValue == other.forceToStringRawValue; + + @override + int get hashCode => + _uri.hashCode ^ + _rawValue.hashCode ^ + _isValidUri.hashCode ^ + forceToStringRawValue.hashCode; + ///If [forceToStringRawValue] is `true` or [isValidUri] is `false`, it returns [rawValue], ///otherwise the value of [uriValue]`.toString()`. @override