hideControls method
隐藏控制条
immediate 是否立即隐藏
Implementation
void hideControls({bool immediate = false}) {
if (immediate) {
stopTimer();
visible = false;
widget.onControlsToggle != null &&
widget.onControlsToggle!({"shown": false});
setState(() {});
animationController.reverse();
} else {
startTimer();
}
}