RadioBuilder typedef

RadioBuilder = Widget Function(BuildContext context, ToggleableStateMixin<StatefulWidget> state)

Signature for RawRadio.builder.

The builder can use state to determine the state of the radio and build the visual.

If drawing a radial ink reaction is desired (in Material Design for example), consider providing CustomPaint with a subclass of ToggleablePainter as a CustomPaint.painter, which implements logic to draw a radial ink reaction for this control. The painter is usually configured with the ToggleableStateMixin.reaction, ToggleableStateMixin.position, ToggleableStateMixin.reactionHoverFade, and ToggleableStateMixin.reactionFocusFade animation provided by this mixin. It is expected to draw the visuals of the Toggleable based on the current value of these animations. The animations are triggered by this mixin to transition the Toggleable from one state to another.

Implementation

typedef RadioBuilder = Widget Function(BuildContext context, ToggleableStateMixin state);