TextBuilder<T> constructor
- T value, {
- String? text,
Creates a view model to update settings.
If text
is not null, it will be used instead of value
to prefill the controller.
Implementation
TextBuilder(this.value, {String? text}) :
controller = TextEditingController(text: text ?? value.toString()), super();