copyWith method
LetterPathsModel
copyWith({
- bool? isSpace,
- Path? letterImage,
- Path? dottedIndex,
- Path? letterIndex,
- Image? traceImage,
- Image? dottedImage,
- Image? anchorImage,
- List<
Path> ? paths, - List<
List< ? allStrokePoints,Offset> > - Offset? anchorPos,
- Size? viewSize,
- bool? letterTracingFinished,
- bool? hasFinishedOneStroke,
- int? currentStroke,
- int? currentStrokeProgress,
- bool? isLoaded,
- PaintingStyle? dottedPathPaintStyle,
- 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 ,
);
}