copyWith method

ExpandableParameters copyWith({
  1. IconData? prefixIcon,
  2. String? title,
  3. bool? isSwitch,
  4. bool? isExpandeable,
  5. Widget? expandedWidget,
  6. Widget? suffixWidget,
  7. VoidCallback? onExpandedSectionToggle,
})

Implementation

ExpandableParameters copyWith({
  IconData? prefixIcon,
  String? title,
  bool? isSwitch,
  bool? isExpandeable,
  Widget? expandedWidget,
  Widget? suffixWidget,
  VoidCallback? onExpandedSectionToggle,
}) {
  return ExpandableParameters(
    prefixIcon: prefixIcon ?? this.prefixIcon,
    title: title ?? this.title,
    isSwitch: isSwitch ?? this.isSwitch,
    isExpandeable: isExpandeable ?? this.isExpandeable,
    expandedWidget: expandedWidget ?? this.expandedWidget,
    suffixWidget: suffixWidget ?? this.suffixWidget,
    onExpandedSectionToggle:
        onExpandedSectionToggle ?? this.onExpandedSectionToggle,
  );
}