SmoothToggle class Null safety

Constructors

SmoothToggle({bool value = false, String textRight = 'Off', String textLeft = 'On', double textSize = 14.0, dynamic colorRight = Colors.red, dynamic colorLeft = Colors.green, required dynamic iconRight, required dynamic iconLeft, Duration animationDuration = const Duration(milliseconds: 320), dynamic onTap, dynamic onDoubleTap, dynamic onSwipe, required dynamic onChanged(bool), double width = 150.0, double height = 50.0})
const

Properties

animationDuration Duration
final
colorLeft → dynamic
final
colorRight → dynamic
final
hashCode int
The hash code for this object. [...]
read-only, inherited
height double
final
iconLeft → dynamic
final
iconRight → dynamic
final
onChanged → dynamic Function(bool)
final
onDoubleTap → dynamic
final
onSwipe → dynamic
final
onTap → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textLeft String
final
textRight String
final
textSize double
final
value bool
final
width double
final

Methods

createState() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited