resetAutoHideTimer method

void resetAutoHideTimer(
  1. LayoutPosition position
)

重置指定组件的自动隐藏定时器 当用户与组件交互时调用此方法

Implementation

void resetAutoHideTimer(LayoutPosition position) {
  final componentConfig = config.components[position];
  if (componentConfig == null ||
      !componentConfig.isFloating ||
      !componentConfig.isCollapsible ||
      !config.enableFloatingAutoHide) {
    return;
  }

  // 如果组件当前是展开的,重新启动定时器
  if (animationManager.isExpanded(position)) {
    _startAutoHideTimer(position);
  }
}