isBase64 static method

bool isBase64(
  1. String value
)

Implementation

static bool isBase64(String value) {
  String pattern =
      r'^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$';
  RegExp regExp = RegExp(pattern);
  return regExp.hasMatch(value);
}