我有一个问题,不知道如何解决…我想通过一个流从Firebase获取数据,我在FireBase中有UserData,现在想通过使用这个UserData(Cutom类)的流来获取另一个脚本,但是这个流抛出了一个错误如果我在null上使用迭代器,我已经验证了基本的代码行。但我想我不知道。提供商肯定出了什么问题。Exception:
NoSuchMethodError: The getter 'iterator' was called on null.Receiver: <e
snapshot.hasData) { }
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null.Receiver: null</e
单击登录时,我得到了以下结果
[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: NoSuchMethodError: The getter'status' was called on null.flutter ( 7370): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: NoSuchMethodError: Th
我在服务中使用的代码是: //This is a class where I have all the services of firebaseflutter:在构建StreamBuilder时抛出以下NoSuchMethodError (脏,状态:flutter:在null上调用了getter‘document’flu
Preparing to create service connection to fallback implementation
W/System (11346): Ignoring header X-Firebase-Localebecause its value was null.flutter (11346): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: NoSuchMethodError: The getter<