LetterPathsModel constructor

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

Implementation

LetterPathsModel({
  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 ?? [];