operator >= method

bool operator >=(
  1. String s
)

Checks if the length! of the String is more or equal than the length of s.

If the String is null or empty, it returns false.

Example

String foo = 'Hello';
bool isMoreOrEqual = foo >= 'Hi'; // returns true.

Implementation

bool operator >=(String s) {
  if (this.isBlank) {
    return false;
  }
  return this!.length >= s.length;
}