copyWith method
- Color? backgroundColor,
- Color? collapsedBackgroundColor,
- EdgeInsetsGeometry? tilePadding,
- AlignmentGeometry? expandedAlignment,
- EdgeInsetsGeometry? childrenPadding,
- Color? iconColor,
- Color? collapsedIconColor,
- Color? textColor,
- Color? collapsedTextColor,
- ShapeBorder? shape,
- ShapeBorder? collapsedShape,
- Clip? clipBehavior,
- AnimationStyle? expansionAnimationStyle,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
ExpansionTileThemeData copyWith({
Color? backgroundColor,
Color? collapsedBackgroundColor,
EdgeInsetsGeometry? tilePadding,
AlignmentGeometry? expandedAlignment,
EdgeInsetsGeometry? childrenPadding,
Color? iconColor,
Color? collapsedIconColor,
Color? textColor,
Color? collapsedTextColor,
ShapeBorder? shape,
ShapeBorder? collapsedShape,
Clip? clipBehavior,
AnimationStyle? expansionAnimationStyle,
}) {
return ExpansionTileThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
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,
expansionAnimationStyle: expansionAnimationStyle ?? this.expansionAnimationStyle,
);
}