Why do we need to assign value of onChanged inside setState.What will happen if i directly assign the value – Flutter
I am new to the flutter and trying to understand it better. FormFieldText( label: "First Name", initialValue:firstName, validator: (value) { if (value.isEmpty) return "Name must be provided"; return null; }, onChanged: ((value) { setState(() { member?.firstName = value; }); }),…