TDBottomTabBarTabConfig constructor
TDBottomTabBarTabConfig({
- required GestureTapCallback? onTap,
- IconTextTypeConfig? iconTextTypeConfig,
- IconTypeConfig? iconTypeConfig,
- String? tabText,
- BadgeConfig? badgeConfig,
- TDBottomTabBarPopUpBtnConfig? popUpButtonConfig,
Implementation
TDBottomTabBarTabConfig({
required this.onTap,
this.iconTextTypeConfig,
this.iconTypeConfig,
this.tabText,
this.badgeConfig,
this.popUpButtonConfig,
}) : assert(() {
if (badgeConfig?.showBage ?? false) {
if (badgeConfig?.tdBadge == null) {
throw FlutterError('[NavigationTab] if set showBadge = true, '
'you must set a tdBadge instance');
}
}
return true;
}());