operator < method

bool operator <(
  1. String s
)

Checks if the length! of the String is less than the length of s.

Example

String foo = 'Hello';
bool isLess = foo < 'Hi'; // returns false.

Implementation

bool operator <(String s) => length < s.length;