clone method

CustomPaint clone({
  1. Widget? child,
})

Implementation

CustomPaint clone({Widget? child}) {
  return CustomPaint(
      key: this.key,
      painter: this.painter,
      foregroundPainter: this.foregroundPainter,
      size: this.size,
      isComplex: this.isComplex,
      willChange: this.willChange,
      child: child);
}