FieldStyleSwitchBox class

FieldStyleSwitchBox is used to define the style for a switch box field.

Style configuration for switch toggle fields.

Extends FieldStyle with switch-specific styling options including track and thumb colors, images, and interaction behavior. Provides comprehensive customization for switch widgets in both active and inactive states.

Inheritance

Constructors

FieldStyleSwitchBox({MouseCursor? mouseCursor, Color? activeThumbColor, Color? hoverColor, Color? overlayColor, double? splashRadius, MaterialTapTargetSize? materialTapTargetSize, VisualDensity? visualDensity, FocusNode? focusNode, bool autofocus = false, ShapeBorder? shape, bool? enabled, Color? tileColor, Widget? title, TextStyle? titleTextStyle, Widget? subtitle, bool isThreeLine = false, bool? dense, Widget? secondary, bool selected = false, ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform, EdgeInsetsGeometry? contentPadding, Color? selectedTileColor, ValueChanged<bool?>? onFocusChange, bool? enableFeedback, double? headerSpacing = 5.0, double? footerSpacing = 5.0})

Properties

activeThumbColor Color?
getter/setter pair
activeThumbImage ImageProvider<Object>?
getter/setter pair
activeTrackColor Color?
getter/setter pair
autofocus bool
getter/setter pair
contentPadding EdgeInsetsGeometry?
getter/setter pair
controlAffinity ListTileControlAffinity
getter/setter pair
dense bool?
getter/setter pair
dragStartBehavior DragStartBehavior
getter/setter pair
enabled bool?
getter/setter pair
enableFeedback bool?
getter/setter pair
focusNode FocusNode?
getter/setter pair
footerSpacing double?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
headerSpacing double?
getter/setter pairinherited
hoverColor Color?
getter/setter pair
inactiveThumbColor Color?
getter/setter pair
inactiveThumbImage ImageProvider<Object>?
getter/setter pair
inactiveTrackColor Color?
getter/setter pair
isThreeLine bool
getter/setter pair
materialTapTargetSize MaterialTapTargetSize?
getter/setter pair
mouseCursor MouseCursor?
getter/setter pair
onActiveThumbImageError ImageErrorListener?
getter/setter pair
onFocusChange ValueChanged<bool?>?
getter/setter pair
onInactiveThumbImageError ImageErrorListener?
getter/setter pair
overlayColor Color?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary Widget?
getter/setter pair
selected bool
getter/setter pair
selectedTileColor Color?
getter/setter pair
shape ShapeBorder?
getter/setter pair
splashRadius double?
getter/setter pair
subtitle Widget?
getter/setter pair
thumbColor Color?
getter/setter pair
thumbIcon Widget?
getter/setter pair
tileColor Color?
getter/setter pair
title Widget?
getter/setter pair
titleTextStyle TextStyle?
getter/setter pair
trackColor Color?
getter/setter pair
trackOutlineColor Color?
getter/setter pair
visualDensity VisualDensity?
getter/setter pair

Methods

copyWith({double? headerSpacing, double? footerSpacing}) FieldStyle?
inherited
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.
inherited