FetchData.fromBytes constructor

FetchData.fromBytes(
  1. List<int> bytes, {
  2. String mimeType = 'application/octet-stream',
})

Use the passed bytes as the source of the FetchData.

The mimeType defaults to application/octet-stream

Implementation

FetchData.fromBytes(List<int> bytes,
    {String mimeType = 'application/octet-stream'})
    : _bytes = bytes,
      _type = _FetchDataType.bytes,
      _mimeType = mimeType;