operator > method

bool operator >(
  1. dynamic other
)

Dynamically resolves logically accurate greater-than natively.

Implementation

bool operator >(dynamic other) {
  if (!_hasValue) {
    throw StateError('Any is empty!');
  }
  return (_value as dynamic) > (other is Any ? other.get() : other);
}