copyWith method
GhostButtonTheme
copyWith({
- ValueGetter<
ButtonStatePropertyDelegate< ? decoration,Decoration> ?> - ValueGetter<
ButtonStatePropertyDelegate< ? mouseCursor,MouseCursor> ?> - ValueGetter<
ButtonStatePropertyDelegate< ? padding,EdgeInsetsGeometry> ?> - ValueGetter<
ButtonStatePropertyDelegate< ? textStyle,TextStyle> ?> - ValueGetter<
ButtonStatePropertyDelegate< ? iconTheme,IconThemeData> ?> - ValueGetter<
ButtonStatePropertyDelegate< ? margin,EdgeInsetsGeometry> ?>
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(),
);
}