isGreater function

bool isGreater(
  1. dynamic value,
  2. 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;
}