copyWith method
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,
);
}