isBase64 static method
Implementation
static bool isBase64(String input, {bool validatePadding = true}) {
final hasMatch = _base64Regex.hasMatch(input);
if (hasMatch) {
if (validatePadding) return input.length % 4 == 0;
return true;
}
return false;
}