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