compareTo method

int? compareTo(
  1. String other
)

Implementation

int? compareTo(String other) => value?.compareTo(other);