Your error here is that you forgot to name your variable. You defined that it is final
of type TextEditingController
but didn't name the variable. In your case, the fix would be (just a suggestion on the variable name: _controller
)
final TextEditingController _controller = TextEditingController();