isBase64 static method

bool isBase64(
  1. String source
)

True when source looks like base64 image data (with or without a data: prefix).

Implementation

static bool isBase64(String source) => tryParse(source) != null;