copyWith method

TraceModel copyWith({
  1. bool? isSpace,
  2. String? letterPath,
  3. String? pointsJsonFile,
  4. String? dottedPath,
  5. String? indexPath,
  6. bool? disableDivededStrokes,
  7. Color? outerPaintColor,
  8. Color? innerPaintColor,
  9. Color? dottedColor,
  10. Color? indexColor,
  11. double? strokeWidth,
  12. PaintingStyle? indexPathPaintStyle,
  13. PaintingStyle? dottedPathPaintStyle,
  14. Size? poitionIndexPath,
  15. Size? poitionDottedPath,
  16. double? scaleIndexPath,
  17. double? scaledottedPath,
  18. double? distanceToCheck,
  19. Size? letterViewSize,
  20. double? strokeIndex,
})

Implementation

TraceModel copyWith({
  bool? isSpace,
  String? letterPath,
  String? pointsJsonFile,
  String? dottedPath,
  String? indexPath,
  bool? disableDivededStrokes,
  Color? outerPaintColor,
  Color? innerPaintColor,
  Color? dottedColor,
  Color? indexColor,
  double? strokeWidth,
  PaintingStyle? indexPathPaintStyle,
  PaintingStyle? dottedPathPaintStyle,
  Size? poitionIndexPath,
  Size? poitionDottedPath,
  double? scaleIndexPath,
  double? scaledottedPath,
  double? distanceToCheck,
  Size? letterViewSize,
  double? strokeIndex,
}) {
  return TraceModel(
    isSpace: isSpace ?? this.isSpace,
    letterPath: letterPath ?? this.letterPath,
    pointsJsonFile: pointsJsonFile ?? this.pointsJsonFile,
    dottedPath: dottedPath ?? this.dottedPath,
    indexPath: indexPath ?? this.indexPath,
    disableDivededStrokes: disableDivededStrokes ?? this.disableDivededStrokes,
    outerPaintColor: outerPaintColor ?? this.outerPaintColor,
    innerPaintColor: innerPaintColor ?? this.innerPaintColor,
    dottedColor: dottedColor ?? this.dottedColor,
    indexColor: indexColor ?? this.indexColor,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    indexPathPaintStyle: indexPathPaintStyle ?? this.indexPathPaintStyle,
    dottedPathPaintStyle: dottedPathPaintStyle ?? this.dottedPathPaintStyle,
    poitionIndexPath: poitionIndexPath ?? this.poitionIndexPath,
    poitionDottedPath: poitionDottedPath ?? this.poitionDottedPath,
    scaleIndexPath: scaleIndexPath ?? this.scaleIndexPath,
    scaledottedPath: scaledottedPath ?? this.scaledottedPath,
    distanceToCheck: distanceToCheck ?? this.distanceToCheck,
    letterViewSize: letterViewSize ?? this.letterViewSize,
    strokeIndex: strokeIndex ?? this.strokeIndex,
  );
}