operator < method
Checks if the length!
of the String
is less than the length of s
.
If the String
is null or empty, it returns false.
Example
String foo = 'Hello';
bool isLess = foo < 'Hi'; // returns false.
Implementation
bool operator <(String s) {
if (this.isBlank) {
return false;
}
return this.length < s.length;
}