File tree 2 files changed +5
-110
lines changed
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.
21
21
The cache manager can be used to get a file on various ways
22
22
The easiest way to get a single file is call ` .getSingleFile ` .
23
23
24
- ```
25
- var file = await DefaultCacheManager().getSingleFile(url);
24
+ ``` dart
25
+ var file = await DefaultCacheManager().getSingleFile(url);
26
26
```
27
27
` getFileStream(url) ` returns a stream with the first result being the cached file and later optionally the downloaded file.
28
28
@@ -43,7 +43,7 @@ The easiest way to get a single file is call `.getSingleFile`.
43
43
If you use the ImageCacheManager mixin on the CacheManager (which is already done on the DefaultCacheManager) you
44
44
get the following ` getImageFile ` method for free:
45
45
46
- ```
46
+ ``` dart
47
47
Stream<FileResponse> getImageFile(String url, {
48
48
String key,
49
49
Map<String, String> headers,
@@ -66,7 +66,7 @@ The cache manager is customizable by creating a new CacheManager. It is very imp
66
66
Below is an example with other settings for the maximum age of files, maximum number of objects
67
67
and a custom FileService. The key parameter in the constructor is mandatory, all other variables are optional.
68
68
69
- ```
69
+ ``` dart
70
70
class CustomCacheManager {
71
71
static const key = 'customCacheKey';
72
72
static CacheManager instance = CacheManager(
You can’t perform that action at this time.
0 commit comments