copyWith method

DotDecoration copyWith({
  1. BorderRadius? borderRadius,
  2. double? width,
  3. double? height,
  4. Color? color,
  5. DotBorder? dotBorder,
  6. double? verticalOffset,
  7. double? rotationAngle,
})

Builds a new instance with the given override values

Implementation

DotDecoration copyWith({
  BorderRadius? borderRadius,
  double? width,
  double? height,
  Color? color,
  DotBorder? dotBorder,
  double? verticalOffset,
  double? rotationAngle,
}) {
  return DotDecoration(
    borderRadius: borderRadius ?? this.borderRadius,
    width: width ?? this.width,
    height: height ?? this.height,
    color: color ?? this.color,
    dotBorder: dotBorder ?? this.dotBorder,
    verticalOffset: verticalOffset ?? this.verticalOffset,
    rotationAngle: rotationAngle ?? this.rotationAngle,
  );
}