mirror of
https://github.com/foss42/apidash.git
synced 2025-05-28 20:27:04 +08:00
wip: envvar_utils_test
This commit is contained in:
@ -65,4 +65,18 @@ class EnvironmentVariableSuggestion {
|
||||
isUnknown: isUnknown ?? this.isUnknown,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) return true;
|
||||
|
||||
return other is EnvironmentVariableSuggestion &&
|
||||
other.environmentId == environmentId &&
|
||||
other.variable == variable &&
|
||||
other.isUnknown == isUnknown;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
environmentId.hashCode ^ variable.hashCode ^ isUnknown.hashCode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user