ToggleSwitchThemeData class
- Mixed in types
- Annotations
Constructors
-
ToggleSwitchThemeData({EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Duration? animationDuration, Curve? animationCurve, ButtonState<
Decoration?> ? checkedKnobDecoration, ButtonState<Decoration?> ? uncheckedKnobDecoration, ButtonState<Decoration?> ? checkedDecoration, ButtonState<Decoration?> ? uncheckedDecoration, ButtonState<Color?> ? foregroundColor}) -
Creates a theme that can be used for ToggleSwitchTheme
const
- ToggleSwitchThemeData.standard(FluentThemeData theme)
-
factory
Properties
- animationCurve → Curve?
-
The curve of the animation
final
- animationDuration → Duration?
-
The duration of the animation
final
-
checkedDecoration
→ ButtonState<
Decoration?> ? -
The decoration of the switch when the it is checked
final
-
checkedKnobDecoration
→ ButtonState<
Decoration?> ? -
The decoration of the knob when the switch is checked
final
-
foregroundColor
→ ButtonState<
Color?> ? -
The foreground color of the content of the switch
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → EdgeInsetsGeometry?
-
The margin of the switch
final
- padding → EdgeInsetsGeometry?
-
The padding of the switch
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uncheckedDecoration
→ ButtonState<
Decoration?> ? -
The decoration of the switch when the it is unchecked
final
-
uncheckedKnobDecoration
→ ButtonState<
Decoration?> ? -
The decoration of the knob when the switch is unchecked
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
ToggleSwitchThemeData? style) → ToggleSwitchThemeData -
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
-
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.
inherited