onChanged method

  1. @mustCallSuper
void onChanged(
  1. T? v
)

Called when a button is changed.

Implementation

@mustCallSuper
void onChanged(T? v) {
  if (v != null) {
    groupValue = v;
    statefulWidget?.inChanged?.call(v);
    statefulWidget?.onChanged(v);
    state?.setState(() {});
  }
}