Overriding KVRow methods for testing

This commit is contained in:
Ashita Prasad
2023-04-10 05:25:59 +05:30
parent b0fd5554dc
commit b0d69bda2c

View File

@ -18,4 +18,21 @@ class KVRow {
String toString() { String toString() {
return {k: v}.toString(); return {k: v}.toString();
} }
@override
bool operator ==(Object other) {
return other is KVRow &&
other.runtimeType == runtimeType &&
other.k == k &&
other.v == v;
}
@override
int get hashCode {
return Object.hash(
runtimeType,
k,
v,
);
}
} }