isUnique property
Checks whether the String
is consisted of only unique characters.
Implementation
bool get isUnique {
if (isBlank) {
return true;
}
final word = this;
final wordSplit = word.toUpperCase().split('').toSet();
return word.length == wordSplit.length;
}