LinePainter constructor

LinePainter({
  1. List<WordLine>? initialLineList,
  2. TextStyle? textStyle = const TextStyle(color: Colors.black, fontSize: 16),
  3. LineDecoration? lineDecoration,
  4. required Offset shakeAnimationValue,
  5. required double scaleAnimationValue,
  6. required double popAnimationValue,
  7. required List<List<String>> letters,
  8. required List<WordLine> lineList,
  9. required Offset spacing,
  10. required List<String> hints,
  11. Offset? revealLetterPositions,
  12. bool onTouchRotateLetter = true,
  13. Color? correctColor = Colors.green,
  14. Offset? currentOffset,
  15. LetterPopDecoration letterPopDecoration = const LetterPopDecoration(),
})

Implementation

LinePainter(
    {this.initialLineList,
    this.textStyle = const TextStyle(color: Colors.black, fontSize: 16),
    this.lineDecoration,
    required this.shakeAnimationValue,
    required this.scaleAnimationValue,
    required this.popAnimationValue,
    required this.letters,
    required this.lineList,
    required this.spacing,
    required this.hints,
    this.revealLetterPositions,
    this.onTouchRotateLetter = true,
    this.correctColor = Colors.green,
    this.currentOffset,
    this.letterPopDecoration = const LetterPopDecoration()});