commit | 99baf3698ac28904b53fe8cb57c8dc8b50589a2b | [log] [tgz] |
---|---|---|
author | Sam Rawlins <sam.rawlins@gmail.com> | Thu Jan 11 09:37:40 2018 -0800 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Jan 11 09:37:40 2018 -0800 |
tree | 18e703019a4caf0085bb3e055f470663e7eb4fc4 | |
parent | 89345e9870457a976a8e94a041714e69d487fe5c [diff] |
Fix uses_dynamic_as_bottom error (#63)
A generic file system abstraction for Dart.
Like dart:io
, package:file
supplies a rich Dart-idiomatic API for accessing a file system.
Unlike dart:io
, package:file
:
Implement your own custom file system:
import 'package:file/file.dart'; class FooBarFileSystem implements FileSystem { ... }
Use the in-memory file system:
import 'package:file/memory.dart'; var fs = new MemoryFileSystem();
Use the local file system (requires dart:io access):
import 'package:file/local.dart'; var fs = const LocalFileSystem();