RangeToInclusive class

A range only bounded inclusively above (..=end). The RangeToInclusive ..=end contains all values with x <= end. It cannot serve as an Iterable because it doesn’t have a starting point.

Inheritance

Constructors

RangeToInclusive(int end)
const

Properties

end int
finalinherited
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.
inherited
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.
inherited
toString() String
A string representation of this object.
inherited

Operators

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