compareTo method

num compareTo(
  1. Position other
)

Compare this to other.

@param other A position. @returns A number smaller than zero if this position is before the given position, a number greater than zero if this position is after the given position, or zero when this and the given position are equal.

Implementation

_i2.num compareTo(_i3.Position other) => _i5.callMethod(
      this,
      'compareTo',
      [other],
    );