isLess function Null safety
- dynamic value,
- dynamic other
Checks if value is less than other.
Implementation
bool isLess(dynamic value, dynamic other) {
if (value is num && other is num) {
return value < other;
}
return value.compareTo(other) < 0;
}