Skip to content

Commit a63ce08

Browse files
committed
Add dart language deets
1 parent d9a4a6d commit a63ce08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flutter_cache_manager/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ The more basic usage is explained here. See the complete docs for more info.
2121
The cache manager can be used to get a file on various ways
2222
The 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`.
4343
If you use the ImageCacheManager mixin on the CacheManager (which is already done on the DefaultCacheManager) you
4444
get the following `getImageFile` method for free:
4545

46-
```
46+
```dart
4747
Stream<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
6666
Below is an example with other settings for the maximum age of files, maximum number of objects
6767
and a custom FileService. The key parameter in the constructor is mandatory, all other variables are optional.
6868

69-
```
69+
```dart
7070
class CustomCacheManager {
7171
static const key = 'customCacheKey';
7272
static CacheManager instance = CacheManager(

0 commit comments

Comments
 (0)