wip: envvar_utils_test

This commit is contained in:
DenserMeerkat
2024-07-29 16:18:10 +05:30
parent cfcf448664
commit ce70a8d1c4
4 changed files with 345 additions and 4 deletions

View File

@ -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;
}