copyWith method
ThemeExtension<TxTileThemeData>
copyWith({
- Color? tileColor,
- TextStyle? labelStyle,
- TextAlign? labelTextAlign,
- TextOverflow? labelOverflow,
- EdgeInsetsGeometry? padding,
- Axis? layoutDirection,
- double? horizontalGap,
- bool? dense,
- ShapeBorder? shape,
- Color? iconColor,
- Color? textColor,
- TextStyle? leadingAndTrailingTextStyle,
- double? minLeadingWidth,
- double? minLabelWidth,
- double? minVerticalPadding,
- VisualDensity? visualDensity,
- bool? colon,
- Color? focusColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<TxTileThemeData> copyWith({
Color? tileColor,
TextStyle? labelStyle,
TextAlign? labelTextAlign,
TextOverflow? labelOverflow,
EdgeInsetsGeometry? padding,
Axis? layoutDirection,
double? horizontalGap,
bool? dense,
ShapeBorder? shape,
Color? iconColor,
Color? textColor,
TextStyle? leadingAndTrailingTextStyle,
double? minLeadingWidth,
double? minLabelWidth,
double? minVerticalPadding,
VisualDensity? visualDensity,
bool? colon,
Color? focusColor,
}) {
return TxTileThemeData(
tileColor: tileColor ?? this.tileColor,
labelStyle: labelStyle ?? this.labelStyle,
labelTextAlign: labelTextAlign ?? this.labelTextAlign,
labelOverflow: labelOverflow ?? this.labelOverflow,
padding: padding ?? this.padding,
layoutDirection: layoutDirection ?? this.layoutDirection,
horizontalGap: horizontalGap ?? this.horizontalGap,
dense: dense ?? this.dense,
shape: shape ?? this.shape,
iconColor: iconColor ?? this.iconColor,
textColor: textColor ?? this.textColor,
leadingAndTrailingTextStyle:
leadingAndTrailingTextStyle ?? this.leadingAndTrailingTextStyle,
minLeadingWidth: minLeadingWidth ?? this.minLeadingWidth,
minVerticalPadding: minVerticalPadding ?? this.minVerticalPadding,
visualDensity: visualDensity ?? this.visualDensity,
minLabelWidth: minLabelWidth ?? this.minLabelWidth,
colon: colon ?? this.colon,
focusColor: focusColor ?? this.focusColor,
);
}