RadioTheme class

Theme data for customizing Radio widget appearance.

This class defines the visual properties that can be applied to Radio widgets, including colors for different states and sizing. These properties can be set at the theme level to provide consistent styling across the application.

The theme affects the radio button's visual appearance in both selected and unselected states, including border, background, and active indicator colors.

Inheritance

Constructors

RadioTheme({Color? activeColor, Color? borderColor, double? size, Color? backgroundColor})
Creates a RadioTheme.
const

Properties

activeColor Color?
Color of the radio indicator when selected.
final
backgroundColor Color?
Background color of the radio button.
final
borderColor Color?
Border color of the radio button.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double?
Size of the radio button.
final

Methods

copyWith({ValueGetter<Color?>? activeColor, ValueGetter<Color?>? borderColor, ValueGetter<double?>? size, ValueGetter<Color?>? backgroundColor}) RadioTheme
Creates a copy of this theme with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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