copyWith method

UIExpansionTile copyWith({
  1. Key? key,
  2. String? title,
  3. Widget? titleChild,
  4. bool? initiallyExpanded,
  5. List<Widget>? children,
  6. UIExpansionTileStyle? style,
  7. void onExpansionChanged(
    1. bool expanded
    )?,
  8. Widget? trailingIcon,
})

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