copyWith method
WxTextTileStyle
copyWith({
- double? spacing,
- EdgeInsetsGeometry? margin,
- TextAlign? align,
- Color? color,
- TextOverflow? overflow,
- bool? softWrap,
- TextWidthBasis? widthBasis,
- TextStyle? titleStyle,
- Color? titleColor,
- FontWeight? titleWeight,
- double? titleSize,
- int? titleMaxLines,
- TextStyle? subtitleStyle,
- Color? subtitleColor,
- FontWeight? subtitleWeight,
- double? subtitleSize,
- int? subtitleMaxLines,
Creates a copy of this WxTextTileStyle but with the given fields replaced with the new values.
Implementation
WxTextTileStyle copyWith({
double? spacing,
EdgeInsetsGeometry? margin,
TextAlign? align,
Color? color,
TextOverflow? overflow,
bool? softWrap,
TextWidthBasis? widthBasis,
TextStyle? titleStyle,
Color? titleColor,
FontWeight? titleWeight,
double? titleSize,
int? titleMaxLines,
TextStyle? subtitleStyle,
Color? subtitleColor,
FontWeight? subtitleWeight,
double? subtitleSize,
int? subtitleMaxLines,
}) {
return WxTextTileStyle(
spacing: spacing ?? this.spacing,
margin: margin ?? this.margin,
align: align ?? this.align,
color: color ?? this.color,
overflow: overflow ?? this.overflow,
softWrap: softWrap ?? this.softWrap,
widthBasis: widthBasis ?? this.widthBasis,
titleStyle: titleStyle ?? this.titleStyle,
titleColor: titleColor ?? this.titleColor,
titleWeight: titleWeight ?? this.titleWeight,
titleSize: titleSize ?? this.titleSize,
titleMaxLines: titleMaxLines ?? this.titleMaxLines,
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
subtitleColor: subtitleColor ?? this.subtitleColor,
subtitleWeight: subtitleWeight ?? this.subtitleWeight,
subtitleSize: subtitleSize ?? this.subtitleSize,
subtitleMaxLines: subtitleMaxLines ?? this.subtitleMaxLines,
);
}