copyWith method

Implementation

DestructiveButtonTheme copyWith({
  ButtonStatePropertyDelegate<Decoration>? decoration,
  ButtonStatePropertyDelegate<MouseCursor>? mouseCursor,
  ButtonStatePropertyDelegate<EdgeInsetsGeometry>? padding,
  ButtonStatePropertyDelegate<TextStyle>? textStyle,
  ButtonStatePropertyDelegate<IconThemeData>? iconTheme,
  ButtonStatePropertyDelegate<EdgeInsetsGeometry>? margin,
}) {
  return DestructiveButtonTheme(
    decoration: decoration ?? this.decoration,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    padding: padding ?? this.padding,
    textStyle: textStyle ?? this.textStyle,
    iconTheme: iconTheme ?? this.iconTheme,
    margin: margin ?? this.margin,
  );
}