copyWith method

CaretStyle copyWith({
  1. Color? color,
  2. double? width,
  3. BorderRadiusGeometry? borderRadius,
})

Implementation

CaretStyle copyWith({
  Color? color,
  double? width,
  BorderRadiusGeometry? borderRadius,
}) {
  return CaretStyle(
    color: color ?? this.color,
    width: width ?? this.width,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}