copyWith method

FloraCardOptions copyWith({
  1. Duration? animationDuration,
  2. double? height,
  3. double? width,
  4. EdgeInsets? margin,
  5. EdgeInsets? padding,
  6. Color? color,
  7. List<BoxShadow>? boxShadow,
  8. BorderRadius? borderRadius,
  9. Border? border,
  10. Color? focusColor,
  11. Color? hoverColor,
  12. Color? highlightColor,
  13. MaterialStateProperty<Color?>? overlayColor,
  14. Color? splashColor,
  15. BoxShape? shape,
})

Implementation

FloraCardOptions copyWith({
  Duration? animationDuration,
  double? height,
  double? width,
  EdgeInsets? margin,
  EdgeInsets? padding,
  Color? color,
  List<BoxShadow>? boxShadow,
  BorderRadius? borderRadius,
  Border? border,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  MaterialStateProperty<Color?>? overlayColor,
  Color? splashColor,
  BoxShape? shape,
}) {
  return FloraCardOptions(
    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,
    focusColor: focusColor ?? this.focusColor,
    hoverColor: hoverColor ?? this.hoverColor,
    highlightColor: highlightColor ?? this.highlightColor,
    overlayColor: overlayColor ?? this.overlayColor,
    splashColor: splashColor ?? this.splashColor,
    shape: shape ?? this.shape,
  );
}