SwitchCipper constructor
const
SwitchCipper({
- Key? key,
- required Widget child,
- required Widget background,
- Duration duration = const Duration(milliseconds: 500),
- Curve curve = Curves.bounceOut,
- Curve reverseCurve = Curves.ease,
- bool? isSelect,
- bool? onSelect(
- bool result
- AlignmentGeometry alignment = Alignment.center,
- SwitchCipperBuilder? customCipperBuilder,
- bool initSelect = false,
- OnAnimationStatusChanged? onAnimationComplate,
- double? value,
- bool hasAnimationWhenValueChanged = true,
- bool enableWhenAnimating = true,
Implementation
const SwitchCipper({
Key? key,
required this.child,
required this.background,
this.duration = const Duration(milliseconds: 500),
this.curve = Curves.bounceOut,
this.reverseCurve = Curves.ease,
this.isSelect,
this.onSelect,
this.alignment = Alignment.center,
this.customCipperBuilder,
this.initSelect = false,
this.onAnimationComplate,
this.value,
this.hasAnimationWhenValueChanged = true,
this.enableWhenAnimating = true,
}) : super(key: key);