Window constructor
Window({
- required String title,
- required int width,
- required int height,
- required Widget child,
- List<
String> ? borderChars, - Style borderStyle = Style.empty,
- Style titleStyle = Style.empty,
- Style backgroundStyle = Style.empty,
- FocusNode? focusNode,
- bool showCloseButton = false,
- void onMouseEvent(
- MouseEvent event,
- int localX,
- int localY
- void onKeyEvent(
- KeyEvent event
- void onPan()?,
- void onResize()?,
Creates a Window with the specified parameters.
Implementation
Window({
required this.title,
required this.width,
required this.height,
required this.child,
List<String>? borderChars,
this.borderStyle = Style.empty,
this.titleStyle = Style.empty,
this.backgroundStyle = Style.empty,
FocusNode? focusNode,
this.showCloseButton = false,
this.onMouseEvent,
this.onKeyEvent,
this.onPan,
this.onResize,
}) : borderChars =
borderChars ?? ['┌', '─', '┐', '│', ' ', '│', '└', '─', '┘'],
focusNode = focusNode ?? FocusNode(id: title);