FFTabBar constructor

FFTabBar({
  1. bool? legacyScrollable,
  2. FFColor? legacyIndicatorColor,
  3. double? legacyIndicatorWeight,
  4. FFColor? legacyLabelColor,
  5. FFColor? legacyUnselectedLabelColor,
  6. FFPadding? labelPadding,
  7. int? legacyInitialIndex,
  8. FFText? labelStyle,
  9. bool? keepTabStateAlive,
  10. bool? legacyPreventSwipeToSwitchTabs,
  11. FFAlignment? tabAlignment,
  12. bool? legacyTabOnBottom,
  13. FFTabBar_TabBarStyle? tabBarStyle,
  14. FFColor? legacyBackgroundColor,
  15. FFColor? legacyUnselectedBackgroundColor,
  16. double? legacyBorderWidth,
  17. FFColor? legacyBorderColor,
  18. FFColor? legacyUnselectedBorderColor,
  19. FFPadding? buttonMargin,
  20. double? legacyBorderRadius,
  21. double? legacyElevation,
  22. FFPadding? tabbarMargin,
  23. FFText? unselectedLabelStyle,
  24. FFBooleanValue? scrollableValue,
  25. FFColorValue? indicatorColorValue,
  26. FFDoubleValue? indicatorWeightValue,
  27. FFColorValue? labelColorValue,
  28. FFColorValue? unselectedLabelColorValue,
  29. FFIntegerValue? initialIndexValue,
  30. FFBooleanValue? preventSwipeToSwitchTabsValue,
  31. FFBooleanValue? tabOnBottomValue,
  32. FFColorValue? backgroundColorValue,
  33. FFColorValue? unselectedBackgroundColorValue,
  34. FFDoubleValue? borderWidthValue,
  35. FFColorValue? borderColorValue,
  36. FFColorValue? unselectedBorderColorValue,
  37. FFDoubleValue? borderRadiusValue,
  38. FFDoubleValue? elevationValue,
})

Implementation

factory FFTabBar({
  $core.bool? legacyScrollable,
  FFColor? legacyIndicatorColor,
  $core.double? legacyIndicatorWeight,
  FFColor? legacyLabelColor,
  FFColor? legacyUnselectedLabelColor,
  FFPadding? labelPadding,
  $core.int? legacyInitialIndex,
  FFText? labelStyle,
  $core.bool? keepTabStateAlive,
  $core.bool? legacyPreventSwipeToSwitchTabs,
  FFAlignment? tabAlignment,
  $core.bool? legacyTabOnBottom,
  FFTabBar_TabBarStyle? tabBarStyle,
  FFColor? legacyBackgroundColor,
  FFColor? legacyUnselectedBackgroundColor,
  $core.double? legacyBorderWidth,
  FFColor? legacyBorderColor,
  FFColor? legacyUnselectedBorderColor,
  FFPadding? buttonMargin,
  $core.double? legacyBorderRadius,
  $core.double? legacyElevation,
  FFPadding? tabbarMargin,
  FFText? unselectedLabelStyle,
  FFBooleanValue? scrollableValue,
  FFColorValue? indicatorColorValue,
  FFDoubleValue? indicatorWeightValue,
  FFColorValue? labelColorValue,
  FFColorValue? unselectedLabelColorValue,
  FFIntegerValue? initialIndexValue,
  FFBooleanValue? preventSwipeToSwitchTabsValue,
  FFBooleanValue? tabOnBottomValue,
  FFColorValue? backgroundColorValue,
  FFColorValue? unselectedBackgroundColorValue,
  FFDoubleValue? borderWidthValue,
  FFColorValue? borderColorValue,
  FFColorValue? unselectedBorderColorValue,
  FFDoubleValue? borderRadiusValue,
  FFDoubleValue? elevationValue,
}) {
  final result = create();
  if (legacyScrollable != null) result.legacyScrollable = legacyScrollable;
  if (legacyIndicatorColor != null)
    result.legacyIndicatorColor = legacyIndicatorColor;
  if (legacyIndicatorWeight != null)
    result.legacyIndicatorWeight = legacyIndicatorWeight;
  if (legacyLabelColor != null) result.legacyLabelColor = legacyLabelColor;
  if (legacyUnselectedLabelColor != null)
    result.legacyUnselectedLabelColor = legacyUnselectedLabelColor;
  if (labelPadding != null) result.labelPadding = labelPadding;
  if (legacyInitialIndex != null)
    result.legacyInitialIndex = legacyInitialIndex;
  if (labelStyle != null) result.labelStyle = labelStyle;
  if (keepTabStateAlive != null) result.keepTabStateAlive = keepTabStateAlive;
  if (legacyPreventSwipeToSwitchTabs != null)
    result.legacyPreventSwipeToSwitchTabs = legacyPreventSwipeToSwitchTabs;
  if (tabAlignment != null) result.tabAlignment = tabAlignment;
  if (legacyTabOnBottom != null) result.legacyTabOnBottom = legacyTabOnBottom;
  if (tabBarStyle != null) result.tabBarStyle = tabBarStyle;
  if (legacyBackgroundColor != null)
    result.legacyBackgroundColor = legacyBackgroundColor;
  if (legacyUnselectedBackgroundColor != null)
    result.legacyUnselectedBackgroundColor = legacyUnselectedBackgroundColor;
  if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
  if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
  if (legacyUnselectedBorderColor != null)
    result.legacyUnselectedBorderColor = legacyUnselectedBorderColor;
  if (buttonMargin != null) result.buttonMargin = buttonMargin;
  if (legacyBorderRadius != null)
    result.legacyBorderRadius = legacyBorderRadius;
  if (legacyElevation != null) result.legacyElevation = legacyElevation;
  if (tabbarMargin != null) result.tabbarMargin = tabbarMargin;
  if (unselectedLabelStyle != null)
    result.unselectedLabelStyle = unselectedLabelStyle;
  if (scrollableValue != null) result.scrollableValue = scrollableValue;
  if (indicatorColorValue != null)
    result.indicatorColorValue = indicatorColorValue;
  if (indicatorWeightValue != null)
    result.indicatorWeightValue = indicatorWeightValue;
  if (labelColorValue != null) result.labelColorValue = labelColorValue;
  if (unselectedLabelColorValue != null)
    result.unselectedLabelColorValue = unselectedLabelColorValue;
  if (initialIndexValue != null) result.initialIndexValue = initialIndexValue;
  if (preventSwipeToSwitchTabsValue != null)
    result.preventSwipeToSwitchTabsValue = preventSwipeToSwitchTabsValue;
  if (tabOnBottomValue != null) result.tabOnBottomValue = tabOnBottomValue;
  if (backgroundColorValue != null)
    result.backgroundColorValue = backgroundColorValue;
  if (unselectedBackgroundColorValue != null)
    result.unselectedBackgroundColorValue = unselectedBackgroundColorValue;
  if (borderWidthValue != null) result.borderWidthValue = borderWidthValue;
  if (borderColorValue != null) result.borderColorValue = borderColorValue;
  if (unselectedBorderColorValue != null)
    result.unselectedBorderColorValue = unselectedBorderColorValue;
  if (borderRadiusValue != null) result.borderRadiusValue = borderRadiusValue;
  if (elevationValue != null) result.elevationValue = elevationValue;
  return result;
}