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.
Constructors
- RangeToInclusive(int end)
-
const
Properties
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