TDBottomTabBarTabConfig constructor

TDBottomTabBarTabConfig({
  1. required GestureTapCallback? onTap,
  2. IconTextTypeConfig? iconTextTypeConfig,
  3. IconTypeConfig? iconTypeConfig,
  4. String? tabText,
  5. BadgeConfig? badgeConfig,
  6. 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;
      }());