Skip to content

Commit 3450814

Browse files
committed
fix type error
1 parent 1d1b0f9 commit 3450814

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/method_channel/mobile_scanner_method_channel.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class MethodChannelMobileScanner extends MobileScannerPlatform {
5656
if (defaultTargetPlatform == TargetPlatform.android ||
5757
defaultTargetPlatform == TargetPlatform.iOS ||
5858
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?>?;
6161
final Uint8List? image = imageData?['bytes'] as Uint8List?;
6262
final double? width = imageData?['width'] as double?;
6363
final double? height = imageData?['height'] as double?;
@@ -141,8 +141,8 @@ class MethodChannelMobileScanner extends MobileScannerPlatform {
141141

142142
@override
143143
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?>(
146146
'analyzeImage',
147147
path,
148148
);

0 commit comments

Comments
 (0)