copyWith method
plugintestTheme
copyWith({
- double? width,
- double? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- BoxDecoration? decoration,
- IconThemeData? iconTheme,
- IconThemeData? selectedIconTheme,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- BoxDecoration? itemDecoration,
- BoxDecoration? selectedItemDecoration,
- EdgeInsets? itemMargin,
- EdgeInsets? selectedItemMargin,
- EdgeInsets? itemPadding,
- EdgeInsets? selectedItemPadding,
- EdgeInsets? itemTextPadding,
- EdgeInsets? selectedItemTextPadding,
- Color? hoverColor,
- TextStyle? hoverTextStyle,
Defautl copyWith method
Implementation
plugintestTheme copyWith({
double? width,
double? height,
EdgeInsets? padding,
EdgeInsets? margin,
BoxDecoration? decoration,
IconThemeData? iconTheme,
IconThemeData? selectedIconTheme,
TextStyle? textStyle,
TextStyle? selectedTextStyle,
BoxDecoration? itemDecoration,
BoxDecoration? selectedItemDecoration,
EdgeInsets? itemMargin,
EdgeInsets? selectedItemMargin,
EdgeInsets? itemPadding,
EdgeInsets? selectedItemPadding,
EdgeInsets? itemTextPadding,
EdgeInsets? selectedItemTextPadding,
Color? hoverColor,
TextStyle? hoverTextStyle,
}) {
return plugintestTheme(
width: width ?? this.width,
height: height ?? this.height,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
decoration: decoration ?? this.decoration,
iconTheme: iconTheme ?? this.iconTheme,
selectedIconTheme: selectedIconTheme ?? this.selectedIconTheme,
textStyle: textStyle ?? this.textStyle,
selectedTextStyle: selectedTextStyle ?? this.selectedTextStyle,
itemDecoration: itemDecoration ?? this.itemDecoration,
selectedItemDecoration:
selectedItemDecoration ?? this.selectedItemDecoration,
itemMargin: itemMargin ?? this.itemMargin,
selectedItemMargin: selectedItemMargin ?? this.selectedItemMargin,
itemPadding: itemPadding ?? this.itemPadding,
selectedItemPadding: selectedItemPadding ?? this.selectedItemPadding,
itemTextPadding: itemTextPadding ?? this.itemTextPadding,
selectedItemTextPadding:
selectedItemTextPadding ?? this.selectedItemTextPadding,
hoverColor: hoverColor ?? this.hoverColor,
hoverTextStyle: hoverTextStyle ?? this.hoverTextStyle,
);
}