toBase function
Implementation
String toBase(Iterable<int> input, String alphabet, {int? padding = 61}) {
final bytes = toBaseBytes(input, alphabet.codeUnits.length,
padding: padding != null ? -1 : null);
return bytes
.map((e) =>
String.fromCharCode(e != -1 ? alphabet.codeUnitAt(e) : padding!))
.join();
}