flutter textformfield value
1. Create a TextEditingController
final myController = TextEditingController();
2. Supply the TextEditingController to a TextField
TextField(
controller: myController,
);
// or textformfield
TextFormField(
controller: myController,
);
3. Display the current value of the text field
print("Value from TextFiled or TextFormField: ${myController.text}");