Skip to content

Commit aaebcde

Browse files
authored
feat: test ci (#6)
* feat: add new method * chore: format
1 parent ec66f63 commit aaebcde

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/pillar-core/example/lib/repositories/example_repository.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import 'package:pillar_core/pillar_core.dart';
44
abstract interface class ExampleRepository implements BaseRepository {
55
/// Repository name
66
Future<String> getData();
7+
8+
/// Clear cached data
9+
Future<void> clearCache();
710
}
811

912
/// Implementation of ExampleRepository
@@ -17,4 +20,9 @@ class ExampleRepositoryImpl implements ExampleRepository {
1720
await Future<void>.delayed(const Duration(milliseconds: 500));
1821
return 'Sample data from repository';
1922
}
23+
24+
@override
25+
Future<void> clearCache() {
26+
return Future<void>.delayed(const Duration(milliseconds: 200));
27+
}
2028
}

0 commit comments

Comments
 (0)