Update web_uri.dart
updated WebUri operator == and hashCode with the generated version
This commit is contained in:
parent
3264599822
commit
e000cd8a4c
|
@ -189,15 +189,21 @@ class WebUri implements Uri {
|
||||||
String get userInfo => _uri.userInfo;
|
String get userInfo => _uri.userInfo;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) =>
|
||||||
if (identical(this, other)) {
|
identical(this, other) ||
|
||||||
return true;
|
other is WebUri &&
|
||||||
}
|
runtimeType == other.runtimeType &&
|
||||||
return other is WebUri &&
|
_uri == other._uri &&
|
||||||
_uri == other._uri &&
|
_rawValue == other._rawValue &&
|
||||||
_rawValue == other._rawValue &&
|
_isValidUri == other._isValidUri &&
|
||||||
forceToStringRawValue == other.forceToStringRawValue;
|
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],
|
///If [forceToStringRawValue] is `true` or [isValidUri] is `false`, it returns [rawValue],
|
||||||
///otherwise the value of [uriValue]`.toString()`.
|
///otherwise the value of [uriValue]`.toString()`.
|
||||||
|
|
Loading…
Reference in New Issue