listContents method
Implementation
@override
Future<List<NsFileCoordinatorEntity>> listContents(String url,
{bool? recursive, bool? filesOnly, bool scoped = true}) async {
var entityMaps = await methodChannel
.invokeListMethod<Map<dynamic, dynamic>>('listContents', {
'url': url.toString(),
'recursive': recursive,
'filesOnly': filesOnly,
'scoped': scoped
});
if (entityMaps == null) {
return [];
}
return entityMaps.map((e) => NsFileCoordinatorEntity.fromJson(e)).toList();
}