setFunctionVisible method
Implementation
setFunctionVisible({bool visibility = true, bool always = false}) {
functionVisibility = visibility;
functionVisibleTimer?.cancel();
notifyListeners();
if (!always && functionVisibility) {
functionVisibleTimer = Timer(
Duration(
milliseconds: playerControls!.functionKeyVisibleMillTime.toInt()),
() {
functionVisibility = false;
notifyListeners();
});
}
}