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
starttoend.const
Properties
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