menu
sherlock package
documentation
types/range.dart
Range class
Range class
dark_mode
light_mode
Range
class
A simple structure for ranges. Convertible to
List
.
Constructors
Range
({
required
int
start
,
required
int
end
})
Creates a new
Range
between
start
and
end
.
Properties
end
→
int
final
hashCode
→
int
The hash code for this object.
no setter
inherited
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
start
→
int
final
Methods
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toList
(
)
→
List
<
int
>
Transforms the
Range
object into a
List
of two elements (
start
and
end
).
toString
(
)
→
String
A string representation of this object.
override
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
sherlock package
documentation
types/range
Range class
range library