compareTo method Null safety

  1. @override
int compareTo(
  1. DateTime other

Compares this TZDateTime object to other, returning zero if the values occur at the same moment.

This function returns a negative integer if this TZDateTime is smaller (earlier) than other, or a positive integer if it is greater (later).


int compareTo(DateTime other) => _native.compareTo(_toNative(other));