我已经创建了一个验证类,我将在TextFormField验证器中使用它,但我不知道如何调用该函数validator: (value) { return 'Please enter some text'; return null;但是我创建了这个类,所以当我需要它时,只需调用函数
class Validationif (value.isEmp
我正在尝试通过表单更新云Firestore中的数据。我需要已经存储在firestore中的字段在TextFormField中显示为initialValue。获取的数据通过print()在控制台上打印,但在TextFormField中不显示任何内容。数据也会被正确获取。printed in the console
key: _formKey, child