documentLength function
Equivalent to DocumentFile.length
.
Returns the size of a given document uri
in bytes.
Implementation
Future<int?> documentLength(Uri uri) async => kDocumentFileChannel
.invokeMethod<int>('length', <String, String>{'uri': '$uri'});