parsePayloadAsArrayBuffer static method

Uint8List? parsePayloadAsArrayBuffer(
  1. String dataURL
)

Parses the Data URL to am array buffer.

Implementation

static Uint8List? parsePayloadAsArrayBuffer(String dataURL) {
  var payload = parsePayloadAsBase64(dataURL);
  return payload != null ? base64.decode(payload) : null;
}