LayoutOffset class

Represents a two-dimensional offset with x and y coordinates.

Used for positioning elements within the layout coordinate system.

Constructors

LayoutOffset.new(double dx, double dy)
Creates an offset with the specified coordinates.
const

Properties

dx double
The x-coordinate (horizontal offset).
final
dy double
The y-coordinate (vertical offset).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 &(LayoutSize size) LayoutRect
Creates a rectangle by combining this offset with a size.
operator ==(Object other) bool
The equality operator.
inherited

Constants

zero → const LayoutOffset
An offset with zero x and y coordinates.