RenderRadio class

Render object that paints a radio button with border, fill, and indicator.

Inheritance

Constructors

RenderRadio({required bool selected, required bool focused, required bool enabled, required Color activeColor, required Color focusColor, required Color checkColor, VoidCallback? onTap})
Creates a RenderRadio with the given selection and visual state.

Properties

activeColor Color
The color of the filled indicator when selected.
getter/setter pair
checkColor Color
The color of the check dot.
getter/setter pair
enabled bool
Whether this radio is interactive.
getter/setter pair
focusColor Color
The border color when focused.
getter/setter pair
focused bool
Whether this radio currently has keyboard focus.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasSize bool
Whether this render object has been laid out and has a size.
no setterinherited
height int
The height of this render box in terminal rows.
no setterinherited
isRelayoutBoundary bool
Whether this render object acts as a relayout boundary.
no setterinherited
needsPaint bool
Whether this render object needs to be repainted.
no setterinherited
onTap VoidCallback?
An optional tap callback.
getter/setter pair
parent RenderObject?
The parent of this render object, or null if this is the root.
getter/setter pairinherited
parentData ParentData?
Optional data associated with this render object by its parent.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
Whether this radio is currently selected.
getter/setter pair
size Size?
The current size of this render object after layout.
getter/setter pairinherited
width int
The width of this render box in terminal columns.
no setterinherited

Methods

clearNeedsPaint() → void
Clears the needs-paint flag, indicating painting is up to date.
inherited
layout(Constraints constraints, {bool parentUsesSize = true}) → void
Performs layout on this render object using the given constraints.
inherited
markNeedsLayout() → void
Marks this render object as needing layout and paint.
inherited
markNeedsPaint() → void
Marks this render object as needing to be repainted.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(PaintingContext context, Offset offset) → void
Paints this render object into the given context at offset.
override
performLayout(Constraints constraints) → void
Called to perform the actual layout computation for this render object.
override
setRelayoutBoundary(bool value) → void
Marks this render object as a relayout boundary or not.
inherited
setupParentData(RenderObject child) → void
Initializes parentData for the given child if not already set.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited