operator < method
Comparison operators for numeric values
Implementation
@override
bool operator <(Object other) {
bool compare(V v) {
if (v is num) {
return (value as num) < v;
}
return false;
}
if (value != null) {
if (other is CollectiveValue<V> && other.value != null) {
return compare(other.value as V);
} else if (V == dynamic || other is V) {
return compare(other as V);
}
}
return false;
}