onDidUpdateWidget method
void
onDidUpdateWidget()
Implementation
void onDidUpdateWidget() {
if (thumbVisibility != thumbVisibility) {
if (thumbVisibility ?? false) {
_fadeoutTimerV?.cancel();
_fadeoutTimerH?.cancel();
fadeoutAnimationControllerVertical.animateTo(1.0);
fadeoutAnimationControllerHorizontal.animateTo(1.0);
} else {
fadeoutAnimationControllerVertical.reverse();
fadeoutAnimationControllerHorizontal.reverse();
}
}
}