RadioThemeData class Null safety

Defines default property values for descendant Radio widgets.

Descendant widgets obtain the current RadioThemeData object using RadioTheme.of(context). Instances of RadioThemeData can be customized with RadioThemeData.copyWith.

Typically a RadioThemeData is specified as part of the overall Theme with ThemeData.radioTheme.

All RadioThemeData properties are null by default. When null, the Radio will use the values from ThemeData if they exist, otherwise it will provide its own defaults based on the overall Theme's colorScheme. See the individual Radio properties for details.

See also:

Mixed in types
Annotations

Constructors

RadioThemeData({MaterialStateProperty<MouseCursor?>? mouseCursor, MaterialStateProperty<Color?>? fillColor, MaterialStateProperty<Color?>? overlayColor, double? splashRadius, MaterialTapTargetSize? materialTapTargetSize, VisualDensity? visualDensity})
Creates a theme that can be used for ThemeData.radioTheme.
const

Properties

fillColor MaterialStateProperty<Color?>?
The color that fills the radio button, in all MaterialStates.
final
hashCode int
The hash code for this object.
read-onlyoverride
materialTapTargetSize MaterialTapTargetSize?
Configures the minimum size of the tap target.
final
mouseCursor MaterialStateProperty<MouseCursor?>?
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
overlayColor MaterialStateProperty<Color?>?
The color for the checkbox's Material.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
splashRadius double?
The splash radius of the circular Material ink response.
final
visualDensity VisualDensity?
Defines how compact the radio's layout will be.
final

Methods

copyWith({MaterialStateProperty<MouseCursor?>? mouseCursor, MaterialStateProperty<Color?>? fillColor, MaterialStateProperty<Color?>? overlayColor, double? splashRadius, MaterialTapTargetSize? materialTapTargetSize, VisualDensity? visualDensity}) RadioThemeData
Creates a copy of this object but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

lerp(RadioThemeData? a, RadioThemeData? b, double t) RadioThemeData
Linearly interpolate between two RadioThemeDatas.