operator <= method

bool operator <=(
  1. Object other
)

Returns true if this version is less than or equal to 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;
}