LayoutSize class

Represents a two-dimensional size with width and height.

This class is used throughout the layout system to represent the dimensions of elements and containers.

Constructors

LayoutSize(double width, double height)
Creates a size with the specified width and height.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
height → double
The height component of this size.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double
The width component of this size.
final

Methods

copyWith({double? width, double? height}) → LayoutSize
Creates a copy of this size with optionally different width or height.
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

Constants

zero → const LayoutSize
A size with zero width and height.