copyWith method
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,
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,
);
}