// GENERATED CODE - DO NOT MODIFY BY HAND part of 'general_settings.dart'; // ************************************************************************** // CopyWithGenerator // ************************************************************************** abstract class _$GeneralSettingsCWProxy { GeneralSettings themeMode(ThemeMode themeMode); GeneralSettings enableReadability(bool enableReadability); GeneralSettings enforceReadability(bool enforceReadability); GeneralSettings deleteBrowsingDataOnQuit( Set? deleteBrowsingDataOnQuit, ); GeneralSettings defaultSearchProvider(BangKey? defaultSearchProvider); GeneralSettings defaultSearchSuggestionsProvider( SearchSuggestionProviders defaultSearchSuggestionsProvider, ); GeneralSettings createChildTabsOption(bool createChildTabsOption); GeneralSettings showExtensionShortcut(bool showExtensionShortcut); GeneralSettings enableLocalAiFeatures(bool enableLocalAiFeatures); GeneralSettings defaultCreateTabType(TabType defaultCreateTabType); GeneralSettings tabIntentOpenSetting( TabIntentOpenSetting tabIntentOpenSetting, ); GeneralSettings autoHideTabBar(bool autoHideTabBar); GeneralSettings tabBarSwipeAction(TabBarSwipeAction tabBarSwipeAction); GeneralSettings historyAutoCleanInterval(Duration historyAutoCleanInterval); GeneralSettings tabViewBottomSheet(bool tabViewBottomSheet); GeneralSettings tabBarReaderView(bool tabBarReaderView); GeneralSettings tabBarShowContextualBar(bool tabBarShowContextualBar); GeneralSettings tabBarShowQuickTabSwitcherBar( bool tabBarShowQuickTabSwitcherBar, ); GeneralSettings tabBarPosition(TabBarPosition tabBarPosition); GeneralSettings quickTabSwitcherMode( QuickTabSwitcherMode quickTabSwitcherMode, ); GeneralSettings pullToRefreshEnabled(bool pullToRefreshEnabled); GeneralSettings useExternalDownloadManager(bool useExternalDownloadManager); GeneralSettings doubleBackCloseTab(bool doubleBackCloseTab); GeneralSettings unassignedTabsAutoCleanInterval( Duration unassignedTabsAutoCleanInterval, ); GeneralSettings maxSearchHistoryEntries(int maxSearchHistoryEntries); GeneralSettings allowClipboardAccess(bool allowClipboardAccess); GeneralSettings tabListShowFavicons(bool tabListShowFavicons); GeneralSettings quickTabSwitcherShowTitles(bool quickTabSwitcherShowTitles); GeneralSettings drawerGestureEnabled(bool drawerGestureEnabled); GeneralSettings syncServerOverride(String syncServerOverride); GeneralSettings syncTokenServerOverride(String syncTokenServerOverride); GeneralSettings urlCleanerEnabled(bool urlCleanerEnabled); GeneralSettings urlCleanerAutoApply(bool urlCleanerAutoApply); GeneralSettings urlCleanerAllowReferralMarketing( bool urlCleanerAllowReferralMarketing, ); GeneralSettings urlCleanerCatalogUrl(String urlCleanerCatalogUrl); GeneralSettings urlCleanerHashUrl(String urlCleanerHashUrl); GeneralSettings urlCleanerAutoUpdate(bool urlCleanerAutoUpdate); GeneralSettings urlCleanerLastCheckEpochMs(int? urlCleanerLastCheckEpochMs); GeneralSettings urlCleanerLastUpdateWasAuto(bool urlCleanerLastUpdateWasAuto); GeneralSettings unshortenerEnabled(bool unshortenerEnabled); GeneralSettings unshortenerToken(String unshortenerToken); /// Creates a new instance with the provided field values. /// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `GeneralSettings(...).copyWith.fieldName(value)`. /// /// Example: /// ```dart /// GeneralSettings(...).copyWith(id: 12, name: "My name") /// ``` GeneralSettings call({ ThemeMode themeMode, bool enableReadability, bool enforceReadability, Set? deleteBrowsingDataOnQuit, BangKey? defaultSearchProvider, SearchSuggestionProviders defaultSearchSuggestionsProvider, bool createChildTabsOption, bool showExtensionShortcut, bool enableLocalAiFeatures, TabType defaultCreateTabType, TabIntentOpenSetting tabIntentOpenSetting, bool autoHideTabBar, TabBarSwipeAction tabBarSwipeAction, Duration historyAutoCleanInterval, bool tabViewBottomSheet, bool tabBarReaderView, bool tabBarShowContextualBar, bool tabBarShowQuickTabSwitcherBar, TabBarPosition tabBarPosition, QuickTabSwitcherMode quickTabSwitcherMode, bool pullToRefreshEnabled, bool useExternalDownloadManager, bool doubleBackCloseTab, Duration unassignedTabsAutoCleanInterval, int maxSearchHistoryEntries, bool allowClipboardAccess, bool tabListShowFavicons, bool quickTabSwitcherShowTitles, bool drawerGestureEnabled, String syncServerOverride, String syncTokenServerOverride, bool urlCleanerEnabled, bool urlCleanerAutoApply, bool urlCleanerAllowReferralMarketing, String urlCleanerCatalogUrl, String urlCleanerHashUrl, bool urlCleanerAutoUpdate, int? urlCleanerLastCheckEpochMs, bool urlCleanerLastUpdateWasAuto, bool unshortenerEnabled, String unshortenerToken, }); } /// Callable proxy for `copyWith` functionality. /// Use as `instanceOfGeneralSettings.copyWith(...)` or call `instanceOfGeneralSettings.copyWith.fieldName(value)` for a single field. class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy { const _$GeneralSettingsCWProxyImpl(this._value); final GeneralSettings _value; @override GeneralSettings themeMode(ThemeMode themeMode) => call(themeMode: themeMode); @override GeneralSettings enableReadability(bool enableReadability) => call(enableReadability: enableReadability); @override GeneralSettings enforceReadability(bool enforceReadability) => call(enforceReadability: enforceReadability); @override GeneralSettings deleteBrowsingDataOnQuit( Set? deleteBrowsingDataOnQuit, ) => call(deleteBrowsingDataOnQuit: deleteBrowsingDataOnQuit); @override GeneralSettings defaultSearchProvider(BangKey? defaultSearchProvider) => call(defaultSearchProvider: defaultSearchProvider); @override GeneralSettings defaultSearchSuggestionsProvider( SearchSuggestionProviders defaultSearchSuggestionsProvider, ) => call(defaultSearchSuggestionsProvider: defaultSearchSuggestionsProvider); @override GeneralSettings createChildTabsOption(bool createChildTabsOption) => call(createChildTabsOption: createChildTabsOption); @override GeneralSettings showExtensionShortcut(bool showExtensionShortcut) => call(showExtensionShortcut: showExtensionShortcut); @override GeneralSettings enableLocalAiFeatures(bool enableLocalAiFeatures) => call(enableLocalAiFeatures: enableLocalAiFeatures); @override GeneralSettings defaultCreateTabType(TabType defaultCreateTabType) => call(defaultCreateTabType: defaultCreateTabType); @override GeneralSettings tabIntentOpenSetting( TabIntentOpenSetting tabIntentOpenSetting, ) => call(tabIntentOpenSetting: tabIntentOpenSetting); @override GeneralSettings autoHideTabBar(bool autoHideTabBar) => call(autoHideTabBar: autoHideTabBar); @override GeneralSettings tabBarSwipeAction(TabBarSwipeAction tabBarSwipeAction) => call(tabBarSwipeAction: tabBarSwipeAction); @override GeneralSettings historyAutoCleanInterval(Duration historyAutoCleanInterval) => call(historyAutoCleanInterval: historyAutoCleanInterval); @override GeneralSettings tabViewBottomSheet(bool tabViewBottomSheet) => call(tabViewBottomSheet: tabViewBottomSheet); @override GeneralSettings tabBarReaderView(bool tabBarReaderView) => call(tabBarReaderView: tabBarReaderView); @override GeneralSettings tabBarShowContextualBar(bool tabBarShowContextualBar) => call(tabBarShowContextualBar: tabBarShowContextualBar); @override GeneralSettings tabBarShowQuickTabSwitcherBar( bool tabBarShowQuickTabSwitcherBar, ) => call(tabBarShowQuickTabSwitcherBar: tabBarShowQuickTabSwitcherBar); @override GeneralSettings tabBarPosition(TabBarPosition tabBarPosition) => call(tabBarPosition: tabBarPosition); @override GeneralSettings quickTabSwitcherMode( QuickTabSwitcherMode quickTabSwitcherMode, ) => call(quickTabSwitcherMode: quickTabSwitcherMode); @override GeneralSettings pullToRefreshEnabled(bool pullToRefreshEnabled) => call(pullToRefreshEnabled: pullToRefreshEnabled); @override GeneralSettings useExternalDownloadManager(bool useExternalDownloadManager) => call(useExternalDownloadManager: useExternalDownloadManager); @override GeneralSettings doubleBackCloseTab(bool doubleBackCloseTab) => call(doubleBackCloseTab: doubleBackCloseTab); @override GeneralSettings unassignedTabsAutoCleanInterval( Duration unassignedTabsAutoCleanInterval, ) => call(unassignedTabsAutoCleanInterval: unassignedTabsAutoCleanInterval); @override GeneralSettings maxSearchHistoryEntries(int maxSearchHistoryEntries) => call(maxSearchHistoryEntries: maxSearchHistoryEntries); @override GeneralSettings allowClipboardAccess(bool allowClipboardAccess) => call(allowClipboardAccess: allowClipboardAccess); @override GeneralSettings tabListShowFavicons(bool tabListShowFavicons) => call(tabListShowFavicons: tabListShowFavicons); @override GeneralSettings quickTabSwitcherShowTitles(bool quickTabSwitcherShowTitles) => call(quickTabSwitcherShowTitles: quickTabSwitcherShowTitles); @override GeneralSettings drawerGestureEnabled(bool drawerGestureEnabled) => call(drawerGestureEnabled: drawerGestureEnabled); @override GeneralSettings syncServerOverride(String syncServerOverride) => call(syncServerOverride: syncServerOverride); @override GeneralSettings syncTokenServerOverride(String syncTokenServerOverride) => call(syncTokenServerOverride: syncTokenServerOverride); @override GeneralSettings urlCleanerEnabled(bool urlCleanerEnabled) => call(urlCleanerEnabled: urlCleanerEnabled); @override GeneralSettings urlCleanerAutoApply(bool urlCleanerAutoApply) => call(urlCleanerAutoApply: urlCleanerAutoApply); @override GeneralSettings urlCleanerAllowReferralMarketing( bool urlCleanerAllowReferralMarketing, ) => call(urlCleanerAllowReferralMarketing: urlCleanerAllowReferralMarketing); @override GeneralSettings urlCleanerCatalogUrl(String urlCleanerCatalogUrl) => call(urlCleanerCatalogUrl: urlCleanerCatalogUrl); @override GeneralSettings urlCleanerHashUrl(String urlCleanerHashUrl) => call(urlCleanerHashUrl: urlCleanerHashUrl); @override GeneralSettings urlCleanerAutoUpdate(bool urlCleanerAutoUpdate) => call(urlCleanerAutoUpdate: urlCleanerAutoUpdate); @override GeneralSettings urlCleanerLastCheckEpochMs(int? urlCleanerLastCheckEpochMs) => call(urlCleanerLastCheckEpochMs: urlCleanerLastCheckEpochMs); @override GeneralSettings urlCleanerLastUpdateWasAuto( bool urlCleanerLastUpdateWasAuto, ) => call(urlCleanerLastUpdateWasAuto: urlCleanerLastUpdateWasAuto); @override GeneralSettings unshortenerEnabled(bool unshortenerEnabled) => call(unshortenerEnabled: unshortenerEnabled); @override GeneralSettings unshortenerToken(String unshortenerToken) => call(unshortenerToken: unshortenerToken); @override /// Creates a new instance with the provided field values. /// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `GeneralSettings(...).copyWith.fieldName(value)`. /// /// Example: /// ```dart /// GeneralSettings(...).copyWith(id: 12, name: "My name") /// ``` GeneralSettings call({ Object? themeMode = const $CopyWithPlaceholder(), Object? enableReadability = const $CopyWithPlaceholder(), Object? enforceReadability = const $CopyWithPlaceholder(), Object? deleteBrowsingDataOnQuit = const $CopyWithPlaceholder(), Object? defaultSearchProvider = const $CopyWithPlaceholder(), Object? defaultSearchSuggestionsProvider = const $CopyWithPlaceholder(), Object? createChildTabsOption = const $CopyWithPlaceholder(), Object? showExtensionShortcut = const $CopyWithPlaceholder(), Object? enableLocalAiFeatures = const $CopyWithPlaceholder(), Object? defaultCreateTabType = const $CopyWithPlaceholder(), Object? tabIntentOpenSetting = const $CopyWithPlaceholder(), Object? autoHideTabBar = const $CopyWithPlaceholder(), Object? tabBarSwipeAction = const $CopyWithPlaceholder(), Object? historyAutoCleanInterval = const $CopyWithPlaceholder(), Object? tabViewBottomSheet = const $CopyWithPlaceholder(), Object? tabBarReaderView = const $CopyWithPlaceholder(), Object? tabBarShowContextualBar = const $CopyWithPlaceholder(), Object? tabBarShowQuickTabSwitcherBar = const $CopyWithPlaceholder(), Object? tabBarPosition = const $CopyWithPlaceholder(), Object? quickTabSwitcherMode = const $CopyWithPlaceholder(), Object? pullToRefreshEnabled = const $CopyWithPlaceholder(), Object? useExternalDownloadManager = const $CopyWithPlaceholder(), Object? doubleBackCloseTab = const $CopyWithPlaceholder(), Object? unassignedTabsAutoCleanInterval = const $CopyWithPlaceholder(), Object? maxSearchHistoryEntries = const $CopyWithPlaceholder(), Object? allowClipboardAccess = const $CopyWithPlaceholder(), Object? tabListShowFavicons = const $CopyWithPlaceholder(), Object? quickTabSwitcherShowTitles = const $CopyWithPlaceholder(), Object? drawerGestureEnabled = const $CopyWithPlaceholder(), Object? syncServerOverride = const $CopyWithPlaceholder(), Object? syncTokenServerOverride = const $CopyWithPlaceholder(), Object? urlCleanerEnabled = const $CopyWithPlaceholder(), Object? urlCleanerAutoApply = const $CopyWithPlaceholder(), Object? urlCleanerAllowReferralMarketing = const $CopyWithPlaceholder(), Object? urlCleanerCatalogUrl = const $CopyWithPlaceholder(), Object? urlCleanerHashUrl = const $CopyWithPlaceholder(), Object? urlCleanerAutoUpdate = const $CopyWithPlaceholder(), Object? urlCleanerLastCheckEpochMs = const $CopyWithPlaceholder(), Object? urlCleanerLastUpdateWasAuto = const $CopyWithPlaceholder(), Object? unshortenerEnabled = const $CopyWithPlaceholder(), Object? unshortenerToken = const $CopyWithPlaceholder(), }) { return GeneralSettings( themeMode: themeMode == const $CopyWithPlaceholder() || themeMode == null ? _value.themeMode // ignore: cast_nullable_to_non_nullable : themeMode as ThemeMode, enableReadability: enableReadability == const $CopyWithPlaceholder() || enableReadability == null ? _value.enableReadability // ignore: cast_nullable_to_non_nullable : enableReadability as bool, enforceReadability: enforceReadability == const $CopyWithPlaceholder() || enforceReadability == null ? _value.enforceReadability // ignore: cast_nullable_to_non_nullable : enforceReadability as bool, deleteBrowsingDataOnQuit: deleteBrowsingDataOnQuit == const $CopyWithPlaceholder() ? _value.deleteBrowsingDataOnQuit // ignore: cast_nullable_to_non_nullable : deleteBrowsingDataOnQuit as Set?, defaultSearchProvider: defaultSearchProvider == const $CopyWithPlaceholder() ? _value.defaultSearchProvider // ignore: cast_nullable_to_non_nullable : defaultSearchProvider as BangKey?, defaultSearchSuggestionsProvider: defaultSearchSuggestionsProvider == const $CopyWithPlaceholder() || defaultSearchSuggestionsProvider == null ? _value.defaultSearchSuggestionsProvider // ignore: cast_nullable_to_non_nullable : defaultSearchSuggestionsProvider as SearchSuggestionProviders, createChildTabsOption: createChildTabsOption == const $CopyWithPlaceholder() || createChildTabsOption == null ? _value.createChildTabsOption // ignore: cast_nullable_to_non_nullable : createChildTabsOption as bool, showExtensionShortcut: showExtensionShortcut == const $CopyWithPlaceholder() || showExtensionShortcut == null ? _value.showExtensionShortcut // ignore: cast_nullable_to_non_nullable : showExtensionShortcut as bool, enableLocalAiFeatures: enableLocalAiFeatures == const $CopyWithPlaceholder() || enableLocalAiFeatures == null ? _value.enableLocalAiFeatures // ignore: cast_nullable_to_non_nullable : enableLocalAiFeatures as bool, defaultCreateTabType: defaultCreateTabType == const $CopyWithPlaceholder() || defaultCreateTabType == null ? _value.defaultCreateTabType // ignore: cast_nullable_to_non_nullable : defaultCreateTabType as TabType, tabIntentOpenSetting: tabIntentOpenSetting == const $CopyWithPlaceholder() || tabIntentOpenSetting == null ? _value.tabIntentOpenSetting // ignore: cast_nullable_to_non_nullable : tabIntentOpenSetting as TabIntentOpenSetting, autoHideTabBar: autoHideTabBar == const $CopyWithPlaceholder() || autoHideTabBar == null ? _value.autoHideTabBar // ignore: cast_nullable_to_non_nullable : autoHideTabBar as bool, tabBarSwipeAction: tabBarSwipeAction == const $CopyWithPlaceholder() || tabBarSwipeAction == null ? _value.tabBarSwipeAction // ignore: cast_nullable_to_non_nullable : tabBarSwipeAction as TabBarSwipeAction, historyAutoCleanInterval: historyAutoCleanInterval == const $CopyWithPlaceholder() || historyAutoCleanInterval == null ? _value.historyAutoCleanInterval // ignore: cast_nullable_to_non_nullable : historyAutoCleanInterval as Duration, tabViewBottomSheet: tabViewBottomSheet == const $CopyWithPlaceholder() || tabViewBottomSheet == null ? _value.tabViewBottomSheet // ignore: cast_nullable_to_non_nullable : tabViewBottomSheet as bool, tabBarReaderView: tabBarReaderView == const $CopyWithPlaceholder() || tabBarReaderView == null ? _value.tabBarReaderView // ignore: cast_nullable_to_non_nullable : tabBarReaderView as bool, tabBarShowContextualBar: tabBarShowContextualBar == const $CopyWithPlaceholder() || tabBarShowContextualBar == null ? _value.tabBarShowContextualBar // ignore: cast_nullable_to_non_nullable : tabBarShowContextualBar as bool, tabBarShowQuickTabSwitcherBar: tabBarShowQuickTabSwitcherBar == const $CopyWithPlaceholder() || tabBarShowQuickTabSwitcherBar == null ? _value.tabBarShowQuickTabSwitcherBar // ignore: cast_nullable_to_non_nullable : tabBarShowQuickTabSwitcherBar as bool, tabBarPosition: tabBarPosition == const $CopyWithPlaceholder() || tabBarPosition == null ? _value.tabBarPosition // ignore: cast_nullable_to_non_nullable : tabBarPosition as TabBarPosition, quickTabSwitcherMode: quickTabSwitcherMode == const $CopyWithPlaceholder() || quickTabSwitcherMode == null ? _value.quickTabSwitcherMode // ignore: cast_nullable_to_non_nullable : quickTabSwitcherMode as QuickTabSwitcherMode, pullToRefreshEnabled: pullToRefreshEnabled == const $CopyWithPlaceholder() || pullToRefreshEnabled == null ? _value.pullToRefreshEnabled // ignore: cast_nullable_to_non_nullable : pullToRefreshEnabled as bool, useExternalDownloadManager: useExternalDownloadManager == const $CopyWithPlaceholder() || useExternalDownloadManager == null ? _value.useExternalDownloadManager // ignore: cast_nullable_to_non_nullable : useExternalDownloadManager as bool, doubleBackCloseTab: doubleBackCloseTab == const $CopyWithPlaceholder() || doubleBackCloseTab == null ? _value.doubleBackCloseTab // ignore: cast_nullable_to_non_nullable : doubleBackCloseTab as bool, unassignedTabsAutoCleanInterval: unassignedTabsAutoCleanInterval == const $CopyWithPlaceholder() || unassignedTabsAutoCleanInterval == null ? _value.unassignedTabsAutoCleanInterval // ignore: cast_nullable_to_non_nullable : unassignedTabsAutoCleanInterval as Duration, maxSearchHistoryEntries: maxSearchHistoryEntries == const $CopyWithPlaceholder() || maxSearchHistoryEntries == null ? _value.maxSearchHistoryEntries // ignore: cast_nullable_to_non_nullable : maxSearchHistoryEntries as int, allowClipboardAccess: allowClipboardAccess == const $CopyWithPlaceholder() || allowClipboardAccess == null ? _value.allowClipboardAccess // ignore: cast_nullable_to_non_nullable : allowClipboardAccess as bool, tabListShowFavicons: tabListShowFavicons == const $CopyWithPlaceholder() || tabListShowFavicons == null ? _value.tabListShowFavicons // ignore: cast_nullable_to_non_nullable : tabListShowFavicons as bool, quickTabSwitcherShowTitles: quickTabSwitcherShowTitles == const $CopyWithPlaceholder() || quickTabSwitcherShowTitles == null ? _value.quickTabSwitcherShowTitles // ignore: cast_nullable_to_non_nullable : quickTabSwitcherShowTitles as bool, drawerGestureEnabled: drawerGestureEnabled == const $CopyWithPlaceholder() || drawerGestureEnabled == null ? _value.drawerGestureEnabled // ignore: cast_nullable_to_non_nullable : drawerGestureEnabled as bool, syncServerOverride: syncServerOverride == const $CopyWithPlaceholder() || syncServerOverride == null ? _value.syncServerOverride // ignore: cast_nullable_to_non_nullable : syncServerOverride as String, syncTokenServerOverride: syncTokenServerOverride == const $CopyWithPlaceholder() || syncTokenServerOverride == null ? _value.syncTokenServerOverride // ignore: cast_nullable_to_non_nullable : syncTokenServerOverride as String, urlCleanerEnabled: urlCleanerEnabled == const $CopyWithPlaceholder() || urlCleanerEnabled == null ? _value.urlCleanerEnabled // ignore: cast_nullable_to_non_nullable : urlCleanerEnabled as bool, urlCleanerAutoApply: urlCleanerAutoApply == const $CopyWithPlaceholder() || urlCleanerAutoApply == null ? _value.urlCleanerAutoApply // ignore: cast_nullable_to_non_nullable : urlCleanerAutoApply as bool, urlCleanerAllowReferralMarketing: urlCleanerAllowReferralMarketing == const $CopyWithPlaceholder() || urlCleanerAllowReferralMarketing == null ? _value.urlCleanerAllowReferralMarketing // ignore: cast_nullable_to_non_nullable : urlCleanerAllowReferralMarketing as bool, urlCleanerCatalogUrl: urlCleanerCatalogUrl == const $CopyWithPlaceholder() || urlCleanerCatalogUrl == null ? _value.urlCleanerCatalogUrl // ignore: cast_nullable_to_non_nullable : urlCleanerCatalogUrl as String, urlCleanerHashUrl: urlCleanerHashUrl == const $CopyWithPlaceholder() || urlCleanerHashUrl == null ? _value.urlCleanerHashUrl // ignore: cast_nullable_to_non_nullable : urlCleanerHashUrl as String, urlCleanerAutoUpdate: urlCleanerAutoUpdate == const $CopyWithPlaceholder() || urlCleanerAutoUpdate == null ? _value.urlCleanerAutoUpdate // ignore: cast_nullable_to_non_nullable : urlCleanerAutoUpdate as bool, urlCleanerLastCheckEpochMs: urlCleanerLastCheckEpochMs == const $CopyWithPlaceholder() ? _value.urlCleanerLastCheckEpochMs // ignore: cast_nullable_to_non_nullable : urlCleanerLastCheckEpochMs as int?, urlCleanerLastUpdateWasAuto: urlCleanerLastUpdateWasAuto == const $CopyWithPlaceholder() || urlCleanerLastUpdateWasAuto == null ? _value.urlCleanerLastUpdateWasAuto // ignore: cast_nullable_to_non_nullable : urlCleanerLastUpdateWasAuto as bool, unshortenerEnabled: unshortenerEnabled == const $CopyWithPlaceholder() || unshortenerEnabled == null ? _value.unshortenerEnabled // ignore: cast_nullable_to_non_nullable : unshortenerEnabled as bool, unshortenerToken: unshortenerToken == const $CopyWithPlaceholder() || unshortenerToken == null ? _value.unshortenerToken // ignore: cast_nullable_to_non_nullable : unshortenerToken as String, ); } } extension $GeneralSettingsCopyWith on GeneralSettings { /// Returns a callable class used to build a new instance with modified fields. /// Example: `instanceOfGeneralSettings.copyWith(...)` or `instanceOfGeneralSettings.copyWith.fieldName(...)`. // ignore: library_private_types_in_public_api _$GeneralSettingsCWProxy get copyWith => _$GeneralSettingsCWProxyImpl(this); } // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GeneralSettings _$GeneralSettingsFromJson( Map json, ) => GeneralSettings.withDefaults( themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']), enableReadability: json['enableReadability'] as bool?, enforceReadability: json['enforceReadability'] as bool?, deleteBrowsingDataOnQuit: (json['deleteBrowsingDataOnQuit'] as List?) ?.map((e) => $enumDecode(_$DeleteBrowsingDataTypeEnumMap, e)) .toSet(), defaultSearchProvider: const BangKeyConverter().fromJson( json['defaultSearchProvider'] as String?, ), defaultSearchSuggestionsProvider: $enumDecodeNullable( _$SearchSuggestionProvidersEnumMap, json['defaultSearchSuggestionsProvider'], ), createChildTabsOption: json['createChildTabsOption'] as bool?, showExtensionShortcut: json['showExtensionShortcut'] as bool?, enableLocalAiFeatures: json['enableLocalAiFeatures'] as bool?, defaultCreateTabType: $enumDecodeNullable( _$TabTypeEnumMap, json['defaultCreateTabType'], ), tabIntentOpenSetting: $enumDecodeNullable( _$TabIntentOpenSettingEnumMap, json['tabIntentOpenSetting'], ), autoHideTabBar: json['autoHideTabBar'] as bool?, tabBarSwipeAction: $enumDecodeNullable( _$TabBarSwipeActionEnumMap, json['tabBarSwipeAction'], ), historyAutoCleanInterval: json['historyAutoCleanInterval'] == null ? null : Duration( microseconds: (json['historyAutoCleanInterval'] as num).toInt(), ), tabViewBottomSheet: json['tabViewBottomSheet'] as bool?, tabBarReaderView: json['tabBarReaderView'] as bool?, tabBarShowContextualBar: json['tabBarShowContextualBar'] as bool?, tabBarShowQuickTabSwitcherBar: json['tabBarShowQuickTabSwitcherBar'] as bool?, tabBarPosition: $enumDecodeNullable( _$TabBarPositionEnumMap, json['tabBarPosition'], ), quickTabSwitcherMode: $enumDecodeNullable( _$QuickTabSwitcherModeEnumMap, json['quickTabSwitcherMode'], ), pullToRefreshEnabled: json['pullToRefreshEnabled'] as bool?, useExternalDownloadManager: json['useExternalDownloadManager'] as bool?, doubleBackCloseTab: json['doubleBackCloseTab'] as bool?, unassignedTabsAutoCleanInterval: json['unassignedTabsAutoCleanInterval'] == null ? null : Duration( microseconds: (json['unassignedTabsAutoCleanInterval'] as num) .toInt(), ), maxSearchHistoryEntries: (json['maxSearchHistoryEntries'] as num?)?.toInt(), allowClipboardAccess: json['allowClipboardAccess'] as bool?, tabListShowFavicons: json['tabListShowFavicons'] as bool?, quickTabSwitcherShowTitles: json['quickTabSwitcherShowTitles'] as bool?, drawerGestureEnabled: json['drawerGestureEnabled'] as bool?, syncServerOverride: json['syncServerOverride'] as String?, syncTokenServerOverride: json['syncTokenServerOverride'] as String?, urlCleanerEnabled: json['urlCleanerEnabled'] as bool?, urlCleanerAutoApply: json['urlCleanerAutoApply'] as bool?, urlCleanerAllowReferralMarketing: json['urlCleanerAllowReferralMarketing'] as bool?, urlCleanerCatalogUrl: json['urlCleanerCatalogUrl'] as String?, urlCleanerHashUrl: json['urlCleanerHashUrl'] as String?, urlCleanerAutoUpdate: json['urlCleanerAutoUpdate'] as bool?, urlCleanerLastCheckEpochMs: (json['urlCleanerLastCheckEpochMs'] as num?) ?.toInt(), urlCleanerLastUpdateWasAuto: json['urlCleanerLastUpdateWasAuto'] as bool?, unshortenerEnabled: json['unshortenerEnabled'] as bool?, unshortenerToken: json['unshortenerToken'] as String?, ); Map _$GeneralSettingsToJson( GeneralSettings instance, ) => { 'themeMode': _$ThemeModeEnumMap[instance.themeMode]!, 'enableReadability': instance.enableReadability, 'enforceReadability': instance.enforceReadability, 'deleteBrowsingDataOnQuit': instance.deleteBrowsingDataOnQuit ?.map((e) => _$DeleteBrowsingDataTypeEnumMap[e]!) .toList(), 'defaultSearchProvider': const BangKeyConverter().toJson( instance.defaultSearchProvider, ), 'defaultSearchSuggestionsProvider': _$SearchSuggestionProvidersEnumMap[instance .defaultSearchSuggestionsProvider]!, 'createChildTabsOption': instance.createChildTabsOption, 'showExtensionShortcut': instance.showExtensionShortcut, 'enableLocalAiFeatures': instance.enableLocalAiFeatures, 'defaultCreateTabType': _$TabTypeEnumMap[instance.defaultCreateTabType]!, 'tabIntentOpenSetting': _$TabIntentOpenSettingEnumMap[instance.tabIntentOpenSetting]!, 'autoHideTabBar': instance.autoHideTabBar, 'tabBarSwipeAction': _$TabBarSwipeActionEnumMap[instance.tabBarSwipeAction]!, 'historyAutoCleanInterval': instance.historyAutoCleanInterval.inMicroseconds, 'tabViewBottomSheet': instance.tabViewBottomSheet, 'tabBarReaderView': instance.tabBarReaderView, 'tabBarShowContextualBar': instance.tabBarShowContextualBar, 'tabBarShowQuickTabSwitcherBar': instance.tabBarShowQuickTabSwitcherBar, 'tabBarPosition': _$TabBarPositionEnumMap[instance.tabBarPosition]!, 'quickTabSwitcherMode': _$QuickTabSwitcherModeEnumMap[instance.quickTabSwitcherMode]!, 'pullToRefreshEnabled': instance.pullToRefreshEnabled, 'useExternalDownloadManager': instance.useExternalDownloadManager, 'doubleBackCloseTab': instance.doubleBackCloseTab, 'unassignedTabsAutoCleanInterval': instance.unassignedTabsAutoCleanInterval.inMicroseconds, 'maxSearchHistoryEntries': instance.maxSearchHistoryEntries, 'allowClipboardAccess': instance.allowClipboardAccess, 'tabListShowFavicons': instance.tabListShowFavicons, 'quickTabSwitcherShowTitles': instance.quickTabSwitcherShowTitles, 'drawerGestureEnabled': instance.drawerGestureEnabled, 'syncServerOverride': instance.syncServerOverride, 'syncTokenServerOverride': instance.syncTokenServerOverride, 'urlCleanerEnabled': instance.urlCleanerEnabled, 'urlCleanerAutoApply': instance.urlCleanerAutoApply, 'urlCleanerAllowReferralMarketing': instance.urlCleanerAllowReferralMarketing, 'urlCleanerCatalogUrl': instance.urlCleanerCatalogUrl, 'urlCleanerHashUrl': instance.urlCleanerHashUrl, 'urlCleanerAutoUpdate': instance.urlCleanerAutoUpdate, 'urlCleanerLastCheckEpochMs': instance.urlCleanerLastCheckEpochMs, 'urlCleanerLastUpdateWasAuto': instance.urlCleanerLastUpdateWasAuto, 'unshortenerEnabled': instance.unshortenerEnabled, 'unshortenerToken': instance.unshortenerToken, }; const _$ThemeModeEnumMap = { ThemeMode.system: 'system', ThemeMode.light: 'light', ThemeMode.dark: 'dark', }; const _$DeleteBrowsingDataTypeEnumMap = { DeleteBrowsingDataType.tabs: 'tabs', DeleteBrowsingDataType.history: 'history', DeleteBrowsingDataType.cookies: 'cookies', DeleteBrowsingDataType.cache: 'cache', DeleteBrowsingDataType.permissions: 'permissions', DeleteBrowsingDataType.downloads: 'downloads', }; const _$SearchSuggestionProvidersEnumMap = { SearchSuggestionProviders.none: 'none', SearchSuggestionProviders.brave: 'brave', SearchSuggestionProviders.ddg: 'ddg', SearchSuggestionProviders.kagi: 'kagi', SearchSuggestionProviders.qwant: 'qwant', }; const _$TabTypeEnumMap = { TabType.regular: 'regular', TabType.private: 'private', TabType.child: 'child', }; const _$TabIntentOpenSettingEnumMap = { TabIntentOpenSetting.regular: 'regular', TabIntentOpenSetting.private: 'private', TabIntentOpenSetting.ask: 'ask', }; const _$TabBarSwipeActionEnumMap = { TabBarSwipeAction.switchLastOpened: 'switchLastOpened', TabBarSwipeAction.navigateOrderedTabs: 'navigateOrderedTabs', }; const _$TabBarPositionEnumMap = { TabBarPosition.top: 'top', TabBarPosition.bottom: 'bottom', }; const _$QuickTabSwitcherModeEnumMap = { QuickTabSwitcherMode.lastUsedTabs: 'lastUsedTabs', QuickTabSwitcherMode.containerTabs: 'containerTabs', };