We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec66f63 commit aaebcdeCopy full SHA for aaebcde
packages/pillar-core/example/lib/repositories/example_repository.dart
@@ -4,6 +4,9 @@ import 'package:pillar_core/pillar_core.dart';
4
abstract interface class ExampleRepository implements BaseRepository {
5
/// Repository name
6
Future<String> getData();
7
+
8
+ /// Clear cached data
9
+ Future<void> clearCache();
10
}
11
12
/// Implementation of ExampleRepository
@@ -17,4 +20,9 @@ class ExampleRepositoryImpl implements ExampleRepository {
17
20
await Future<void>.delayed(const Duration(milliseconds: 500));
18
21
return 'Sample data from repository';
19
22
23
24
+ @override
25
+ Future<void> clearCache() {
26
+ return Future<void>.delayed(const Duration(milliseconds: 200));
27
+ }
28
0 commit comments