LetterPathsModel constructor
LetterPathsModel({
- bool isSpace = false,
- bool? disableDivededStrokes,
- double? strokeIndex,
- double? distanceToCheck,
- PaintingStyle? indexPathPaintStyle,
- PaintingStyle? dottedPathPaintStyle,
- double strokeWidth = 55,
- Color indexColor = Colors.black,
- Color outerPaintColor = Colors.red,
- Color innerPaintColor = Colors.blue,
- Color dottedColor = Colors.amber,
- Path? letterImage,
- Path? dottedIndex,
- Path? letterIndex,
- Image? dottedImage,
- Image? anchorImage,
- List<
Path> ? paths, - List<
List< ? allStrokePoints,Offset> > - Offset? anchorPos,
- Size viewSize = const Size(200, 200),
- bool letterTracingFinished = false,
- bool hasFinishedOneStroke = false,
- int currentStroke = 0,
- int currentStrokeProgress = -1,
Implementation
LetterPathsModel({
this.isSpace=false,
this.disableDivededStrokes,
this.strokeIndex,
this.distanceToCheck,
this.indexPathPaintStyle,
this.dottedPathPaintStyle,
this.strokeWidth=55,
this.indexColor = Colors.black,
this.outerPaintColor = Colors.red,
this.innerPaintColor = Colors.blue,
this.dottedColor = Colors.amber,
this.letterImage,
this.dottedIndex,
this.letterIndex,
this.dottedImage,
this.anchorImage,
List<ui.Path>? paths,
List<List<Offset>>? allStrokePoints,
this.anchorPos,
this.viewSize = const Size(200, 200),
this.letterTracingFinished = false,
this.hasFinishedOneStroke = false,
this.currentStroke = 0,
this.currentStrokeProgress = -1,
}) : paths = paths ?? [],
currentDrawingPath = ui.Path(),
allStrokePoints = allStrokePoints ?? [];