feed finder

This commit is contained in:
Fabian Freund
2025-02-23 17:12:46 +01:00
parent ccb186a26b
commit 4112779477
6 changed files with 132 additions and 10 deletions
+10 -2
View File
@@ -1,16 +1,24 @@
import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:fast_equatable/fast_equatable.dart';
import 'package:lensai/features/geckoview/domain/entities/browser_icon.dart';
part 'web_page_info.g.dart';
@CopyWith()
class WebPageInfo {
class WebPageInfo with FastEquatable {
final Uri url;
final String? title;
final BrowserIcon? favicon;
final Set<String>? feeds;
bool get isPageInfoComplete =>
(title?.isNotEmpty ?? false) && favicon != null;
WebPageInfo({required this.url, this.title, this.favicon});
WebPageInfo({required this.url, this.title, this.favicon, this.feeds});
@override
bool get cacheHash => true;
@override
List<Object?> get hashParameters => [url, title, favicon, feeds];
}