mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 00:36:43 +08:00
Overriding KVRow methods for testing
This commit is contained in:
@ -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,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user