copyWith method

ExpandIconTheme copyWith({
  1. Widget? widget,
  2. double? width,
  3. double? height,
  4. EdgeInsets? padding,
  5. EdgeInsets? margin,
  6. Color? color,
  7. Color? expandedColor,
})

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

Implementation

ExpandIconTheme copyWith({
  Widget? widget,
  double? width,
  double? height,
  EdgeInsets? padding,
  EdgeInsets? margin,
  Color? color,
  Color? expandedColor,
}) {
  return ExpandIconTheme(
    widget: widget ?? this.widget,
    width: width ?? this.width,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    color: color ?? this.color,
    expandedColor: expandedColor ?? this.expandedColor,
  );
}