initButtonParams method

void initButtonParams()

Implementation

void initButtonParams() {
  /// 优先使用用户自定义按钮
  if (widget.btns != null) {
    return;
  }

  if (widget.btnsTxt == null) {
    widget.btnsTxt = <String>[];
  }

  if (widget.selectBtnList == null) {
    _useInnerStatus = true;
    widget.selectBtnList = List<bool>.filled(widget.btnsTxt!.length, false);
  }

  if (widget.enableBtnList == null) {
    widget.enableBtnList = List<bool>.filled(widget.btnsTxt!.length, true);
  }
}