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