onChanged property

void Function(T? v) onChanged
getter/setter pair

Called when the value of the field changed

Implementation

// ignore: prefer_function_declarations_over_variables
late void Function(T? v) onChanged = (T? v) {
  value = v as T;
};