Viewport constructor

Viewport({
  1. required String content,
  2. int? width,
  3. int? height,
  4. int gutter = 0,
  5. bool softWrap = false,
  6. bool fillHeight = false,
  7. bool showLineNumbers = false,
  8. bool mouseWheelEnabled = true,
  9. int mouseWheelDelta = 3,
  10. int horizontalStep = 6,
  11. ViewportKeyMap? keyMap,
  12. Style? style,
  13. ViewportController? controller,
  14. bool showScrollbar = false,
  15. String scrollbarSeparator = ' ',
  16. ScrollbarChars scrollbarChars = const ScrollbarChars(),
  17. bool enableSelection = false,
  18. bool handleKeys = true,
  19. String? zoneId,
  20. 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,
});