ClosedRange class

The ClosedRange class represents a closed range of integers, defined by a starting point and an ending point. The start and end properties represent the bounds of the range.

Constructors

ClosedRange(int start, int end)
Constructor for creating a ClosedRange object
const

Properties

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

Methods

contains(int point) bool
Checks if the range contains the given point
isAfterOrAt(int point) bool
Checks if the given point is after or at the range
isBeforeOrAt(int point) bool
Checks if the given point is before or at the range
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overlapsWith(ClosedRange other) bool
Checks if the this range is within the boundaries of the another range
toString() String
A string representation of this object.
inherited

Operators

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