setTopBarBackColor method

void setTopBarBackColor(
  1. Color color
)

默认这个状态栏下,设置颜色

Implementation

void setTopBarBackColor(Color color) {
  if (_stateBaseFunction != null && _stateBaseFunction.mounted) {
    _stateBaseFunction.setState(() {
      _topBarColor = color == null ? _topBarColor : color;
    });
  }
}