commit | 6c58340088ecf03edaa938b92da7a5f7e6553964 | [log] [tgz] |
---|---|---|
author | Keerti Parthasarathy <keertip@users.noreply.github.com> | Wed Feb 08 14:44:08 2017 -0800 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Wed Feb 08 14:44:08 2017 -0800 |
tree | 15ffe6f01234c37b08329cbe177e9457401bfb0e | |
parent | c2f5b40f99822e6ca585964303be4065155210df [diff] |
Fix for analyzer STRONG_MODE_INVALID_CAST_FUNCTION_EXPR error with 1.22.0-dev.10.6 Dart SDK (#26)
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();