compareToNormalized method

int compareToNormalized(
  1. String to
)

Implementation

int compareToNormalized(String to) {
  /// Returns the comparison between two normalized [String].
  /// It receives a [String] as a parameter.
  /// It returns an [int] with the comparison between the two normalized [String].
  /// If the [String] is null, it returns an empty [String].
  return normalized().compareTo(to.normalized());
}