在尝试运行flutter应用程序时出现以下错误
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type '() => Map<String, dynamic>' is not a subtype of type 'M
ap<String, dynamic>' in type cast
E/flutter ( 2949): #0 DatabaseUtils.getCloudQuestions (package:fragrancefinder/utils/DatabasUtils.dart:1282:50)
E/flutter ( 2949): <asynchronous suspension>
我们尝试在Android Studio中使用Emulator
运行AppFlutter run
似乎你必须提供Map<String, dynamic> function
,但你提供Map<String, dynamic>
值。如果你能分享一些代码来检测这个问题。