operator >= method
Whether this language version is greater than or equal to other
.
If either version being compared is an InvalidLanguageVersion, a StateError is thrown. Verify versions are valid before comparing them.
For details on how valid language versions are compared, check out LanguageVersion.compareTo.
Implementation
bool operator >=(LanguageVersion other) {
// Throw an error if comparing as or with an invalid language version.
if (this is InvalidLanguageVersion) {
_throwThisInvalid();
} else if (other is InvalidLanguageVersion) {
_throwOtherInvalid();
}
return compareTo(other) >= 0;
}