copyWith method
WxListTileStyle
copyWith({
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double? spacing,
- bool? adaptiveSpacing,
- WxTileAlign? align,
- WxTileJustify? justify,
- bool? inline,
- bool? textWrap,
- TextAlign? textAlign,
- double? textSpacing,
- Color? textColor,
- TextOverflow? textOverflow,
- bool? textSoftWrap,
- TextWidthBasis? textWidthBasis,
- Color? iconColor,
- double? iconOpacity,
- double? iconSize,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- TextStyle? secondaryStyle,
- double? titleSize,
- double? subtitleSize,
- Color? titleColor,
- Color? subtitleColor,
- int? titleMaxLines,
- int? subtitleMaxLines,
- FontWeight? titleWeight,
- FontWeight? subtitleWeight,
Creates a copy of this WxListTileStyle but with the given fields replaced with the new values.
Implementation
WxListTileStyle copyWith({
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
double? spacing,
bool? adaptiveSpacing,
WxTileAlign? align,
WxTileJustify? justify,
bool? inline,
bool? textWrap,
TextAlign? textAlign,
double? textSpacing,
Color? textColor,
TextOverflow? textOverflow,
bool? textSoftWrap,
TextWidthBasis? textWidthBasis,
Color? iconColor,
double? iconOpacity,
double? iconSize,
TextStyle? titleStyle,
TextStyle? subtitleStyle,
TextStyle? secondaryStyle,
double? titleSize,
double? subtitleSize,
Color? titleColor,
Color? subtitleColor,
int? titleMaxLines,
int? subtitleMaxLines,
FontWeight? titleWeight,
FontWeight? subtitleWeight,
}) {
return WxListTileStyle(
margin: margin ?? this.margin,
padding: padding ?? this.padding,
spacing: spacing ?? this.spacing,
adaptiveSpacing: adaptiveSpacing ?? this.adaptiveSpacing,
align: align ?? this.align,
justify: justify ?? this.justify,
inline: inline ?? this.inline,
textWrap: textWrap ?? this.textWrap,
textAlign: textAlign ?? this.textAlign,
textSpacing: textSpacing ?? this.textSpacing,
textColor: textColor ?? this.textColor,
textOverflow: textOverflow ?? this.textOverflow,
textSoftWrap: textSoftWrap ?? this.textSoftWrap,
textWidthBasis: textWidthBasis ?? this.textWidthBasis,
iconColor: iconColor ?? this.iconColor,
iconOpacity: iconOpacity ?? this.iconOpacity,
iconSize: iconSize ?? this.iconSize,
titleStyle: titleStyle ?? this.titleStyle,
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
secondaryStyle: secondaryStyle ?? this.secondaryStyle,
titleSize: titleSize ?? this.titleSize,
subtitleSize: subtitleSize ?? this.subtitleSize,
titleColor: titleColor ?? this.titleColor,
subtitleColor: subtitleColor ?? this.subtitleColor,
titleMaxLines: titleMaxLines ?? this.titleMaxLines,
subtitleMaxLines: subtitleMaxLines ?? this.subtitleMaxLines,
titleWeight: titleWeight ?? this.titleWeight,
subtitleWeight: subtitleWeight ?? this.subtitleWeight,
);
}