Answers for "Failed assertion: line 198 pos 15: 'initialValue == null || controller == null': is not true."

0

Failed assertion: line 198 pos 15: 'initialValue == null || controller == null': is not true.

// In class level 
final controller = TextEditingController(text: "Your initial value");

Widget build(BuildContext context) {
  return TextFormField(
    controller: controller, 
    // ...
  );
}
Posted by: Guest on September-20-2021

Code answers related to "Failed assertion: line 198 pos 15: 'initialValue == null || controller == null': is not true."

Browse Popular Code Answers by Language