You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
397 B
9 lines
397 B
19 hours ago
|
// image_repository.dart
|
||
|
abstract class ImageRepository {
|
||
|
Future<String> downloadImage(String imageUrl, String problemId);
|
||
|
Future<bool> isImageDownloaded(String imageUrl, String problemId);
|
||
|
Future<String?> getLocalImagePath(String imageUrl, String problemId);
|
||
|
Future<void> deleteProblemImages(String problemId);
|
||
|
Future<void> cleanupCache({Duration maxAge = const Duration(days: 30)});
|
||
|
}
|