isBase32 function

bool isBase32(
  1. String str
)

Returns true if str is a valid Base32-encoded string (RFC 4648).

Expects the standard uppercase alphabet; pass an upper-cased string for lowercase input.

Implementation

bool isBase32(String str) => str.isNotEmpty && base32Reg.hasMatch(str);