toDataURLBase64 function

String toDataURLBase64(
  1. String? mediaType,
  2. String base64
)

Builds a DATA URL string.

Implementation

String toDataURLBase64(String? mediaType, String base64) {
  return 'data:$mediaType;base64,$base64';
}