copyWith method
ExpandableParameters
copyWith(
{ - IconData? prefixIcon,
- String? title,
- bool? isSwitch,
- bool? isExpandeable,
- Widget? expandedWidget,
- Widget? suffixWidget,
- VoidCallback? onExpandedSectionToggle,
- String? subtitle,
- String? description,
- Widget? trailing,
})
Implementation
ExpandableParameters copyWith({
IconData? prefixIcon,
String? title,
bool? isSwitch,
bool? isExpandeable,
Widget? expandedWidget,
Widget? suffixWidget,
VoidCallback? onExpandedSectionToggle,
String? subtitle,
String? description,
Widget? trailing,
}) {
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,
subtitle: subtitle ?? this.subtitle,
description: description ?? this.description,
trailing: trailing ?? this.trailing,
);
}