Viewport constructor
Viewport({
- required String content,
- int? width,
- int? height,
- int gutter = 0,
- bool softWrap = false,
- bool fillHeight = false,
- bool showLineNumbers = false,
- bool mouseWheelEnabled = true,
- int mouseWheelDelta = 3,
- int horizontalStep = 6,
- ViewportKeyMap? keyMap,
- Style? style,
- ViewportController? controller,
- bool showScrollbar = false,
- String scrollbarSeparator = ' ',
- ScrollbarChars scrollbarChars = const ScrollbarChars(),
- bool enableSelection = false,
- bool handleKeys = true,
- String? zoneId,
- Key? key,
Creates a viewport widget.
Implementation
Viewport({
required this.content,
this.width,
this.height,
this.gutter = 0,
this.softWrap = false,
this.fillHeight = false,
this.showLineNumbers = false,
this.mouseWheelEnabled = true,
this.mouseWheelDelta = 3,
this.horizontalStep = 6,
this.keyMap,
this.style,
this.controller,
this.showScrollbar = false,
this.scrollbarSeparator = ' ',
this.scrollbarChars = const ScrollbarChars(),
this.enableSelection = false,
this.handleKeys = true,
this.zoneId,
super.key,
});