MarkerIndices class

A simple data class representing a range with start (from) and end (to) indices.

The MarkerIndices class is used to store and manage a pair of integer indices, typically representing a segment or marker range in a dataset. It provides constructors for default and parameterized initialization, as well as getter and setter methods for both indices.

Example usage:

final marker = MarkerIndices.fromData(10, 20);
print(marker.getFrom()); // 10
print(marker.getTo());   // 20
marker.setFrom(15);
marker.setTo(25);

Constructors

MarkerIndices()
MarkerIndices.fromData(int from, int to)

Properties

from int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to int?
getter/setter pair

Methods

getFrom() int
getTo() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFrom(int from) → void
setTo(int to) → void
toString() String
A string representation of this object.
inherited

Operators

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