TextModel.withOptions constructor
TextModel.withOptions({
- int width = 80,
- int? height = 24,
- int gutter = 0,
- int yOffset = 0,
- int xOffset = 0,
- bool mouseWheelEnabled = true,
- int mouseWheelDelta = 3,
- int horizontalStep = 0,
- bool softWrap = true,
- bool fillHeight = false,
- bool showLineNumbers = false,
- GutterFunc? leftGutterFunc,
- Style? style,
- Style? highlightStyle,
- Style? selectedHighlightStyle,
- Style styleLineFunc(
- int lineIndex
- List<
HighlightInfo> ? highlights = const [], - int currentHighlightIndex = -1,
- (int, int)? selectionStart,
- (int, int)? selectionEnd,
- DateTime? lastClickTime,
- (int, int)? lastClickPos,
- ViewportKeyMap? keyMap,
- List<
String> ? lines, - List<
String> ? wrappedLines, - List<
String> ? originalLines, - 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 [],
});