controller property Null safety

TextEditingController? controller
final

Controls the text being edited.

If null, this widget will create its own TextEditingController and initialize its TextEditingController.text with initialValue.

Implementation

final TextEditingController? controller;