documentLength function

Future<int?> documentLength(
  1. Uri uri
)

Equivalent to DocumentFile.length.

Returns the size of a given document uri in bytes.

Refer to details.

Implementation

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