RadioStyle class
The style to be applied to Radio widget
- Mixed in types
- Implementers
- Annotations
Constructors
- RadioStyle({double? size, BoxShape? shape, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadiusGeometry? borderRadius, BorderStyle? borderStyle, double? thumbInset, Color? thumbColor, double? thumbOpacity, int? thumbAlpha, Color? overlayColor, double? overlayOpacity, bool? overlayDisabled, double? overlayRadius})
-
Create a raw style of radio widget
const
- RadioStyle.from(RadioStyle? other)
- Create a checkbox's style from another style
Properties
- backgroundAlpha → int?
-
Alpha to be apply to backgroundColor.
final
- backgroundColor → Color?
-
Color to be used for the radio's background.
final
- backgroundOpacity → double?
-
Opacity to be apply to backgroundColor.
final
- borderAlpha → int?
-
Alpha to be apply to borderColor.
final
- borderColor → Color?
-
Color to be used for the radio's border.
final
- borderOpacity → double?
-
Opacity to be apply to borderColor.
final
- borderRadius → BorderRadiusGeometry?
-
The radii for each corner of the radio's border.
final
- borderStyle → BorderStyle?
-
The style of this side of the radio's border.
final
- borderWidth → double?
-
The width of this side of the radio's border, in logical pixels.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- margin → EdgeInsetsGeometry?
-
Empty space to surround the outside clickable area.
final
- overlayColor → Color?
-
The overlay color when pressed, hovered over, or focused.
final
- overlayDisabled → bool?
-
Whether the overlay is disabled or not,
final
- overlayOpacity → double?
-
The overlay opacity when pressed, hovered over, or focused.
final
- overlayRadius → double?
-
The radius of the overlay.
final
- padding → EdgeInsetsGeometry?
-
Empty space to increase the clickable area.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → BoxShape?
-
Type of the radio border shape.
final
- size → double?
-
The size of the radio in logical pixels.
final
- thumbAlpha → int?
-
Alpha to be apply to thumbColor.
final
- thumbColor → Color?
-
The Color to be apply to the radio's thumb.
final
- thumbInset → double?
-
final
- thumbOpacity → double?
-
Opacity to be apply to thumbColor.
final
Methods
-
copyWith(
{double? size, BoxShape? shape, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadiusGeometry? borderRadius, BorderStyle? borderStyle, double? thumbInset, Color? thumbColor, double? thumbOpacity, int? thumbAlpha, Color? overlayColor, double? overlayOpacity, bool? overlayDisabled, double? overlayRadius, bool? mergeResolved, RadioStyle? selectedStyle, RadioStyle? focusedStyle, RadioStyle? hoveredStyle, RadioStyle? pressedStyle, RadioStyle? disabledStyle}) → RadioStyle - Creates a copy of this RadioStyle but with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
RadioStyle? other) → RadioStyle - Creates a copy of this RadioStyle but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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
-
toMap(
) → Map< String, dynamic> -
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(
RadioStyle? a, RadioStyle? b, double t) → RadioStyle? - Linearly interpolate between two RadioStyle objects.
Constants
- disabledBackgroundAlpha → const int
- disabledBorderAlpha → const int