asDataURLString method

String asDataURLString()

Returns a Data URL string.

Example: data:text/plain;base64,SGVsbG8= that encodes Hello with MIME-Type text/plain.

Implementation

String asDataURLString() =>
    _dataURLString ??= 'data:$mimeTypeAsString;base64,$payloadBase64';