[camera_platform_interface][flutter roll] Fix hashCode tests and manual roll (#6618)
diff --git a/.ci/flutter_master.version b/.ci/flutter_master.version
index 4362c02..7f1873f 100644
--- a/.ci/flutter_master.version
+++ b/.ci/flutter_master.version
@@ -1 +1 @@
-59d26c481acca4e5b086dc6502b45ca31b273c25
+29397c2c7dbb9195c142279ed56dabf5fc9e7b85
diff --git a/packages/camera/camera_platform_interface/test/events/camera_event_test.dart b/packages/camera/camera_platform_interface/test/events/camera_event_test.dart
index 3914859..074f203 100644
--- a/packages/camera/camera_platform_interface/test/events/camera_event_test.dart
+++ b/packages/camera/camera_platform_interface/test/events/camera_event_test.dart
@@ -136,7 +136,7 @@
const CameraInitializedEvent event = CameraInitializedEvent(
1, 1024, 640, ExposureMode.auto, true, FocusMode.auto, true);
final int expectedHashCode = Object.hash(
- event.cameraId,
+ event.cameraId.hashCode,
event.previewWidth,
event.previewHeight,
event.exposureMode,
@@ -222,8 +222,11 @@
test('hashCode should match hashCode of all properties', () {
const CameraResolutionChangedEvent event =
CameraResolutionChangedEvent(1, 1024, 640);
- final int expectedHashCode =
- Object.hash(event.cameraId, event.captureWidth, event.captureHeight);
+ final int expectedHashCode = Object.hash(
+ event.cameraId.hashCode,
+ event.captureWidth,
+ event.captureHeight,
+ );
expect(event.hashCode, expectedHashCode);
});
@@ -326,7 +329,7 @@
test('hashCode should match hashCode of all properties', () {
const CameraErrorEvent event = CameraErrorEvent(1, 'Error');
final int expectedHashCode =
- Object.hash(event.cameraId, event.description);
+ Object.hash(event.cameraId.hashCode, event.description);
expect(event.hashCode, expectedHashCode);
});