operator > method Null safety

bool? operator >(
  1. num other
)

Relational greater than operator.

Implementation

bool? operator >(num other) {
  if (value != null) {
    return value! > other;
  }
}