TextBuilder<T> constructor

TextBuilder<T>(
  1. T value, {
  2. 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();