upgrade deps
This commit is contained in:
@@ -32,7 +32,7 @@ import 'package:weblibre/features/geckoview/features/tabs/data/entities/tab_mode
|
||||
|
||||
part 'tab.g.dart';
|
||||
|
||||
@CopyWith()
|
||||
@CopyWith(constructor: '_')
|
||||
class TabState extends WebPageInfo {
|
||||
static final defaultUrl = Uri.parse('about:blank');
|
||||
|
||||
@@ -98,6 +98,26 @@ class TabState extends WebPageInfo {
|
||||
required this.translationState,
|
||||
}) : super(title: title.trim());
|
||||
|
||||
TabState._({
|
||||
required this.id,
|
||||
required this.parentId,
|
||||
required this.contextId,
|
||||
required super.url,
|
||||
required super.title,
|
||||
required this.icon,
|
||||
required this.thumbnail,
|
||||
required this.progress,
|
||||
required this.tabMode,
|
||||
required this.isFullScreen,
|
||||
required this.isLoading,
|
||||
required this.showToolbarAsExpanded,
|
||||
required this.securityInfoState,
|
||||
required this.historyState,
|
||||
required this.readerableState,
|
||||
required this.findResultState,
|
||||
required this.translationState,
|
||||
});
|
||||
|
||||
factory TabState.$default(String tabId) => TabState(
|
||||
id: tabId,
|
||||
parentId: null,
|
||||
|
||||
@@ -13,7 +13,7 @@ abstract class _$TabStateCWProxy {
|
||||
|
||||
TabState url(Uri url);
|
||||
|
||||
TabState title(String title);
|
||||
TabState title(String? title);
|
||||
|
||||
TabState icon(EquatableImage? icon);
|
||||
|
||||
@@ -50,7 +50,7 @@ abstract class _$TabStateCWProxy {
|
||||
String? parentId,
|
||||
String? contextId,
|
||||
Uri url,
|
||||
String title,
|
||||
String? title,
|
||||
EquatableImage? icon,
|
||||
EquatableImage? thumbnail,
|
||||
int progress,
|
||||
@@ -83,7 +83,7 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
||||
TabState url(Uri url) => call(url: url);
|
||||
|
||||
@override
|
||||
TabState title(String title) => call(title: title);
|
||||
TabState title(String? title) => call(title: title);
|
||||
|
||||
@override
|
||||
TabState icon(EquatableImage? icon) => call(icon: icon);
|
||||
@@ -153,7 +153,7 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
||||
Object? findResultState = const $CopyWithPlaceholder(),
|
||||
Object? translationState = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return TabState(
|
||||
return TabState._(
|
||||
id: _value.id,
|
||||
parentId: parentId == const $CopyWithPlaceholder()
|
||||
? _value.parentId
|
||||
@@ -167,10 +167,10 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
||||
? _value.url
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: url as Uri,
|
||||
title: title == const $CopyWithPlaceholder() || title == null
|
||||
title: title == const $CopyWithPlaceholder()
|
||||
? _value.title
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: title as String,
|
||||
: title as String?,
|
||||
icon: icon == const $CopyWithPlaceholder()
|
||||
? _value.icon
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
|
||||
+10
-1
@@ -116,7 +116,7 @@ class BookmarkEntry extends BookmarkItem with FastEquatable {
|
||||
];
|
||||
}
|
||||
|
||||
@CopyWith()
|
||||
@CopyWith(constructor: '_')
|
||||
@JsonSerializable()
|
||||
class BookmarkFolder extends BookmarkItem with FastEquatable {
|
||||
@override
|
||||
@@ -141,6 +141,15 @@ class BookmarkFolder extends BookmarkItem with FastEquatable {
|
||||
required this.children,
|
||||
}) : title = bookmarkRootDisplayNames[guid] ?? title;
|
||||
|
||||
BookmarkFolder._({
|
||||
required this.guid,
|
||||
required this.parentGuid,
|
||||
required this.title,
|
||||
required this.position,
|
||||
required this.dateAdded,
|
||||
required this.children,
|
||||
});
|
||||
|
||||
factory BookmarkFolder.fromJson(Map<String, dynamic> json) =>
|
||||
_$BookmarkFolderFromJson(json);
|
||||
|
||||
|
||||
+1
-1
@@ -199,7 +199,7 @@ class _$BookmarkFolderCWProxyImpl implements _$BookmarkFolderCWProxy {
|
||||
Object? dateAdded = const $CopyWithPlaceholder(),
|
||||
Object? children = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return BookmarkFolder(
|
||||
return BookmarkFolder._(
|
||||
guid: guid == const $CopyWithPlaceholder() || guid == null
|
||||
? _value.guid
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
|
||||
Reference in New Issue
Block a user