LiteRollingSwitch constructor
LiteRollingSwitch({
- bool value = false,
- double width = 130,
- String textOff = "Off",
- String textOn = "On",
- double textSize = 14.0,
- Color colorOn = Colors.green,
- Color colorOff = Colors.red,
- IconData iconOff = Icons.flag,
- IconData iconOn = Icons.check,
- Duration animationDuration = const Duration(milliseconds: 600),
- Color textOffColor = Colors.white,
- Color textOnColor = Colors.black,
- required Function onTap,
- required Function onDoubleTap,
- required Function onSwipe,
- required dynamic onChanged(),
Implementation
LiteRollingSwitch({
this.value = false,
this.width = 130,
this.textOff = "Off",
this.textOn = "On",
this.textSize = 14.0,
this.colorOn = Colors.green,
this.colorOff = Colors.red,
this.iconOff = Icons.flag,
this.iconOn = Icons.check,
this.animationDuration = const Duration(milliseconds: 600),
this.textOffColor = Colors.white,
this.textOnColor = Colors.black,
required this.onTap,
required this.onDoubleTap,
required this.onSwipe,
required this.onChanged,
});