MiniMapPainter constructor

MiniMapPainter({
  1. required Color bgColor,
  2. required CodeForgeController controller,
  3. required ScrollController scrollCtrl,
  4. required bool lineWrap,
  5. required SyntaxHighlighter highlighter,
  6. String? fontFamily,
  7. double fontSize = 1,
  8. TextDirection textDirection = .ltr,
  9. double lineHeight = 1,
  10. Color selectionColor = const Color(0x6E2195F3),
  11. required Listenable selectionRepaint,
  12. required Listenable diagnosticsRepaint,
})

Implementation

MiniMapPainter({
  required this.bgColor,
  required this.controller,
  required this.scrollCtrl,
  required this.lineWrap,
  required this.highlighter,
  this.fontFamily,
  this.fontSize = 1,
  this.textDirection = .ltr,
  this.lineHeight = 1,
  this.selectionColor = const Color(0x6E2195F3),
  required this.selectionRepaint,
  required this.diagnosticsRepaint,
}) : super(
       repaint: Listenable.merge([
         scrollCtrl,
         selectionRepaint,
         diagnosticsRepaint,
       ]),
     );