compareTo method

int compareTo(
  1. StreamPosition other
)

Compare this to other StreamPosition

Implementation

int compareTo(StreamPosition other) => this == other
    ? 0
    : this > other
        ? 1
        : -1;