NoSuchMethodError: The method ‘validate’ was called on null

Posted by Jessica Taylor | Updated on

NoSuchMethodError: The method ‘validate’ was called on null

Try to wrap your TextFieldField in Form widget and also put key parameter. You might want to check out TextField and errorText property.

Here is an example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers