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