WindowSizeMsg class
Message sent when the terminal window is resized.
Contains the new dimensions of the terminal in columns (width) and rows (height).
Example
@override
(Model, Cmd?) update(Msg msg) {
return switch (msg) {
WindowSizeMsg(:final width, :final height) =>
(copyWith(termWidth: width, termHeight: height), null),
_ => (this, null),
};
}
Constructors
- WindowSizeMsg(int width, int height)
-
Creates a window size message.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override