RangeTo class

A range only bounded exclusively above (..end). The RangeTo ..end contains all values with x < end. It cannot be used as an Iterable because it doesn’t have a starting point.

Implemented types

Constructors

RangeTo(int end)
const

Properties

end int
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

contains(int val) bool
Returns true if val is contained in this range.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
slice<T>(List<T> list) Slice<T>
Creates a slice from list based on this range.
override
toString() String
A string representation of this object.
inherited

Operators

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