Showing
2 changed files
with
2 additions
and
1 deletions
@@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
10 | - Update pdfium library to 4627 | 10 | - Update pdfium library to 4627 |
11 | - Apply Flutter 2.5 coding style | 11 | - Apply Flutter 2.5 coding style |
12 | - Add WidgetWraper.fromWidget() | 12 | - Add WidgetWraper.fromWidget() |
13 | +- Allow overriding defaultCache | ||
13 | 14 | ||
14 | ## 5.5.0 | 15 | ## 5.5.0 |
15 | 16 |
@@ -26,7 +26,7 @@ abstract class PdfBaseCache { | @@ -26,7 +26,7 @@ abstract class PdfBaseCache { | ||
26 | const PdfBaseCache(); | 26 | const PdfBaseCache(); |
27 | 27 | ||
28 | /// The default cache used when none specified | 28 | /// The default cache used when none specified |
29 | - static final defaultCache = PdfMemoryCache(); | 29 | + static PdfBaseCache defaultCache = PdfMemoryCache(); |
30 | 30 | ||
31 | /// Add some data to the cache | 31 | /// Add some data to the cache |
32 | Future<void> add(String key, Uint8List bytes); | 32 | Future<void> add(String key, Uint8List bytes); |
-
Please register or login to post a comment