copyWith method
ThemeExtension<TxPanelThemeData>
copyWith({
- bool? dense,
- ShapeBorder? shape,
- Color? selectedColor,
- Color? iconColor,
- Color? textColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? panelColor,
- Color? selectedPanelColor,
- double? horizontalTitleGap,
- double? minLeadingWidth,
- double? verticalGap,
- bool? enableFeedback,
- MaterialStateProperty<
MouseCursor?> ? mouseCursor, - VisualDensity? visualDensity,
- TextStyle? titleTextStyle,
- TextStyle? subtitleTextStyle,
- TextStyle? leadingAndTrailingTextStyle,
- TextStyle? contentTextStyle,
- ListTileTitleAlignment? titleAlignment,
- Color? focusColor,
- Color? splashColor,
- Color? hoverColor,
- Color? highlightColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<TxPanelThemeData> copyWith({
bool? dense,
ShapeBorder? shape,
Color? selectedColor,
Color? iconColor,
Color? textColor,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
Color? panelColor,
Color? selectedPanelColor,
double? horizontalTitleGap,
double? minLeadingWidth,
double? verticalGap,
bool? enableFeedback,
MaterialStateProperty<MouseCursor?>? mouseCursor,
VisualDensity? visualDensity,
TextStyle? titleTextStyle,
TextStyle? subtitleTextStyle,
TextStyle? leadingAndTrailingTextStyle,
TextStyle? contentTextStyle,
ListTileTitleAlignment? titleAlignment,
Color? focusColor,
Color? splashColor,
Color? hoverColor,
Color? highlightColor,
}) {
return TxPanelThemeData(
dense: dense ?? this.dense,
shape: shape ?? this.shape,
selectedColor: selectedColor ?? this.selectedColor,
iconColor: iconColor ?? this.iconColor,
textColor: textColor ?? this.textColor,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
panelColor: panelColor ?? this.panelColor,
selectedPanelColor: selectedPanelColor ?? this.selectedPanelColor,
horizontalTitleGap: horizontalTitleGap ?? this.horizontalTitleGap,
verticalGap: verticalGap ?? this.verticalGap,
minLeadingWidth: minLeadingWidth ?? this.minLeadingWidth,
enableFeedback: enableFeedback ?? this.enableFeedback,
mouseCursor: mouseCursor ?? this.mouseCursor,
visualDensity: visualDensity ?? this.visualDensity,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
leadingAndTrailingTextStyle:
leadingAndTrailingTextStyle ?? this.leadingAndTrailingTextStyle,
contentTextStyle: contentTextStyle ?? this.contentTextStyle,
titleAlignment: titleAlignment ?? this.titleAlignment,
focusColor: focusColor ?? this.focusColor,
splashColor: splashColor ?? this.splashColor,
hoverColor: hoverColor ?? this.hoverColor,
highlightColor: highlightColor ?? this.highlightColor,
);
}