operator > method

bool operator >(
  1. Object other
)

Returns true if this version is strictly greater than other.

other may be a ComparableVersion or a parseable version String.

Implementation

bool operator >(Object other) {
  if (other is ComparableVersion) {
    return compareTo(other) > 0;
  }
  return compareTo(ComparableVersion(other.toString())) > 0;
}