operator <= method

bool operator <=(
  1. Offset other
)

Implements the operator <= (less than or equal).

  • this: The left hand side of the operator.
  • other: The right hand side of the operator.

Returns: true if the left value is less than or equal to the right value, otherwise false.

Implementation

bool operator <=(Offset other) => compareTo(other) <= 0;