copyWith method

TabThemeData copyWith({
  1. EdgeInsets? padding,
  2. double? height,
  3. double? width,
  4. Color? tabBarBackgroundColor,
  5. TextStyle? textStyle,
  6. IconThemeData? iconThemeData,
  7. double? itemSpacing,
  8. EdgeInsets? itemPadding,
  9. Color? itemColor,
  10. Color? itemHoverColor,
  11. Color? itemHighlightColor,
  12. bool? itemFilled,
  13. Color? itemBackgroundColor,
  14. Color? itemHoverBackgroundColor,
  15. Color? itemHighlightBackgroundColor,
  16. Duration? menuTransitionDuration,
  17. Curve? menuTrasitionCurve,
  18. Curve? menuTrasitionReverseCurve,
})

Makes a copy of TabThemeData overwriting selected fields.

Implementation

TabThemeData copyWith({
  EdgeInsets? padding,
  double? height,
  double? width,
  Color? tabBarBackgroundColor,
  TextStyle? textStyle,
  IconThemeData? iconThemeData,
  double? itemSpacing,
  EdgeInsets? itemPadding,
  Color? itemColor,
  Color? itemHoverColor,
  Color? itemHighlightColor,
  bool? itemFilled,
  Color? itemBackgroundColor,
  Color? itemHoverBackgroundColor,
  Color? itemHighlightBackgroundColor,
  Duration? menuTransitionDuration,
  Curve? menuTrasitionCurve,
  Curve? menuTrasitionReverseCurve,
}) {
  return TabThemeData(
    padding: padding ?? this.padding,
    height: height ?? this.height,
    width: width ?? this.width,
    tabBarBackgroundColor:
        tabBarBackgroundColor ?? this.tabBarBackgroundColor,
    textStyle: textStyle ?? this.textStyle,
    iconThemeData: iconThemeData ?? this.iconThemeData,
    itemSpacing: itemSpacing ?? this.itemSpacing,
    itemPadding: itemPadding ?? this.itemPadding,
    itemColor: itemColor ?? this.itemColor,
    itemHoverColor: itemHoverColor ?? this.itemHoverColor,
    itemHighlightColor: itemHighlightColor ?? this.itemHighlightColor,
    itemFilled: itemFilled ?? this.itemFilled,
    itemBackgroundColor: itemBackgroundColor ?? this.itemBackgroundColor,
    itemHoverBackgroundColor:
        itemHoverBackgroundColor ?? this.itemHoverBackgroundColor,
    itemHighlightBackgroundColor:
        itemHighlightBackgroundColor ?? this.itemHighlightBackgroundColor,
    menuTransitionDuration:
        menuTransitionDuration ?? this.menuTransitionDuration,
    menuTrasitionCurve: menuTrasitionCurve ?? this.menuTrasitionCurve,
    menuTrasitionReverseCurve:
        menuTrasitionReverseCurve ?? this.menuTrasitionReverseCurve,
  );
}