copyWith method
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,
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,
);
}