copyWith method
ZeroExpansionTileStyle
copyWith({
- AccordionVariant? variant,
- Widget? leading,
- Widget? trailing,
- Color? titleColor,
- Color? collapsedTitleColor,
- Color? backgroundColor,
- Color? collapsedBackgroundColor,
- Color? childrenBackgroundColor,
- EdgeInsetsGeometry? tilePadding,
- AlignmentGeometry? expandedAlignment,
- EdgeInsetsGeometry? childrenPadding,
- Color? iconColor,
- Color? collapsedIconColor,
- Color? textColor,
- Color? collapsedTextColor,
- ShapeBorder? shape,
- ShapeBorder? collapsedShape,
- Clip? clipBehavior,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
ZeroExpansionTileStyle copyWith({
AccordionVariant? variant,
Widget? leading,
Widget? trailing,
Color? titleColor,
Color? collapsedTitleColor,
Color? backgroundColor,
Color? collapsedBackgroundColor,
Color? childrenBackgroundColor,
EdgeInsetsGeometry? tilePadding,
AlignmentGeometry? expandedAlignment,
EdgeInsetsGeometry? childrenPadding,
Color? iconColor,
Color? collapsedIconColor,
Color? textColor,
Color? collapsedTextColor,
ShapeBorder? shape,
ShapeBorder? collapsedShape,
Clip? clipBehavior,
}) {
return ZeroExpansionTileStyle(
variant: variant ?? this.variant,
leading: leading ?? this.leading,
trailing: trailing ?? this.trailing,
titleColor: titleColor ?? this.titleColor,
collapsedTitleColor: collapsedTitleColor ?? this.collapsedTitleColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
childrenBackgroundColor:
childrenBackgroundColor ?? this.childrenBackgroundColor,
collapsedBackgroundColor:
collapsedBackgroundColor ?? this.collapsedBackgroundColor,
tilePadding: tilePadding ?? this.tilePadding,
expandedAlignment: expandedAlignment ?? this.expandedAlignment,
childrenPadding: childrenPadding ?? this.childrenPadding,
iconColor: iconColor ?? this.iconColor,
collapsedIconColor: collapsedIconColor ?? this.collapsedIconColor,
textColor: textColor ?? this.textColor,
collapsedTextColor: collapsedTextColor ?? this.collapsedTextColor,
shape: shape ?? this.shape,
collapsedShape: collapsedShape ?? this.collapsedShape,
clipBehavior: clipBehavior ?? this.clipBehavior,
);
}