copyWith method

LetterPathsModel copyWith({
  1. bool? isSpace,
  2. Path? letterImage,
  3. Path? dottedIndex,
  4. Path? letterIndex,
  5. Image? traceImage,
  6. Image? dottedImage,
  7. Image? anchorImage,
  8. List<Path>? paths,
  9. List<List<Offset>>? allStrokePoints,
  10. Offset? anchorPos,
  11. Size? viewSize,
  12. bool? letterTracingFinished,
  13. bool? hasFinishedOneStroke,
  14. int? currentStroke,
  15. int? currentStrokeProgress,
  16. bool? isLoaded,
  17. PaintingStyle? dottedPathPaintStyle,
  18. PaintingStyle? indexPathPaintStyle,
})

Implementation

LetterPathsModel copyWith({
     bool?  isSpace,

  Path? letterImage,
  Path? dottedIndex,
  Path? letterIndex,
  ui.Image? traceImage,
  ui.Image? dottedImage,
  ui.Image? anchorImage,
  List<ui.Path>? paths,
  List<List<Offset>>? allStrokePoints,
  Offset? anchorPos,
  Size? viewSize,
  bool? letterTracingFinished,
  bool? hasFinishedOneStroke,
  int? currentStroke,
  int? currentStrokeProgress,
  bool? isLoaded,


  PaintingStyle? dottedPathPaintStyle,
  PaintingStyle? indexPathPaintStyle,

}) {
  return LetterPathsModel(
          isSpace: isSpace ?? this.isSpace,

    letterImage: letterImage ?? this.letterImage,
    dottedIndex: dottedIndex ?? this.dottedIndex,
    letterIndex: letterIndex ?? this.letterIndex,
    dottedImage: dottedImage ?? this.dottedImage,
    anchorImage: anchorImage ?? this.anchorImage,
    paths: paths ?? this.paths,
    allStrokePoints: allStrokePoints ?? this.allStrokePoints,
    anchorPos: anchorPos ?? this.anchorPos,
    viewSize: viewSize ?? this.viewSize,
    letterTracingFinished:
        letterTracingFinished ?? this.letterTracingFinished,
    hasFinishedOneStroke: hasFinishedOneStroke ?? this.hasFinishedOneStroke,
    currentStroke: currentStroke ?? this.currentStroke,
    currentStrokeProgress:
        currentStrokeProgress ?? this.currentStrokeProgress,
        dottedPathPaintStyle:  dottedPathPaintStyle ?? this.dottedPathPaintStyle ,
        indexPathPaintStyle: indexPathPaintStyle ?? this.indexPathPaintStyle ,
  );
}