copyWith method
CollapsibleTheme
copyWith({
- double? padding,
- IconData? iconExpanded,
- IconData? iconCollapsed,
- CrossAxisAlignment? crossAxisAlignment,
- MainAxisAlignment? mainAxisAlignment,
- double? iconGap,
Creates a copy of this CollapsibleTheme with the given fields replaced.
Implementation
CollapsibleTheme copyWith({
double? padding,
IconData? iconExpanded,
IconData? iconCollapsed,
CrossAxisAlignment? crossAxisAlignment,
MainAxisAlignment? mainAxisAlignment,
double? iconGap,
}) {
return CollapsibleTheme(
padding: padding ?? this.padding,
iconExpanded: iconExpanded ?? this.iconExpanded,
iconCollapsed: iconCollapsed ?? this.iconCollapsed,
crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
iconGap: iconGap ?? this.iconGap,
);
}