compareTo method

  1. @override
int compareTo(
  1. LogCursor other
)
override

By time first (as an instant, regardless of time zone), then by id.

Implementation

@override
int compareTo(LogCursor other) {
  final byTime = time.compareTo(other.time);
  return byTime != 0 ? byTime : id.compareTo(other.id);
}