LayoutRange class

Represents a one-dimensional range with start and end points.

Used for representing ranges along a single axis in layout calculations. Supports operations like overlap detection, containment checks, and expansion.

Constructors

LayoutRange(double start, double end)
Creates a layout range from start to end.
const

Properties

end double
The end point of the range.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start double
The start point of the range.
final

Methods

contains(double value) bool
Returns true if this range contains the given value.
containsRange(LayoutRange other) bool
Returns true if this range completely contains other.
expandToInclude(LayoutRange other) LayoutRange
Creates a new range that encompasses both this range and other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overlaps(LayoutRange other) bool
Returns true if this range overlaps with other.
toString() String
A string representation of this object.
override

Operators

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