TuiRendererOptions constructor
const
TuiRendererOptions({
- int fps = 60,
- bool altScreen = true,
- bool hideCursor = true,
- bool ansiCompress = false,
- ScreenMode screenMode = ScreenMode.fullScreen,
- int inlineHeight = 4,
- UiAnchor uiAnchor = UiAnchor.bottom,
- FixedViewport? fixedViewport,
Creates renderer options.
All parameters have sensible defaults for fullscreen rendering.
Implementation
const TuiRendererOptions({
this.fps = 60,
this.altScreen = true,
this.hideCursor = true,
this.ansiCompress = false,
this.screenMode = ScreenMode.fullScreen,
this.inlineHeight = 4,
this.uiAnchor = UiAnchor.bottom,
this.fixedViewport,
}) : assert(
screenMode != ScreenMode.fixed || fixedViewport != null,
'fixedViewport is required when screenMode is ScreenMode.fixed',
);