getInitialsFromName static method
Alias for getInitials.
Returns the initials of a given name.
name is the full name
maxLength is the maximum length of the initials. Defaults to 4.
The method will return the first letter of each word (ignoring non-alphabetic
words) up to a maximum of maxLength characters. If the initials length is
greater than maxLength, the method will return the first maxLength characters.
Implementation
static String getInitialsFromName(String name, {int maxLength = 4}) {
return getInitials(name, maxLength: maxLength);
}