copyWith method

CollapsibleTheme copyWith({
  1. double? padding,
  2. IconData? iconExpanded,
  3. IconData? iconCollapsed,
  4. CrossAxisAlignment? crossAxisAlignment,
  5. MainAxisAlignment? mainAxisAlignment,
  6. 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,
  );
}