toMinMaxString method

String toMinMaxString()

=minVersion <maxVersion

Implementation

String toMinMaxString() {
  var sb = StringBuffer();
  if (min != null) {
    if (_isSingle()) {
      return _toSingleString();
    }
    sb.write('>');
    if (min!.include) {
      sb.write('=');
    }
    sb.write(min!.value);
  }
  if (max != null) {
    if (sb.isNotEmpty) {
      sb.write(' ');
    }
    sb.write('<');
    if (max!.include) {
      sb.write('=');
    }
    sb.write(max!.value);
  }
  return sb.toString();
}