getDocumentContent function

Future<Uint8List?> getDocumentContent(
  1. Uri uri
)

Get content of a given document uri.

Equivalent to contentDescriptor usage.

Refer to details.

Implementation

Future<Uint8List?> getDocumentContent(Uri uri) async =>
    kDocumentFileChannel.invokeMethod<Uint8List>(
      'getDocumentContent',
      <String, String>{'uri': '$uri'},
    );