abbreviate property

String get abbreviate

Returns abbreviation of the words in string.

"Laughing out loud".abbreviate; //LOL

Implementation

String get abbreviate => !isBlanksOnly
    ? trim().split(" ").map((e) => e.characters.first.toUpperCase()).join()
    : "";