setTopBarVisible method

void setTopBarVisible(
  1. bool isVisible
)

设置状态栏隐藏或者显示

Implementation

void setTopBarVisible(bool isVisible) {
  if (_stateBaseFunction != null && _stateBaseFunction.mounted) {
    _stateBaseFunction.setState(() {
      _isTopBarShow = isVisible;
    });
  }
}