WordedToggle class

Inheritance

Constructors

WordedToggle({Key? key, ValueNotifier<bool>? controller, Color borderColor = const Color(0xFFE0E0E0), Color activeColor = const Color(0xFF4CAF50), Color inactiveColor = const Color(0xFF9E9E9E), Widget? activeChild, Widget? inactiveChild, ImageProvider<Object>? activeImage, ImageProvider<Object>? inactiveImage, Color activeThumbColor = const Color(0xFFFAFAFA), Color inactiveThumbColor = const Color(0xFFFAFAFA), BorderRadius borderRadius = const BorderRadius.all(Radius.circular(15)), double width = 50.0, double height = 30.0, bool enabled = true, double disabledOpacity = 0.5, Widget? thumb, bool initialValue = false, ValueChanged? onChanged})
const

Properties

activeChild → Widget?
Determines label for the active state.
final
activeColor → Color
Determines background color for the active state.
final
activeImage → ImageProvider<Object>?
Determines background image for the active state.
final
activeThumbColor → Color
final
borderColor → Color
final
borderRadius → BorderRadius
Determines border radius.
final
controller → ValueNotifier<bool>?
Determines current state.
final
disabledOpacity → double
Determines opacity of disabled control.
final
enabled → bool
Determines if widget is enabled
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
Determines height.
final
inactiveChild → Widget?
Determines label for the inactive state.
final
inactiveColor → Color
Determines background color for the inactive state.
final
inactiveImage → ImageProvider<Object>?
Determines background image for the inactive state.
final
inactiveThumbColor → Color
final
initialValue → bool
The initial value.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onChanged → ValueChanged?
Called when the value of the switch should change.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumb → Widget?
Thumb widget.
final
width → double
Determines width.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<WordedToggle>
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, int wrapWidth = 65}) → 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