copyWith method

Implementation

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