LetterPathsModel constructor

LetterPathsModel({
  1. bool isSpace = false,
  2. bool? disableDivededStrokes,
  3. double? strokeIndex,
  4. double? distanceToCheck,
  5. PaintingStyle? indexPathPaintStyle,
  6. PaintingStyle? dottedPathPaintStyle,
  7. double strokeWidth = 55,
  8. Color indexColor = Colors.black,
  9. Color outerPaintColor = Colors.red,
  10. Color innerPaintColor = Colors.blue,
  11. Color dottedColor = Colors.amber,
  12. Path? letterImage,
  13. Path? dottedIndex,
  14. Path? letterIndex,
  15. Image? dottedImage,
  16. Image? anchorImage,
  17. List<Path>? paths,
  18. List<List<Offset>>? allStrokePoints,
  19. Offset? anchorPos,
  20. Size viewSize = const Size(200, 200),
  21. bool letterTracingFinished = false,
  22. bool hasFinishedOneStroke = false,
  23. int currentStroke = 0,
  24. 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 ?? [];