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 onSecondaryTapDown(
    1. TapDownDetails,
    2. CellOffset
    )?,
  15. void onSecondaryTapUp(
    1. TapUpDetails,
    2. CellOffset
    )?,
  16. MouseCursor mouseCursor = SystemMouseCursors.text,
  17. TextInputType keyboardType = TextInputType.emailAddress,
  18. Brightness keyboardAppearance = Brightness.dark,
  19. TerminalCursorType cursorType = TerminalCursorType.block,
  20. bool alwaysShowCursor = false,
  21. bool deleteDetection = false,
  22. Map<ShortcutActivator, Intent>? shortcuts,
  23. FocusOnKeyEventCallback? onKeyEvent,
  24. bool readOnly = false,
  25. bool hardwareKeyboardOnly = false,
  26. 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.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,
});