processTapUp method
void
processTapUp()
Handles the tap up event for the button.
Implementation
void processTapUp() {
// if (_animationController.lastElapsedDuration?.inSeconds == 0) {
// return;
// }
if (widget.toggle) {
if (_animationController.status == AnimationStatus.completed) {
_animationController.reverse();
}
} else {
if (_animationController.status == AnimationStatus.completed) {
_animationController.reverse();
} else {
markReverse();
}
}
}