isBase64 static method

bool isBase64(
  1. String text
)

Implementation

static bool isBase64(String text) {
  try {
    var decoded = base64Decode(text);
    return true;
  } catch (_) {
    return false;
  }
}