AssetsCache class
A class that loads, and cache files
it automatically looks for files on the assets folder
Constructors
- AssetsCache({String prefix = 'assets/'})
Properties
Methods
-
clear(
String file) → void - Removes the file from the cache
-
clearCache(
) → void - Removes all the files from the cache
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readBinaryFile(
String fileName) → Future< List< int> > - Reads a binary file from assets folder
-
readFile(
String fileName) → Future< String> - Reads a file from assets folder
-
readJson(
String fileName) → Future< Map< String, dynamic> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited