TDBottomTabBarPopUpBtnConfig constructor
TDBottomTabBarPopUpBtnConfig({
- required List<
PopUpMenuItem> items, - required ValueChanged<
String> onChanged, - 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;
}());