Update onChange
docs to Radio and RadioListTile
Added note that onChange callback will not be invoked if the radio is already selected
This commit is contained in:
parent
26d7f502a9
commit
59f4e92b6e
@ -129,6 +129,9 @@ class Radio<T> extends StatefulWidget {
|
|||||||
///
|
///
|
||||||
/// If null, the radio button will be displayed as disabled.
|
/// If null, the radio button will be displayed as disabled.
|
||||||
///
|
///
|
||||||
|
/// The provided callback will not be invoked if this radio button is already
|
||||||
|
/// selected.
|
||||||
|
///
|
||||||
/// The callback provided to [onChanged] should update the state of the parent
|
/// The callback provided to [onChanged] should update the state of the parent
|
||||||
/// [StatefulWidget] using the [State.setState] method, so that the parent
|
/// [StatefulWidget] using the [State.setState] method, so that the parent
|
||||||
/// gets rebuilt; for example:
|
/// gets rebuilt; for example:
|
||||||
|
@ -129,6 +129,9 @@ class RadioListTile<T> extends StatelessWidget {
|
|||||||
///
|
///
|
||||||
/// If null, the radio button will be displayed as disabled.
|
/// If null, the radio button will be displayed as disabled.
|
||||||
///
|
///
|
||||||
|
/// The provided callback will not be invoked if this radio button is already
|
||||||
|
/// selected.
|
||||||
|
///
|
||||||
/// The callback provided to [onChanged] should update the state of the parent
|
/// The callback provided to [onChanged] should update the state of the parent
|
||||||
/// [StatefulWidget] using the [State.setState] method, so that the parent
|
/// [StatefulWidget] using the [State.setState] method, so that the parent
|
||||||
/// gets rebuilt; for example:
|
/// gets rebuilt; for example:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user