operator > method
- String s
Checks if the length! of the String
is more than the length of s
.
If the String
is null or empty, it returns false.
Example
String foo = 'Hello';
bool isMore = foo > 'Hi'; // returns true.
Implementation
bool operator >(String s) {
return length > s.length;
}