didChange method

void didChange (
  1. T value

Updates this field's state to the new value. Useful for responding to child widget changes, e.g. Slider's Slider.onChanged argument.

Triggers the Form.onChanged callback and, if the Form.autovalidate field is set, revalidates all the fields of the form.


void didChange(T value) {
  setState(() {
    _value = value;