copyWith method

ZeroExpansionTileStyle copyWith({
  1. AccordionVariant? variant,
  2. Widget? leading,
  3. Widget? trailing,
  4. Color? titleColor,
  5. Color? collapsedTitleColor,
  6. Color? backgroundColor,
  7. Color? collapsedBackgroundColor,
  8. Color? childrenBackgroundColor,
  9. EdgeInsetsGeometry? tilePadding,
  10. AlignmentGeometry? expandedAlignment,
  11. EdgeInsetsGeometry? childrenPadding,
  12. Color? iconColor,
  13. Color? collapsedIconColor,
  14. Color? textColor,
  15. Color? collapsedTextColor,
  16. ShapeBorder? shape,
  17. ShapeBorder? collapsedShape,
  18. Clip? clipBehavior,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

ZeroExpansionTileStyle copyWith({
  AccordionVariant? variant,
  Widget? leading,
  Widget? trailing,
  Color? titleColor,
  Color? collapsedTitleColor,
  Color? backgroundColor,
  Color? collapsedBackgroundColor,
  Color? childrenBackgroundColor,
  EdgeInsetsGeometry? tilePadding,
  AlignmentGeometry? expandedAlignment,
  EdgeInsetsGeometry? childrenPadding,
  Color? iconColor,
  Color? collapsedIconColor,
  Color? textColor,
  Color? collapsedTextColor,
  ShapeBorder? shape,
  ShapeBorder? collapsedShape,
  Clip? clipBehavior,
}) {
  return ZeroExpansionTileStyle(
    variant: variant ?? this.variant,
    leading: leading ?? this.leading,
    trailing: trailing ?? this.trailing,
    titleColor: titleColor ?? this.titleColor,
    collapsedTitleColor: collapsedTitleColor ?? this.collapsedTitleColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    childrenBackgroundColor:
        childrenBackgroundColor ?? this.childrenBackgroundColor,
    collapsedBackgroundColor:
        collapsedBackgroundColor ?? this.collapsedBackgroundColor,
    tilePadding: tilePadding ?? this.tilePadding,
    expandedAlignment: expandedAlignment ?? this.expandedAlignment,
    childrenPadding: childrenPadding ?? this.childrenPadding,
    iconColor: iconColor ?? this.iconColor,
    collapsedIconColor: collapsedIconColor ?? this.collapsedIconColor,
    textColor: textColor ?? this.textColor,
    collapsedTextColor: collapsedTextColor ?? this.collapsedTextColor,
    shape: shape ?? this.shape,
    collapsedShape: collapsedShape ?? this.collapsedShape,
    clipBehavior: clipBehavior ?? this.clipBehavior,
  );
}