copyWith method

  1. @override
FloraBottomSheetOptions 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. double? upperBound,
  11. double? lowerBound,
  12. double? tapScale,
  13. Color? focusColor,
  14. Color? hoverColor,
  15. Color? highlightColor,
  16. MaterialStateProperty<Color?>? overlayColor,
  17. Color? splashColor,
  18. BoxShape? shape,
})
override

Implementation

@override
FloraBottomSheetOptions copyWith({
  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 FloraBottomSheetOptions(
    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,
  );
}