commit | 722d092cadc35b8a3647667778daa2739da71161 | [log] [tgz] |
---|---|---|
author | Keerti Parthasarathy <keertip@users.noreply.github.com> | Mon Feb 06 13:38:38 2017 -0800 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Feb 06 13:38:38 2017 -0800 |
tree | f6e97889d12a44085f6512ca9e176745fa9b77da | |
parent | 21e4eafad0291794f2966edabba40a8de4bf2c41 [diff] |
Fix for STRONG_MODE_INVALID_CAST_FUNCTION_EXPR analyzer error with 1.22.0-dev.10.4 (#21)
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();