copyWith method

  1. @override
FloraButtonOptions copyWith({
  1. bool? enableTapDownAnimation,
  2. TextStyle? titleStyle,
  3. Duration? animationDuration,
  4. double? height,
  5. double? width,
  6. EdgeInsets? margin,
  7. EdgeInsets? padding,
  8. Color? color,
  9. List<BoxShadow>? boxShadow,
  10. BorderRadius? borderRadius,
  11. Border? border,
  12. double? upperBound,
  13. double? lowerBound,
  14. double? tapScale,
  15. Color? focusColor,
  16. Color? hoverColor,
  17. Color? highlightColor,
  18. MaterialStateProperty<Color?>? overlayColor,
  19. Color? splashColor,
  20. 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,
  );
}