isBase64 method

bool isBase64(
  1. String str
)

Implementation

bool isBase64(String str) {
  try {
    base64.decode(str);
    return true;
  } catch (e) {
    return false;
  }
}