intermediate

This commit is contained in:
Fabian Freund
2025-01-07 00:06:31 +01:00
parent ea0880b97a
commit 4a2191b01d
84 changed files with 2655 additions and 1383 deletions
@@ -12,16 +12,14 @@ import 'package:lensai/features/geckoview/domain/entities/security_state.dart';
part 'tab_state.g.dart';
@CopyWith()
class TabState with FastEquatable implements WebPageInfo {
class TabState extends WebPageInfo with FastEquatable {
@CopyWithField(immutable: true)
final String id;
final String? contextId;
@override
final Uri url;
@override
final String title;
String get title => super.title!;
final EquatableImage? icon;
@@ -50,8 +48,8 @@ class TabState with FastEquatable implements WebPageInfo {
TabState({
required this.id,
required this.contextId,
required this.url,
required this.title,
required super.url,
required String title,
required this.icon,
required this.thumbnail,
required this.progress,
@@ -62,7 +60,7 @@ class TabState with FastEquatable implements WebPageInfo {
required this.historyState,
required this.readerableState,
required this.findResultState,
});
}) : super(title: title);
factory TabState.$default(String tabId) => TabState(
id: tabId,