2022-09-14 08:33:12 +00:00
|
|
|
import 'package:photos/models/file.dart';
|
|
|
|
|
2023-02-24 07:56:33 +00:00
|
|
|
import "search_types.dart";
|
|
|
|
|
2022-09-14 08:33:12 +00:00
|
|
|
abstract class SearchResult {
|
|
|
|
ResultType type();
|
|
|
|
|
|
|
|
String name();
|
|
|
|
|
2022-10-19 11:56:06 +00:00
|
|
|
File? previewThumbnail();
|
2022-09-14 08:33:12 +00:00
|
|
|
|
|
|
|
String heroTag() {
|
|
|
|
return '${type().toString()}_${name()}';
|
|
|
|
}
|
|
|
|
|
|
|
|
List<File> resultFiles();
|
|
|
|
}
|