addImage method

int addImage(
  1. Uint8List bytes, {
  2. String mimeType = 'image/png',
})

Adds an embedded image of mimeType.

Implementation

int addImage(Uint8List bytes, {String mimeType = 'image/png'}) =>
    _add('images', {'bufferView': _view(bytes), 'mimeType': mimeType});