FFTabBar constructor
FFTabBar({
- bool? legacyScrollable,
- FFColor? legacyIndicatorColor,
- double? legacyIndicatorWeight,
- FFColor? legacyLabelColor,
- FFColor? legacyUnselectedLabelColor,
- FFPadding? labelPadding,
- int? legacyInitialIndex,
- FFText? labelStyle,
- bool? keepTabStateAlive,
- bool? legacyPreventSwipeToSwitchTabs,
- FFAlignment? tabAlignment,
- bool? legacyTabOnBottom,
- FFTabBar_TabBarStyle? tabBarStyle,
- FFColor? legacyBackgroundColor,
- FFColor? legacyUnselectedBackgroundColor,
- double? legacyBorderWidth,
- FFColor? legacyBorderColor,
- FFColor? legacyUnselectedBorderColor,
- FFPadding? buttonMargin,
- double? legacyBorderRadius,
- 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,
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;
}