Size class Core

Represents the width and height dimensions of a rectangular area.

The Size class is used to describe the dimensions of components, containers, and layout regions within the terminal UI framework.

Both width and height are mutable to allow dynamic resizing.

Constructors

Size.new({required int width, required int height})
Creates a Size with the given width and height.

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
The vertical extent.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
The horizontal extent.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

infite Size
A large fixed size representing effectively infinite dimensions.
getter/setter pair