tryFromBase32 function
Converts a Base-32 string to an 8-bit integer sequence, returning null
instead of throwing when the input is not valid.
This is the non-throwing counterpart of fromBase32. See fromBase32 for
the meaning of codec and padding.
Implementation
Uint8List? tryFromBase32(
String input, {
Base32Codec? codec,
bool padding = true,
}) {
try {
return fromBase32(input, codec: codec, padding: padding);
} on FormatException {
return null;
}
}