Navaron Bracke

fix type error

@@ -56,8 +56,8 @@ class MethodChannelMobileScanner extends MobileScannerPlatform { @@ -56,8 +56,8 @@ class MethodChannelMobileScanner extends MobileScannerPlatform {
56 if (defaultTargetPlatform == TargetPlatform.android || 56 if (defaultTargetPlatform == TargetPlatform.android ||
57 defaultTargetPlatform == TargetPlatform.iOS || 57 defaultTargetPlatform == TargetPlatform.iOS ||
58 defaultTargetPlatform == TargetPlatform.macOS) { 58 defaultTargetPlatform == TargetPlatform.macOS) {
59 - final Map<String, Object?>? imageData =  
60 - event['image'] as Map<String, Object?>?; 59 + final Map<Object?, Object?>? imageData =
  60 + event['image'] as Map<Object?, Object?>?;
61 final Uint8List? image = imageData?['bytes'] as Uint8List?; 61 final Uint8List? image = imageData?['bytes'] as Uint8List?;
62 final double? width = imageData?['width'] as double?; 62 final double? width = imageData?['width'] as double?;
63 final double? height = imageData?['height'] as double?; 63 final double? height = imageData?['height'] as double?;
@@ -141,8 +141,8 @@ class MethodChannelMobileScanner extends MobileScannerPlatform { @@ -141,8 +141,8 @@ class MethodChannelMobileScanner extends MobileScannerPlatform {
141 141
142 @override 142 @override
143 Future<BarcodeCapture?> analyzeImage(String path) async { 143 Future<BarcodeCapture?> analyzeImage(String path) async {
144 - final Map<String, Object?>? result =  
145 - await methodChannel.invokeMapMethod<String, Object?>( 144 + final Map<Object?, Object?>? result =
  145 + await methodChannel.invokeMapMethod<Object?, Object?>(
146 'analyzeImage', 146 'analyzeImage',
147 path, 147 path,
148 ); 148 );