compareTo abstract method

int compareTo(
  1. dynamic other
)

Compara dos valores del mismo tipo Retorna: -1 si this < other 0 si this == other 1 si this > other

Implementation

int compareTo(other);