summaryrefslogtreecommitdiff
path: root/test/test_device.dart
diff options
context:
space:
mode:
authoruvok2025-08-02 13:55:48 +0200
committeruvok2025-08-02 13:55:48 +0200
commit9d18247793203275f0118b13f8e10d12acfdaf67 (patch)
tree2e85f69869d414a250f1c61f5ac5afb877f5adc6 /test/test_device.dart
parent282884ee86dc3d1d68e9636e3739cbedf639edef (diff)
Add tests for extensionmain
Diffstat (limited to 'test/test_device.dart')
-rw-r--r--test/test_device.dart14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_device.dart b/test/test_device.dart
new file mode 100644
index 0000000..24774bb
--- /dev/null
+++ b/test/test_device.dart
@@ -0,0 +1,14 @@
+class TestDevice {
+ final int id;
+ final String name;
+
+ TestDevice(this.id, this.name);
+
+ @override
+ bool operator ==(Object other) =>
+ identical(this, other) ||
+ other is TestDevice && id == other.id && name == other.name;
+
+ @override
+ int get hashCode => id.hashCode ^ name.hashCode;
+}