copyWith method
ButtonStyle
copyWith({
- ButtonState<
TextStyle?> ? textStyle, - ButtonState<
Color?> ? backgroundColor, - ButtonState<
Color?> ? foregroundColor, - ButtonState<
Color?> ? shadowColor, - ButtonState<
double?> ? elevation, - ButtonState<
EdgeInsetsGeometry?> ? padding, - ButtonState<
ShapeBorder?> ? shape, - ButtonState<
double?> ? iconSize,
Implementation
ButtonStyle copyWith({
ButtonState<TextStyle?>? textStyle,
ButtonState<Color?>? backgroundColor,
ButtonState<Color?>? foregroundColor,
ButtonState<Color?>? shadowColor,
ButtonState<double?>? elevation,
ButtonState<EdgeInsetsGeometry?>? padding,
ButtonState<ShapeBorder?>? shape,
ButtonState<double?>? iconSize,
}) {
return ButtonStyle(
textStyle: textStyle ?? this.textStyle,
backgroundColor: backgroundColor ?? this.backgroundColor,
foregroundColor: foregroundColor ?? this.foregroundColor,
shadowColor: shadowColor ?? this.shadowColor,
elevation: elevation ?? this.elevation,
padding: padding ?? this.padding,
shape: shape ?? this.shape,
iconSize: iconSize ?? this.iconSize,
);
}