简体   繁体   English

如何将这个Body class文件调用到另一个class? Flutter Firebase

[英]How to call this Body class file to another class? Flutter Firebase

I got an error, I can't call the body.dart, I've tried to add the method to the profile class but it didn't work, how can I fix the error?我得到一个错误,我无法调用 body.dart,我已经尝试将方法添加到配置文件 class 但它没有用,我该如何修复错误? thanks.谢谢。

You need to pass a String value to the constructor.您需要将 String 值传递给构造函数。

body: Body("Your document ID"),

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 flutter 中的运行时错误“Firebase Firestore”未定义 class - Runtime error 'Firebase Firestore' Undefined class in flutter Class 在 firebase 消息 flutter 上未发现异常 - Class not found exception on firebase messaging flutter 当基类 class 本身继承自另一个库 class (ndb.Model) 时,如何从派生的 class 调用基类 class 的类方法 - How to call classmethod of base class from derived class when base class itself is inheriting from another library class (ndb.Model) 如何从另一个通用 class 调用 Apache 波束 DoFn Class,反之亦然? - how to call the Apache beam DoFn Class from another general class or vice versa? 在 Flutter 中使用自定义模型/类创建多个 Firebase 流 - Create multiple Firebase streams with custom model/class in Flutter Flutter firebase,使用一个文档中的引用调用另一个文档 - Flutter firebase, use a reference in a document to call another document Class '列表<documentsnapshot> ' 在 Flutter 中没有实例方法 'call'</documentsnapshot> - Class 'List<DocumentSnapshot>' has no instance method 'call' in Flutter 如何在 Flutter 中用 Column 或 ListView class 包装 StreamBuilder class? - How to wrap a StreamBuilder class with a Column or ListView class in Flutter? 与 agora 和 firebase flutter 的语音通话 - voice call with agora and firebase flutter 如何在适配器 class、Firebase 中获取共享首选项 - How to get shared prefs in Adapter class, Firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM