ZwapSwitch class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZwapSwitch
Constructors
- ZwapSwitch({bool value = false, FutureOr onChange(bool)?, double width = 56, double height = 32, double thumbPadding = 4, double draggingThumbExtent = 4.5, Color? activeColor, Gradient? activeGradient, Color? activeThumbColor, Gradient? activeThumbGradient, Color? color, Gradient? gradient, Color? thumbColor, Gradient? thumbGradient, double? borderRadiuns, Widget thumbChild(BuildContext, bool)?, Key? key})
-
const
Properties
- activeColor → Color?
-
final
- activeGradient → Gradient?
-
final
- activeThumbColor → Color?
-
final
- activeThumbGradient → Gradient?
-
final
- borderRadiuns → double?
-
Default to max to make widget circular
final
- color → Color?
-
final
- draggingThumbExtent → double
-
While dragging thumb, its size will be increased
by this value
final
- gradient → Gradient?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of switch
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChange → (FutureOr Function(bool)?)
-
Called each time user try to change the value
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbChild → (Widget Function(BuildContext, bool)?)
-
If thumbChild is not null, it will be used as decoration
of the thumb widget
final
- thumbColor → Color?
-
final
- thumbGradient → Gradient?
-
final
- thumbPadding → double
-
Final thumb size will be
heigth
- 2 * thumbPaddingfinal - value → bool
-
Is true the switch will be selected
final
- width → double
-
Width of switch
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ZwapSwitch> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited