1

I want to pass the controller as a String in an argument but the controller is of TextEditingController type. How can I change the type of controller as a String?

1 Answers1

0

You need to access the text property.

TextEditingController.text

Replace it with your controller's name. i.e

usernameController.text
Huthaifa Muayyad
  • 11,321
  • 3
  • 17
  • 49