copyDecorationWith method

PinTheme copyDecorationWith({
  1. Color? color,
  2. DecorationImage? image,
  3. BoxBorder? border,
  4. BorderRadiusGeometry? borderRadius,
  5. List<BoxShadow>? boxShadow,
  6. Gradient? gradient,
  7. BlendMode? backgroundBlendMode,
  8. BoxShape? shape,
})

Create a new PinTheme from the current instance with new decoration

Implementation

PinTheme copyDecorationWith({
  Color? color,
  DecorationImage? image,
  BoxBorder? border,
  BorderRadiusGeometry? borderRadius,
  List<BoxShadow>? boxShadow,
  Gradient? gradient,
  BlendMode? backgroundBlendMode,
  BoxShape? shape,
}) {
  assert(decoration != null);
  return copyWith(
    decoration: decoration?.copyWith(
      color: color,
      image: image,
      border: border,
      borderRadius: borderRadius,
      boxShadow: boxShadow,
      gradient: gradient,
      backgroundBlendMode: backgroundBlendMode,
      shape: shape,
    ),
  );
}