listAll method
Obtains all objects in a directory, including files and subdirectories.
Implementation
Future<AGCStorageListResult> listAll() async {
try {
final Map<dynamic, dynamic>? result =
await _methodChannel.invokeMethod<Map<dynamic, dynamic>?>(
'AGCStorageReference#listAll',
<String, dynamic>{
'bucket': storage.bucket,
'policyIndex': storage.policy?.index,
'objectPath': path,
},
);
return AGCStorageListResult._(
storage, Map<String, dynamic>.from(result!));
} catch (e) {
throw AGCStorageException._from(e);
}
}