TerminalView constructor
const
TerminalView(
- Terminal terminal, {
- Key? key,
- TerminalController? controller,
- TerminalTheme theme = TerminalThemes.defaultTheme,
- TerminalStyle textStyle = const TerminalStyle(),
- TextScaler? textScaler,
- EdgeInsets? padding,
- ScrollController? scrollController,
- bool autoResize = true,
- double backgroundOpacity = 1,
- FocusNode? focusNode,
- bool autofocus = false,
- void onTapUp()?,
- void onSecondaryTapDown()?,
- void onSecondaryTapUp()?,
- MouseCursor mouseCursor = SystemMouseCursors.text,
- TextInputType keyboardType = TextInputType.emailAddress,
- Brightness keyboardAppearance = Brightness.dark,
- TerminalCursorType cursorType = TerminalCursorType.block,
- bool alwaysShowCursor = false,
- bool deleteDetection = false,
- Map<
ShortcutActivator, Intent> ? shortcuts, - FocusOnKeyEventCallback? onKeyEvent,
- bool readOnly = false,
- bool hardwareKeyboardOnly = false,
- 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,
});