listFolder method
Lists the contents of a folder (files and subfolders).
Implementation
@override
Future<List<FileSystemEntityInfo>> listFolder(String path) async {
final List entities = await methodChannel.invokeMethod('listFolder', {
'path': path,
});
return entities
.map((e) => FileSystemEntityInfo.fromMap(Map<String, dynamic>.from(e)))
.toList();
}