value property

T? get value

The value of the selected element in the radio group.

Implementation

T? get value => _value;
set value (T? value)

Implementation

set value(T? value) {
  if (!mounted) return;

  setState(() {
    _value = value;

    if (widget.onChanged == null) return;

    widget.onChanged!(value);
  });
}