void _getImages() {
List<String> images = new List<String>();
//var u=path.fromUri("web/images");
//print(u);
var f = new Directory("web/images");
f.list(recursive: false, followLinks: false)
.listen((FileSystemEntity entity) {
images.add(entity.path);
});
_createSlideElements(images);
}
https://api.dartlang.org/apidocs/channels/be/dartdoc-viewer/dart:io
"The I/O library is used for Dart server applications, which run on a stand-alone Dart VM from the command line. This library does not work in browser-based applications."