summaryrefslogtreecommitdiff
path: root/test/test_device.dart
blob: 24774bbfe3d37b1faf3b1ca466ffe4975aefb54b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}