File tree Expand file tree Collapse file tree 2 files changed +5
-110
lines changed Expand file tree Collapse file tree 2 files changed +5
-110
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ flutter_cache_manager/README.md
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ The more basic usage is explained here. See the complete docs for more info.
2121The cache manager can be used to get a file on various ways
2222The easiest way to get a single file is call ` .getSingleFile ` .
2323
24- ```
25- var file = await DefaultCacheManager().getSingleFile(url);
24+ ``` dart
25+ var file = await DefaultCacheManager().getSingleFile(url);
2626```
2727` getFileStream(url) ` returns a stream with the first result being the cached file and later optionally the downloaded file.
2828
@@ -43,7 +43,7 @@ The easiest way to get a single file is call `.getSingleFile`.
4343If you use the ImageCacheManager mixin on the CacheManager (which is already done on the DefaultCacheManager) you
4444get the following ` getImageFile ` method for free:
4545
46- ```
46+ ``` dart
4747Stream<FileResponse> getImageFile(String url, {
4848 String key,
4949 Map<String, String> headers,
@@ -66,7 +66,7 @@ The cache manager is customizable by creating a new CacheManager. It is very imp
6666Below is an example with other settings for the maximum age of files, maximum number of objects
6767and a custom FileService. The key parameter in the constructor is mandatory, all other variables are optional.
6868
69- ```
69+ ``` dart
7070class CustomCacheManager {
7171 static const key = 'customCacheKey';
7272 static CacheManager instance = CacheManager(
You can’t perform that action at this time.
0 commit comments