TextModel.withOptions constructor

TextModel.withOptions({
  1. int width = 80,
  2. int? height = 24,
  3. int gutter = 0,
  4. int yOffset = 0,
  5. int xOffset = 0,
  6. bool mouseWheelEnabled = true,
  7. int mouseWheelDelta = 3,
  8. int horizontalStep = 0,
  9. bool softWrap = true,
  10. bool fillHeight = false,
  11. bool showLineNumbers = false,
  12. GutterFunc? leftGutterFunc,
  13. Style? style,
  14. Style? highlightStyle,
  15. Style? selectedHighlightStyle,
  16. Style styleLineFunc(
    1. int lineIndex
    )?,
  17. List<HighlightInfo>? highlights = const [],
  18. int currentHighlightIndex = -1,
  19. (int, int)? selectionStart,
  20. (int, int)? selectionEnd,
  21. DateTime? lastClickTime,
  22. (int, int)? lastClickPos,
  23. ViewportKeyMap? keyMap,
  24. List<String>? lines,
  25. List<String>? wrappedLines,
  26. List<String>? originalLines,
  27. List<StyleRange> styleRanges = const [],
})

Implementation

TextModel.withOptions({
  super.width = 80,
  super.height,
  super.gutter = 0,
  super.yOffset = 0,
  super.xOffset = 0,
  super.mouseWheelEnabled = true,
  super.mouseWheelDelta = 3,
  super.horizontalStep = 0,
  super.softWrap = true,
  super.fillHeight = false,
  super.showLineNumbers = false,
  super.leftGutterFunc,
  super.style,
  super.highlightStyle,
  super.selectedHighlightStyle,
  super.styleLineFunc,
  super.highlights = const [],
  super.currentHighlightIndex = -1,
  super.selectionStart,
  super.selectionEnd,
  super.lastClickTime,
  super.lastClickPos,
  super.keyMap,
  super.lines,
  super.wrappedLines,
  super.originalLines,
  this.styleRanges = const [],
});