NeumorphismSwitchStyle class

A style to customize the NeumorphismSwitch

you can define the track : activeTrackColor, inactiveTrackColor, trackDepth

you can define the thumb : activeTrackColor, inactiveTrackColor, thumbDepth and thumbShape @see NeumorphicShape

Constructors

NeumorphismSwitchStyle({double? trackDepth, NeumorphismShape? thumbShape = NeumorphismShape.concave, Color? activeTrackColor, Color? inactiveTrackColor, Color? activeThumbColor, Color? inactiveThumbColor, double? thumbDepth, LightSource? lightSource, bool disableDepth = false, NeumorphismBorder thumbBorder = const NeumorphismBorder.none(), NeumorphismBorder trackBorder = const NeumorphismBorder.none()})
const

Properties

activeThumbColor Color?
final
activeTrackColor Color?
final
disableDepth bool
final
hashCode int
The hash code for this object.
no setteroverride
inactiveThumbColor Color?
final
inactiveTrackColor Color?
final
lightSource LightSource?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbBorder NeumorphismBorder
final
thumbDepth double?
final
thumbShape NeumorphismShape?
final
trackBorder NeumorphismBorder
final
trackDepth double?
final

Methods

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