operator < method
Relational less than operator.
Implementation
bool operator <(Object other) {
if (other is SqlMoney) {
return value < other.value;
} else if (other is num) {
return value < SqlMoney(other).value;
} else if (other is String) {
return value < SqlMoney(other.toString()).value;
}
throw ArgumentError(other.toString() + 'is not a number');
}