TDBottomTabBarPopUpBtnConfig constructor

TDBottomTabBarPopUpBtnConfig({
  1. required List<PopUpMenuItem> items,
  2. required ValueChanged<String> onChanged,
  3. TDBottomTabBarPopUpShapeConfig? popUpDialogConfig,
})

Implementation

TDBottomTabBarPopUpBtnConfig(
    {required this.items, required this.onChanged, this.popUpDialogConfig})
    : assert(() {
        if (popUpDialogConfig != null) {
          if ((popUpDialogConfig.arrowHeight != null &&
                  popUpDialogConfig.arrowHeight! <= 0.0) ||
              (popUpDialogConfig.arrowWidth != null &&
                  popUpDialogConfig.arrowWidth! <= 0.0)) {
            throw FlutterError(
                '[TDBottomTabBarPopUpBtnConfig] arrowHeight or arrowHeight can '
                'not set less than or equal to zero');
          }
        }
        return true;
      }());