copyWith method
FloraButtonOptions
copyWith({
- bool? enableTapDownAnimation,
- TextStyle? titleStyle,
- Duration? animationDuration,
- double? height,
- double? width,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Color? color,
- List<
BoxShadow> ? boxShadow, - BorderRadius? borderRadius,
- Border? border,
- double? upperBound,
- double? lowerBound,
- double? tapScale,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- MaterialStateProperty<
Color?> ? overlayColor, - Color? splashColor,
- BoxShape? shape,
override
Implementation
@override
FloraButtonOptions copyWith({
bool? enableTapDownAnimation,
TextStyle? titleStyle,
Duration? animationDuration,
double? height,
double? width,
EdgeInsets? margin,
EdgeInsets? padding,
Color? color,
List<BoxShadow>? boxShadow,
BorderRadius? borderRadius,
Border? border,
double? upperBound,
double? lowerBound,
double? tapScale,
Color? focusColor,
Color? hoverColor,
Color? highlightColor,
MaterialStateProperty<Color?>? overlayColor,
Color? splashColor,
BoxShape? shape,
}) {
return FloraButtonOptions(
enableTapDownAnimation: enableTapDownAnimation ?? this.enableTapDownAnimation,
titleStyle: titleStyle ?? this.titleStyle,
animationDuration: animationDuration ?? this.animationDuration,
height: height ?? this.height,
width: width ?? this.width,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
color: color ?? this.color,
boxShadow: boxShadow ?? this.boxShadow,
borderRadius: borderRadius ?? this.borderRadius,
border: border ?? this.border,
upperBound: upperBound ?? this.upperBound,
lowerBound: lowerBound ?? this.lowerBound,
tapScale: tapScale ?? this.tapScale,
focusColor: focusColor ?? this.focusColor,
hoverColor: hoverColor ?? this.hoverColor,
highlightColor: highlightColor ?? this.highlightColor,
overlayColor: overlayColor ?? this.overlayColor,
splashColor: splashColor ?? this.splashColor,
shape: shape ?? this.shape,
);
}