copyWith method
AbstractButtonStyle
copyWith({
- ButtonStatePropertyDelegate<
Decoration> ? decoration, - ButtonStatePropertyDelegate<
MouseCursor> ? mouseCursor, - ButtonStatePropertyDelegate<
EdgeInsetsGeometry> ? padding, - ButtonStatePropertyDelegate<
TextStyle> ? textStyle, - ButtonStatePropertyDelegate<
IconThemeData> ? iconTheme, - ButtonStatePropertyDelegate<
EdgeInsetsGeometry> ? margin,
Implementation
AbstractButtonStyle copyWith({
ButtonStatePropertyDelegate<Decoration>? decoration,
ButtonStatePropertyDelegate<MouseCursor>? mouseCursor,
ButtonStatePropertyDelegate<EdgeInsetsGeometry>? padding,
ButtonStatePropertyDelegate<TextStyle>? textStyle,
ButtonStatePropertyDelegate<IconThemeData>? iconTheme,
ButtonStatePropertyDelegate<EdgeInsetsGeometry>? margin,
}) {
if (decoration == null &&
mouseCursor == null &&
padding == null &&
textStyle == null &&
iconTheme == null &&
margin == null) {
return this;
}
return _CopyWithButtonStyle(
this,
decoration,
mouseCursor,
padding,
textStyle,
iconTheme,
margin,
);
}