copyWith method
ExpandIconTheme
copyWith({
- Widget? widget,
- double? width,
- double? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- Color? color,
- Color? expandedColor,
Creates a copy of this theme with the given fields replaced with new values
Implementation
ExpandIconTheme copyWith({
Widget? widget,
double? width,
double? height,
EdgeInsets? padding,
EdgeInsets? margin,
Color? color,
Color? expandedColor,
}) {
return ExpandIconTheme(
widget: widget ?? this.widget,
width: width ?? this.width,
height: height ?? this.height,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
color: color ?? this.color,
expandedColor: expandedColor ?? this.expandedColor,
);
}