TerminalView constructor

const TerminalView(
  1. Terminal terminal, {
  2. Key? key,
  3. TerminalController? controller,
  4. TerminalTheme theme = TerminalThemes.defaultTheme,
  5. TerminalStyle textStyle = const TerminalStyle(),
  6. TextScaler? textScaler,
  7. EdgeInsets? padding,
  8. ScrollController? scrollController,
  9. bool autoResize = true,
  10. double backgroundOpacity = 1,
  11. FocusNode? focusNode,
  12. bool autofocus = false,
  13. void onTapUp(
    1. TapUpDetails,
    2. CellOffset
    )?,
  14. void onHover(
    1. PointerHoverEvent,
    2. CellOffset
    )?,
  15. void onExit(
    1. PointerExitEvent
    )?,
  16. void onHyperlinkTap(
    1. String uri
    )?,
  17. void onSecondaryTapDown(
    1. TapDownDetails,
    2. CellOffset
    )?,
  18. void onSecondaryTapUp(
    1. TapUpDetails,
    2. CellOffset
    )?,
  19. MouseCursor mouseCursor = SystemMouseCursors.text,
  20. TextInputType keyboardType = TextInputType.emailAddress,
  21. Brightness keyboardAppearance = Brightness.dark,
  22. TerminalCursorType cursorType = TerminalCursorType.block,
  23. bool alwaysShowCursor = false,
  24. bool deleteDetection = false,
  25. Map<ShortcutActivator, Intent>? shortcuts,
  26. FocusOnKeyEventCallback? onKeyEvent,
  27. bool readOnly = false,
  28. bool hardwareKeyboardOnly = false,
  29. bool simulateScroll = true,
})

Implementation

const TerminalView(
  this.terminal, {
  super.key,
  this.controller,
  this.theme = TerminalThemes.defaultTheme,
  this.textStyle = const TerminalStyle(),
  this.textScaler,
  this.padding,
  this.scrollController,
  this.autoResize = true,
  this.backgroundOpacity = 1,
  this.focusNode,
  this.autofocus = false,
  this.onTapUp,
  this.onHover,
  this.onExit,
  this.onHyperlinkTap,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.mouseCursor = SystemMouseCursors.text,
  this.keyboardType = TextInputType.emailAddress,
  this.keyboardAppearance = Brightness.dark,
  this.cursorType = TerminalCursorType.block,
  this.alwaysShowCursor = false,
  this.deleteDetection = false,
  this.shortcuts,
  this.onKeyEvent,
  this.readOnly = false,
  this.hardwareKeyboardOnly = false,
  this.simulateScroll = true,
});