copyWith method
TxCellThemeData
copyWith({
- bool? dense,
- Color? iconColor,
- EdgeInsetsGeometry? padding,
- double? gap,
- double? minLeadingWidth,
- double? minLabelWidth,
- VisualDensity? visualDensity,
- TextStyle? labelTextStyle,
- TextStyle? contentTextStyle,
- double? minVerticalPadding,
- TextStyle? leadingTextStyle,
- TextAlign? contentTextAlign,
- int? contentMaxLines,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
TxCellThemeData copyWith({
bool? dense,
Color? iconColor,
EdgeInsetsGeometry? padding,
double? gap,
double? minLeadingWidth,
double? minLabelWidth,
VisualDensity? visualDensity,
TextStyle? labelTextStyle,
TextStyle? contentTextStyle,
double? minVerticalPadding,
TextStyle? leadingTextStyle,
TextAlign? contentTextAlign,
int? contentMaxLines,
}) {
return TxCellThemeData(
dense: dense ?? this.dense,
iconColor: iconColor ?? this.iconColor,
minVerticalPadding: minVerticalPadding ?? this.minVerticalPadding,
padding: padding ?? this.padding,
gap: gap ?? this.gap,
minLeadingWidth: minLeadingWidth ?? this.minLeadingWidth,
minLabelWidth: minLabelWidth ?? this.minLabelWidth,
visualDensity: visualDensity ?? this.visualDensity,
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
contentTextStyle: contentTextStyle ?? this.contentTextStyle,
contentTextAlign: contentTextAlign ?? this.contentTextAlign,
leadingTextStyle: leadingTextStyle ?? this.leadingTextStyle,
);
}