compareTo method

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

Compares this to other.

If other is also an Target, consistent with sorting on toString.

Implementation

@override
int compareTo(Target other) => toString().compareTo(other.toString());