operator > method

bool operator >(
  1. Distance other
)

Returns true if the value of this Distance is greater than the value of other.

Implementation

bool operator >(Distance other) => _distance > other._distance;