strings 3.2.0
strings: ^3.2.0 copied to clipboard
Large collection of String functions aimed at extending the String class whilst providing safer methods for working with nullable Strings.
Examples #
See the Strings manual for a full list of examples.
// Passing a null to any function is safe
Strings.right(null, 4, pad: Pad.left);
-> ' '
// pass a short string and we can pad it (or not).
Strings.right('one', 4, pad: Pad.left);
-> ' one'