compare method

int compare(
  1. TimeOfDay other
)

Implementation

int compare(TimeOfDay other) {
  return this.inMinutes() - other.inMinutes();
}