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 bbc922cCopy full SHA for bbc922c
packages/pillar-core/example/lib/repositories/example_repository.dart
@@ -4,6 +4,8 @@ import 'package:pillar_core/pillar_core.dart';
4
abstract interface class ExampleRepository implements BaseRepository {
5
/// Repository name
6
Future<String> getData();
7
+ /// Clear cached data
8
+ Future<void> clearCache();
9
}
10
11
/// Implementation of ExampleRepository
@@ -17,4 +19,9 @@ class ExampleRepositoryImpl implements ExampleRepository {
17
19
await Future<void>.delayed(const Duration(milliseconds: 500));
18
20
return 'Sample data from repository';
21
22
+
23
+ @override
24
+ Future<void> clearCache() {
25
+ return Future<void>.delayed(const Duration(milliseconds: 200));
26
+ }
27
0 commit comments