formattedSearchText property

String get formattedSearchText

Implementation

String get formattedSearchText {
  /// Will return a string with no spaces, in lowercase and with no diacritics
  if (isEmpty) {
    return this;
  }

  return removeDiacritics(toLowerCase().replaceAll(" ", ""));
}