copyWith method
Implementation
UIExpansionTile copyWith({
Key? key,
String? title,
Widget? titleChild,
bool? initiallyExpanded,
List<Widget>? children,
UIExpansionTileStyle? style,
void Function(bool expanded)? onExpansionChanged,
Widget? trailingIcon,
}) {
return UIExpansionTile(
key: key ?? this.key,
title: title ?? this.title,
titleChild: titleChild ?? this.titleChild,
initiallyExpanded: initiallyExpanded ?? this.initiallyExpanded,
style: style ?? this.style,
onExpansionChanged: onExpansionChanged ?? this.onExpansionChanged,
trailingIcon: trailingIcon ?? this.trailingIcon,
children: children ?? this.children,
);
}