cutAndAlign function
Cuts the String and, if lesser then required, aligns it padding the exceeding chars to the right or to the left with the character selected.
Implementation
String cutAndAlign(String string, int newLength,
{String? paddingChar, bool? leftAlign}) =>
string.cutAndAlign(newLength,
paddingChar: paddingChar, leftAlign: leftAlign);