We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9411ebf + da2744c commit 39c6472Copy full SHA for 39c6472
1 file changed
lib/another_xlider.dart
@@ -1716,13 +1716,13 @@ class FlutterSliderState extends State<FlutterSlider> with TickerProviderStateMi
1716
1717
void _stopHandlerAnimation({Animation? animation, AnimationController? controller}) {
1718
if (widget.handlerAnimation.reverseCurve != null) {
1719
- if (animation!.isCompleted) {
1720
- controller!.reverse();
+ if (animation?.isCompleted ?? false) {
+ controller?.reverse();
1721
} else {
1722
- controller!.reset();
+ controller?.reset();
1723
}
1724
1725
1726
1727
1728
0 commit comments