From fcfde0dc3b45f40d3db7ba01317e58faefefe6d1 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Thu, 30 Jul 2026 15:00:26 +0200 Subject: [PATCH] fix formatting --- .../lib/core/providers/persisted_bool.g.dart | 2 +- .../features/addons/domain/providers.g.dart | 2 +- .../providers/bookmark_list_ui_state.g.dart | 2 +- .../domain/providers/bookmarks.g.dart | 2 +- .../domain/repositories/bookmarks.g.dart | 2 +- .../controllers/tab_view_controllers.g.dart | 4 +- .../features/history/domain/providers.g.dart | 4 +- .../providers/search_module_order.g.dart | 2 +- .../providers/selected_container.g.dart | 2 +- .../repositories/web_search_settings.g.dart | 2 +- .../small_web_session_controller.g.dart | 2 +- .../domain/providers/backup_directory.g.dart | 2 +- .../domain/repositories/engine_settings.dart | 6 +- .../lib/src/pigeons/gecko.g.dart | 6743 ++++++++++------- .../pigeons/gecko.dart | 5 +- .../lib/src/singbox_proxy_api.g.dart | 331 +- packages/flutter_tor/lib/src/tor_api.g.dart | 201 +- .../lib/src/pigeons/locales.g.dart | 62 +- .../lib/src/pigeons/intent.g.dart | 163 +- .../lib/src/pigeons/speech_to_text.g.dart | 62 +- 20 files changed, 4517 insertions(+), 3084 deletions(-) diff --git a/apps/weblibre/lib/core/providers/persisted_bool.g.dart b/apps/weblibre/lib/core/providers/persisted_bool.g.dart index 04017321..452e225f 100644 --- a/apps/weblibre/lib/core/providers/persisted_bool.g.dart +++ b/apps/weblibre/lib/core/providers/persisted_bool.g.dart @@ -58,7 +58,7 @@ final class PersistedBoolProvider } } -String _$persistedBoolHash() => r'97fd7ed82dfde444fddf4475a3982be00f5f197a'; +String _$persistedBoolHash() => r'b73ab03b1a9a81c27174393484b77e107be9cf50'; final class PersistedBoolFamily extends $Family with diff --git a/apps/weblibre/lib/features/addons/domain/providers.g.dart b/apps/weblibre/lib/features/addons/domain/providers.g.dart index 85d53fe7..617ae5dc 100644 --- a/apps/weblibre/lib/features/addons/domain/providers.g.dart +++ b/apps/weblibre/lib/features/addons/domain/providers.g.dart @@ -843,7 +843,7 @@ final class PinnedAddonIdsProvider } } -String _$pinnedAddonIdsHash() => r'4f46cd69d4817e6e19e4d04f4fdcf83d5e2efb8c'; +String _$pinnedAddonIdsHash() => r'93a3e6944156569eb6eca2bb934c8e94e64484ad'; abstract class _$PinnedAddonIds extends $Notifier> { Set build(); diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmark_list_ui_state.g.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmark_list_ui_state.g.dart index 8cf04e46..044824e8 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmark_list_ui_state.g.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmark_list_ui_state.g.dart @@ -45,7 +45,7 @@ final class BookmarkListUiStateNotifierProvider } String _$bookmarkListUiStateNotifierHash() => - r'13f01daba9d1591c700e956428f0e0e8cb2bfe92'; + r'ec34d3b9263463574de71dce9ab349668862c598'; @JsonPersist() abstract class _$BookmarkListUiStateNotifierBase diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmarks.g.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmarks.g.dart index 5de156d0..b888c051 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmarks.g.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/providers/bookmarks.g.dart @@ -42,7 +42,7 @@ final class BookmarkSearchResultsProvider } String _$bookmarkSearchResultsHash() => - r'49ebd21a137bc09bbd67b692aacb2554b8364564'; + r'1708ae3df94113ab370086af38f9cc150d46d3c5'; abstract class _$BookmarkSearchResults extends $Notifier> { List build(); diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.g.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.g.dart index 66b353c0..213f7155 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.g.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.g.dart @@ -42,7 +42,7 @@ final class BookmarksRepositoryProvider } String _$bookmarksRepositoryHash() => - r'bf95d30f21773e931b12fd85d03d072d88d5b715'; + r'20f005705d6235289f252bd9b17eb5f2227287ac'; abstract class _$BookmarksRepository extends $Notifier { int build(); diff --git a/apps/weblibre/lib/features/geckoview/features/browser/presentation/controllers/tab_view_controllers.g.dart b/apps/weblibre/lib/features/geckoview/features/browser/presentation/controllers/tab_view_controllers.g.dart index 83933afa..ff5d2ce1 100644 --- a/apps/weblibre/lib/features/geckoview/features/browser/presentation/controllers/tab_view_controllers.g.dart +++ b/apps/weblibre/lib/features/geckoview/features/browser/presentation/controllers/tab_view_controllers.g.dart @@ -42,7 +42,7 @@ final class TabsViewModeControllerProvider } String _$tabsViewModeControllerHash() => - r'e013b174218fcad81981f7d939cf161c3b002adc'; + r'f1da070a3cd00dbdc75f36120e202fa4f822fd5b'; abstract class _$TabsViewModeController extends $Notifier { TabsViewMode build(); @@ -97,7 +97,7 @@ final class TabViewFilterControllerProvider } String _$tabViewFilterControllerHash() => - r'6f5d42761765c0135bf40953c574c17d141ffab2'; + r'bbed4900c337629061550b6595d0fa0e0d52362d'; @JsonPersist() abstract class _$TabViewFilterControllerBase diff --git a/apps/weblibre/lib/features/geckoview/features/history/domain/providers.g.dart b/apps/weblibre/lib/features/geckoview/features/history/domain/providers.g.dart index dcfb5f0d..7883b4b2 100644 --- a/apps/weblibre/lib/features/geckoview/features/history/domain/providers.g.dart +++ b/apps/weblibre/lib/features/geckoview/features/history/domain/providers.g.dart @@ -44,7 +44,7 @@ final class HistoryVisitsFilterProvider } String _$historyVisitsFilterHash() => - r'4c1530cfd2d94b1cdbb04fbe2df8037cb211a668'; + r'dca9d17bcaa5c5db2757edf59a8a23e2aebe8c99'; @JsonPersist() abstract class _$HistoryVisitsFilterBase @@ -101,7 +101,7 @@ final class HistoryDownloadsFilterProvider } String _$historyDownloadsFilterHash() => - r'b44de5aced7dadba361fddf69b8462ff92252a99'; + r'30514069187520cf003759ba3f406a0adf9c5620'; @JsonPersist() abstract class _$HistoryDownloadsFilterBase diff --git a/apps/weblibre/lib/features/geckoview/features/search/domain/providers/search_module_order.g.dart b/apps/weblibre/lib/features/geckoview/features/search/domain/providers/search_module_order.g.dart index 254aee05..a7b2bf8f 100644 --- a/apps/weblibre/lib/features/geckoview/features/search/domain/providers/search_module_order.g.dart +++ b/apps/weblibre/lib/features/geckoview/features/search/domain/providers/search_module_order.g.dart @@ -94,7 +94,7 @@ final class SearchModuleOrderProvider } } -String _$searchModuleOrderHash() => r'fde46e0a0998152340801cb323335a2f4a0f3557'; +String _$searchModuleOrderHash() => r'153cebf32e0bf7b42c4eaaa113b0ca5f36851b5f'; final class SearchModuleOrderFamily extends $Family with diff --git a/apps/weblibre/lib/features/geckoview/features/tabs/domain/providers/selected_container.g.dart b/apps/weblibre/lib/features/geckoview/features/tabs/domain/providers/selected_container.g.dart index 7124cf22..e40c570b 100644 --- a/apps/weblibre/lib/features/geckoview/features/tabs/domain/providers/selected_container.g.dart +++ b/apps/weblibre/lib/features/geckoview/features/tabs/domain/providers/selected_container.g.dart @@ -41,7 +41,7 @@ final class SelectedContainerProvider } } -String _$selectedContainerHash() => r'3c9ab093bce7cd3b84e0318095b1ada25bdf8a65'; +String _$selectedContainerHash() => r'29ca2ed41d5f9029bdd3345334717f3ca062db0d'; abstract class _$SelectedContainer extends $Notifier { String? build(); diff --git a/apps/weblibre/lib/features/search_credits/domain/repositories/web_search_settings.g.dart b/apps/weblibre/lib/features/search_credits/domain/repositories/web_search_settings.g.dart index a51771ce..6876de2c 100644 --- a/apps/weblibre/lib/features/search_credits/domain/repositories/web_search_settings.g.dart +++ b/apps/weblibre/lib/features/search_credits/domain/repositories/web_search_settings.g.dart @@ -45,7 +45,7 @@ final class WebSearchSettingsControllerProvider } String _$webSearchSettingsControllerHash() => - r'f21a6203fdb8b21c28b0ddd23f1b48768673138e'; + r'969a3998abc34280b34de2b4789645a4d68c0c77'; @JsonPersist() abstract class _$WebSearchSettingsControllerBase diff --git a/apps/weblibre/lib/features/small_web/presentation/controllers/small_web_session_controller.g.dart b/apps/weblibre/lib/features/small_web/presentation/controllers/small_web_session_controller.g.dart index ca1691b6..182f492f 100644 --- a/apps/weblibre/lib/features/small_web/presentation/controllers/small_web_session_controller.g.dart +++ b/apps/weblibre/lib/features/small_web/presentation/controllers/small_web_session_controller.g.dart @@ -224,7 +224,7 @@ final class SmallWebSessionControllerProvider } String _$smallWebSessionControllerHash() => - r'ee57d24b33b5a7dffe668fe3ddd2b77d84f58eae'; + r'd80b9c002bf28a024373b0a6ee036bddff4fe8e0'; abstract class _$SmallWebSessionController extends $Notifier> { diff --git a/apps/weblibre/lib/features/user/domain/providers/backup_directory.g.dart b/apps/weblibre/lib/features/user/domain/providers/backup_directory.g.dart index b369a263..9d26ca19 100644 --- a/apps/weblibre/lib/features/user/domain/providers/backup_directory.g.dart +++ b/apps/weblibre/lib/features/user/domain/providers/backup_directory.g.dart @@ -42,7 +42,7 @@ final class BackupDirectoryUriProvider } String _$backupDirectoryUriHash() => - r'4e5f4e7bde90b2a92c559afe8774ed5ee503277d'; + r'966118c9ec159615de5f37527fa8da4ca1e713d1'; abstract class _$BackupDirectoryUri extends $Notifier { Uri? build(); diff --git a/apps/weblibre/lib/features/user/domain/repositories/engine_settings.dart b/apps/weblibre/lib/features/user/domain/repositories/engine_settings.dart index 1443f9a0..491142d5 100644 --- a/apps/weblibre/lib/features/user/domain/repositories/engine_settings.dart +++ b/apps/weblibre/lib/features/user/domain/repositories/engine_settings.dart @@ -214,8 +214,10 @@ class EngineSettingsRepository extends _$EngineSettingsRepository { DriftSqlType.bool, db.typeMapping, ), - 'forceUserScalableContent': settings['forceUserScalableContent'] - ?.readAs(DriftSqlType.bool, db.typeMapping), + 'forceUserScalableContent': settings['forceUserScalableContent']?.readAs( + DriftSqlType.bool, + db.typeMapping, + ), // Process Isolation Settings 'fissionEnabled': settings['fissionEnabled']?.readAs( DriftSqlType.bool, diff --git a/packages/flutter_mozilla_components/lib/src/pigeons/gecko.g.dart b/packages/flutter_mozilla_components/lib/src/pigeons/gecko.g.dart index 88bcb418..af4198ef 100644 --- a/packages/flutter_mozilla_components/lib/src/pigeons/gecko.g.dart +++ b/packages/flutter_mozilla_components/lib/src/pigeons/gecko.g.dart @@ -10,9 +10,9 @@ import 'package:flutter/services.dart'; import 'package:meta/meta.dart' show immutable, protected, visibleForTesting; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -34,8 +34,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -44,6 +47,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -56,8 +60,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -106,13 +111,14 @@ int _deepHash(Object? value) { return value.hashCode; } - /// Indicates what location the tabs should be restored at enum RestoreLocation { /// Restore tabs at the beginning of the tab list beginning, + /// Restore tabs at the end of the tab list end, + /// Restore tabs at a specific index in the tab list atIndex, } @@ -133,80 +139,71 @@ enum IconType { /// Supported sizes. /// /// We are trying to limit the supported sizes in order to optimize our caching strategy. -enum IconSize { - defaultSize, - launcher, - launcherAdaptive, -} +enum IconSize { defaultSize, launcher, launcherAdaptive } /// The source of an [Icon]. enum IconSource { /// This icon was generated. generator, + /// This icon was downloaded. download, + /// This icon was inlined in the document. inline, + /// This icon was loaded from an in-memory cache. memory, + /// This icon was loaded from a disk cache. disk, } -enum CookieSameSiteStatus { - noRestriction, - lax, - strict, - unspecified, -} +enum CookieSameSiteStatus { noRestriction, lax, strict, unspecified } enum VisitType { /// The user followed a link and got a new toplevel window. link, + /// The user typed the page's URL in the URL bar or selected it from /// URL bar autocomplete results, clicked on it from a history query /// (from the History sidebar, History menu, or history query in the /// personal toolbar or Places organizer. typed, + /// The user followed a bookmark to get to the page. bookmark, + /// Some inner content is loaded. This is true of all images on a /// page, and the contents of the iframe. It is also true of any /// content in a frame if the user did not explicitly follow a link /// to get there. embed, + /// Set when the transition was a permanent redirect. redirectPermanent, + /// Set when the transition was a temporary redirect. redirectTemporary, + /// Set when the transition is a download. download, + /// The user followed a link and got a visit in a frame. framedLink, + /// The user reloaded a page. reload, } -enum FrecencyThresholdOption { - none, - skipOneTimePages, -} +enum FrecencyThresholdOption { none, skipOneTimePages } /// Document type associated with a [HistoryMetadata] record. -enum DocumentType { - regular, - media, -} +enum DocumentType { regular, media } -enum SelectionPattern { - phone, - email, -} +enum SelectionPattern { phone, email } -enum WebExtensionActionType { - browser, - page, -} +enum WebExtensionActionType { browser, page } enum AddonDisabledReason { unsupported, @@ -217,11 +214,7 @@ enum AddonDisabledReason { softBlocked, } -enum AddonIncognito { - spanning, - split, - notAllowed, -} +enum AddonIncognito { spanning, split, notAllowed } enum AddonUpdateStatus { notInstalled, @@ -230,74 +223,47 @@ enum AddonUpdateStatus { error, } -enum AddonStoreApp { - android, - firefox, -} +enum AddonStoreApp { android, firefox } -enum AddonStorePromoted { - none, - recommended, - line, -} +enum AddonStorePromoted { none, recommended, line } -enum GeckoSuggestionType { - session, - clipboard, - history, -} +enum GeckoSuggestionType { session, clipboard, history } -enum TrackingProtectionPolicy { - none, - recommended, - strict, - custom, -} +enum TrackingProtectionPolicy { none, recommended, strict, custom } -enum HttpsOnlyMode { - disabled, - privateOnly, - enabled, -} +enum HttpsOnlyMode { disabled, privateOnly, enabled } -enum QueryParameterStripping { - disabled, - privateOnly, - enabled, -} +enum QueryParameterStripping { disabled, privateOnly, enabled } enum BounceTrackingProtectionMode { /// Fully disabled. disabled, + /// Fully enabled. enabled, + /// Disabled, but collects user interaction data. Use this mode as the /// "disabled" state when the feature can be toggled on and off, e.g. via /// preferences. enabledStandby, + /// Feature enabled, but tracker purging is only simulated. Used for /// testing and telemetry collection. enabledDryRun, } -enum ColorScheme { - system, - light, - dark, -} +enum ColorScheme { system, light, dark } -enum CookieBannerHandlingMode { - disabled, - rejectAll, - rejectOrAcceptAll, -} +enum CookieBannerHandlingMode { disabled, rejectAll, rejectOrAcceptAll } /// App links behavior mode - controls how external app links are handled enum AppLinksMode { /// Always open links in their native apps without prompting always, + /// Prompt user before opening in app (with "Always open" checkbox) ask, + /// Never open links in external apps, always use browser never, } @@ -314,15 +280,19 @@ enum CustomCookiePolicy { /// Total Cookie Protection - Dynamic First-Party Isolation (dFPI) /// Most private option, isolates cookies per site totalProtection, + /// Block cross-site and social media tracker cookies /// Allows most cookies but blocks tracking cookies crossSiteTrackers, + /// Block cookies from sites you haven't visited /// Balances privacy with functionality unvisited, + /// Block all third-party cookies /// Only allows first-party cookies thirdParty, + /// Block all cookies (may break many sites) allCookies, } @@ -331,108 +301,77 @@ enum CustomCookiePolicy { enum TrackingScope { /// Apply to all browsing (normal + private) all, + /// Apply only to private browsing tabs privateOnly, } -enum DohSettingsMode { - geckoDefault, - increased, - max, - off, -} +enum DohSettingsMode { geckoDefault, increased, max, off } /// Status that represents every state that a download can be in. enum DownloadStatus { /// Indicates that the download is in the first state after creation but not yet [DOWNLOADING]. initiated, + /// Indicates that an [INITIATED] download is now actively being downloaded. downloading, + /// Indicates that the download that has been [DOWNLOADING] has been paused. paused, + /// Indicates that the download that has been [DOWNLOADING] has been cancelled. cancelled, + /// Indicates that the download that has been [DOWNLOADING] has moved to failed because /// something unexpected has happened. failed, + /// Indicates that the [DOWNLOADING] download has been completed. completed, } -enum LogLevel { - debug, - info, - warn, - error, -} +enum LogLevel { debug, info, warn, error } -enum SyncEngineValue { - history, - bookmarks, - tabs, -} +enum SyncEngineValue { history, bookmarks, tabs } /// Type of ML model operation -enum MlProgressType { - downloading, - loadingFromCache, - runningInference, -} +enum MlProgressType { downloading, loadingFromCache, runningInference } /// Status of the ML operation -enum MlProgressStatus { - initiate, - sizeEstimate, - inProgress, - done, -} +enum MlProgressStatus { initiate, sizeEstimate, inProgress, done } /// Types of browsing data that can be cleared enum ClearDataType { /// Authentication sessions authSessions, + /// All site data (cookies, storage, etc.) /// WARNING: If this is set it already includes cookies and allCaches. Passing the additionally will lead to issues allSiteData, + /// Cookies only onlyCookies, + /// Cache only onlyCaches, } -enum GeckoFetchMethod { - get, - head, - post, - put, - delete, - connect, - options, - trace, -} +enum GeckoFetchMethod { get, head, post, put, delete, connect, options, trace } -enum GeckoFetchRedircet { - follow, - manual, -} +enum GeckoFetchRedircet { follow, manual } -enum GeckoFetchCookiePolicy { - include, - omit, -} +enum GeckoFetchCookiePolicy { include, omit } -enum BookmarkNodeType { - item, - folder, - separator, -} +enum BookmarkNodeType { item, folder, separator } /// Permission status for a site permission enum SitePermissionStatus { /// Permission has been granted allowed, + /// Permission has been denied blocked, + /// No decision has been made yet (ask to allow) noDecision, } @@ -441,42 +380,39 @@ enum SitePermissionStatus { enum AutoplayStatus { /// Allow all autoplay (audible and inaudible) allowed, + /// Block all autoplay blocked, + /// Block audible autoplay only (allow inaudible) blockAudible, + /// Allow autoplay on WiFi only allowOnWifi, } -enum NativeAppLinkRuleDecision { - alwaysOpen, - neverOpen, -} +enum NativeAppLinkRuleDecision { alwaysOpen, neverOpen } /// Which surface owns a pending prompt (§2.6). Fixed at creation, never transfers. -enum AppLinkPromptOwner { - flutterBrowser, - nativeExternal, -} +enum AppLinkPromptOwner { flutterBrowser, nativeExternal } /// User decision on a pending prompt (§2.6). -enum AppLinkDecision { - open, - cancel, - dismiss, -} +enum AppLinkDecision { open, cancel, dismiss } /// Lifecycle state of the selected UnifiedPush distributor. enum PushDistributorStatus { /// No distributor app is installed on the device. noneAvailable, + /// Distributors are installed but the user has not chosen one. notSelected, + /// A distributor is chosen but has not acknowledged our registration yet. pending, + /// A distributor is chosen and has acknowledged our registration. ready, + /// A distributor was chosen previously but is no longer installed. Web push /// is dead in this state and there is no fallback transport. unavailable, @@ -487,26 +423,21 @@ enum PushDistributorStatus { /// @property downloadModel If the necessary models should be downloaded on request. If false, then /// the translation will not complete and throw an exception if the models are not already available. class TranslationOptions { - TranslationOptions({ - required this.downloadModel, - }); + TranslationOptions({required this.downloadModel}); bool downloadModel; List _toList() { - return [ - downloadModel, - ]; + return [downloadModel]; } Object encode() { - return _toList(); } + return _toList(); + } static TranslationOptions decode(Object result) { result as List; - return TranslationOptions( - downloadModel: result[0]! as bool, - ); + return TranslationOptions(downloadModel: result[0]! as bool); } @override @@ -533,24 +464,19 @@ class TranslationOptions { /// A language supported by the translation engine. class TranslationLanguage { - TranslationLanguage({ - required this.code, - required this.localizedDisplayName, - }); + TranslationLanguage({required this.code, required this.localizedDisplayName}); String code; String localizedDisplayName; List _toList() { - return [ - code, - localizedDisplayName, - ]; + return [code, localizedDisplayName]; } Object encode() { - return _toList(); } + return _toList(); + } static TranslationLanguage decode(Object result) { result as List; @@ -569,7 +495,8 @@ class TranslationLanguage { if (identical(this, other)) { return true; } - return _deepEquals(code, other.code) && _deepEquals(localizedDisplayName, other.localizedDisplayName); + return _deepEquals(code, other.code) && + _deepEquals(localizedDisplayName, other.localizedDisplayName); } @override @@ -605,7 +532,8 @@ class TranslationDetectedLanguages { } Object encode() { - return _toList(); } + return _toList(); + } static TranslationDetectedLanguages decode(Object result) { result as List; @@ -619,13 +547,16 @@ class TranslationDetectedLanguages { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! TranslationDetectedLanguages || other.runtimeType != runtimeType) { + if (other is! TranslationDetectedLanguages || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(documentLangTag, other.documentLangTag) && _deepEquals(supportedDocumentLang, other.supportedDocumentLang) && _deepEquals(userPreferredLangTag, other.userPreferredLangTag); + return _deepEquals(documentLangTag, other.documentLangTag) && + _deepEquals(supportedDocumentLang, other.supportedDocumentLang) && + _deepEquals(userPreferredLangTag, other.userPreferredLangTag); } @override @@ -640,24 +571,19 @@ class TranslationDetectedLanguages { /// A from/to language pair for translation. class TranslationPair { - TranslationPair({ - required this.fromLanguage, - required this.toLanguage, - }); + TranslationPair({required this.fromLanguage, required this.toLanguage}); String fromLanguage; String toLanguage; List _toList() { - return [ - fromLanguage, - toLanguage, - ]; + return [fromLanguage, toLanguage]; } Object encode() { - return _toList(); } + return _toList(); + } static TranslationPair decode(Object result) { result as List; @@ -676,7 +602,8 @@ class TranslationPair { if (identical(this, other)) { return true; } - return _deepEquals(fromLanguage, other.fromLanguage) && _deepEquals(toLanguage, other.toLanguage); + return _deepEquals(fromLanguage, other.fromLanguage) && + _deepEquals(toLanguage, other.toLanguage); } @override @@ -704,21 +631,19 @@ class TranslationEngineStateData { List? toLanguages; List _toList() { - return [ - isEngineSupported, - fromLanguages, - toLanguages, - ]; + return [isEngineSupported, fromLanguages, toLanguages]; } Object encode() { - return _toList(); } + return _toList(); + } static TranslationEngineStateData decode(Object result) { result as List; return TranslationEngineStateData( isEngineSupported: result[0] as bool?, - fromLanguages: (result[1] as List?)?.cast(), + fromLanguages: (result[1] as List?) + ?.cast(), toLanguages: (result[2] as List?)?.cast(), ); } @@ -726,13 +651,16 @@ class TranslationEngineStateData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! TranslationEngineStateData || other.runtimeType != runtimeType) { + if (other is! TranslationEngineStateData || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(isEngineSupported, other.isEngineSupported) && _deepEquals(fromLanguages, other.fromLanguages) && _deepEquals(toLanguages, other.toLanguages); + return _deepEquals(isEngineSupported, other.isEngineSupported) && + _deepEquals(fromLanguages, other.fromLanguages) && + _deepEquals(toLanguages, other.toLanguages); } @override @@ -800,7 +728,8 @@ class TabTranslationStateData { } Object encode() { - return _toList(); } + return _toList(); + } static TabTranslationStateData decode(Object result) { result as List; @@ -828,7 +757,20 @@ class TabTranslationStateData { if (identical(this, other)) { return true; } - return _deepEquals(tabId, other.tabId) && _deepEquals(isTranslated, other.isTranslated) && _deepEquals(isTranslateProcessing, other.isTranslateProcessing) && _deepEquals(isOfferTranslate, other.isOfferTranslate) && _deepEquals(isExpectedTranslate, other.isExpectedTranslate) && _deepEquals(detectedLanguageCode, other.detectedLanguageCode) && _deepEquals(userPreferredLanguageCode, other.userPreferredLanguageCode) && _deepEquals(requestedFromLanguage, other.requestedFromLanguage) && _deepEquals(requestedToLanguage, other.requestedToLanguage) && _deepEquals(translationErrorName, other.translationErrorName) && _deepEquals(displayError, other.displayError); + return _deepEquals(tabId, other.tabId) && + _deepEquals(isTranslated, other.isTranslated) && + _deepEquals(isTranslateProcessing, other.isTranslateProcessing) && + _deepEquals(isOfferTranslate, other.isOfferTranslate) && + _deepEquals(isExpectedTranslate, other.isExpectedTranslate) && + _deepEquals(detectedLanguageCode, other.detectedLanguageCode) && + _deepEquals( + userPreferredLanguageCode, + other.userPreferredLanguageCode, + ) && + _deepEquals(requestedFromLanguage, other.requestedFromLanguage) && + _deepEquals(requestedToLanguage, other.requestedToLanguage) && + _deepEquals(translationErrorName, other.translationErrorName) && + _deepEquals(displayError, other.displayError); } @override @@ -891,7 +833,8 @@ class ReaderState { } Object encode() { - return _toList(); } + return _toList(); + } static ReaderState decode(Object result) { result as List; @@ -915,7 +858,13 @@ class ReaderState { if (identical(this, other)) { return true; } - return _deepEquals(readerable, other.readerable) && _deepEquals(active, other.active) && _deepEquals(checkRequired, other.checkRequired) && _deepEquals(connectRequired, other.connectRequired) && _deepEquals(baseUrl, other.baseUrl) && _deepEquals(activeUrl, other.activeUrl) && _deepEquals(scrollY, other.scrollY); + return _deepEquals(readerable, other.readerable) && + _deepEquals(active, other.active) && + _deepEquals(checkRequired, other.checkRequired) && + _deepEquals(connectRequired, other.connectRequired) && + _deepEquals(baseUrl, other.baseUrl) && + _deepEquals(activeUrl, other.activeUrl) && + _deepEquals(scrollY, other.scrollY); } @override @@ -975,7 +924,8 @@ class AddTabParams { } Object encode() { - return _toList(); } + return _toList(); + } static AddTabParams decode(Object result) { result as List; @@ -988,7 +938,8 @@ class AddTabParams { source: result[5]! as SourceValue, private: result[6]! as bool, historyMetadata: result[7] as HistoryMetadataKey?, - additionalHeaders: (result[8] as Map?)?.cast(), + additionalHeaders: (result[8] as Map?) + ?.cast(), ); } @@ -1001,7 +952,15 @@ class AddTabParams { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(startLoading, other.startLoading) && _deepEquals(parentId, other.parentId) && _deepEquals(flags, other.flags) && _deepEquals(contextId, other.contextId) && _deepEquals(source, other.source) && _deepEquals(private, other.private) && _deepEquals(historyMetadata, other.historyMetadata) && _deepEquals(additionalHeaders, other.additionalHeaders); + return _deepEquals(url, other.url) && + _deepEquals(startLoading, other.startLoading) && + _deepEquals(parentId, other.parentId) && + _deepEquals(flags, other.flags) && + _deepEquals(contextId, other.contextId) && + _deepEquals(source, other.source) && + _deepEquals(private, other.private) && + _deepEquals(historyMetadata, other.historyMetadata) && + _deepEquals(additionalHeaders, other.additionalHeaders); } @override @@ -1041,15 +1000,12 @@ class LastMediaAccessState { bool mediaSessionActive; List _toList() { - return [ - lastMediaUrl, - lastMediaAccess, - mediaSessionActive, - ]; + return [lastMediaUrl, lastMediaAccess, mediaSessionActive]; } Object encode() { - return _toList(); } + return _toList(); + } static LastMediaAccessState decode(Object result) { result as List; @@ -1069,7 +1025,9 @@ class LastMediaAccessState { if (identical(this, other)) { return true; } - return _deepEquals(lastMediaUrl, other.lastMediaUrl) && _deepEquals(lastMediaAccess, other.lastMediaAccess) && _deepEquals(mediaSessionActive, other.mediaSessionActive); + return _deepEquals(lastMediaUrl, other.lastMediaUrl) && + _deepEquals(lastMediaAccess, other.lastMediaAccess) && + _deepEquals(mediaSessionActive, other.mediaSessionActive); } @override @@ -1087,11 +1045,7 @@ class LastMediaAccessState { /// created, depending on the de-bouncing logic of the underlying storage i.e. recording history /// metadata observations with the exact same values may be combined into a single record. class HistoryMetadataKey { - HistoryMetadataKey({ - required this.url, - this.searchTerm, - this.referrerUrl, - }); + HistoryMetadataKey({required this.url, this.searchTerm, this.referrerUrl}); /// A url of the page. String url; @@ -1106,15 +1060,12 @@ class HistoryMetadataKey { String? referrerUrl; List _toList() { - return [ - url, - searchTerm, - referrerUrl, - ]; + return [url, searchTerm, referrerUrl]; } Object encode() { - return _toList(); } + return _toList(); + } static HistoryMetadataKey decode(Object result) { result as List; @@ -1134,7 +1085,9 @@ class HistoryMetadataKey { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(searchTerm, other.searchTerm) && _deepEquals(referrerUrl, other.referrerUrl); + return _deepEquals(url, other.url) && + _deepEquals(searchTerm, other.searchTerm) && + _deepEquals(referrerUrl, other.referrerUrl); } @override @@ -1148,26 +1101,21 @@ class HistoryMetadataKey { } class PackageCategoryValue { - PackageCategoryValue({ - required this.value, - }); + PackageCategoryValue({required this.value}); int value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static PackageCategoryValue decode(Object result) { result as List; - return PackageCategoryValue( - value: result[0]! as int, - ); + return PackageCategoryValue(value: result[0]! as int); } @override @@ -1194,10 +1142,7 @@ class PackageCategoryValue { /// Describes an external package. class ExternalPackage { - ExternalPackage({ - required this.packageId, - required this.category, - }); + ExternalPackage({required this.packageId, required this.category}); /// An Android package id. String packageId; @@ -1206,14 +1151,12 @@ class ExternalPackage { PackageCategoryValue category; List _toList() { - return [ - packageId, - category, - ]; + return [packageId, category]; } Object encode() { - return _toList(); } + return _toList(); + } static ExternalPackage decode(Object result) { result as List; @@ -1232,7 +1175,8 @@ class ExternalPackage { if (identical(this, other)) { return true; } - return _deepEquals(packageId, other.packageId) && _deepEquals(category, other.category); + return _deepEquals(packageId, other.packageId) && + _deepEquals(category, other.category); } @override @@ -1246,26 +1190,21 @@ class ExternalPackage { } class LoadUrlFlagsValue { - LoadUrlFlagsValue({ - required this.value, - }); + LoadUrlFlagsValue({required this.value}); int value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static LoadUrlFlagsValue decode(Object result) { result as List; - return LoadUrlFlagsValue( - value: result[0]! as int, - ); + return LoadUrlFlagsValue(value: result[0]! as int); } @override @@ -1291,24 +1230,19 @@ class LoadUrlFlagsValue { } class SourceValue { - SourceValue({ - required this.id, - this.caller, - }); + SourceValue({required this.id, this.caller}); int id; ExternalPackage? caller; List _toList() { - return [ - id, - caller, - ]; + return [id, caller]; } Object encode() { - return _toList(); } + return _toList(); + } static SourceValue decode(Object result) { result as List; @@ -1432,7 +1366,8 @@ class TabState { } Object encode() { - return _toList(); } + return _toList(); + } static TabState decode(Object result) { result as List; @@ -1464,7 +1399,21 @@ class TabState { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(url, other.url) && _deepEquals(parentId, other.parentId) && _deepEquals(title, other.title) && _deepEquals(searchTerm, other.searchTerm) && _deepEquals(contextId, other.contextId) && _deepEquals(readerState, other.readerState) && _deepEquals(lastAccess, other.lastAccess) && _deepEquals(createdAt, other.createdAt) && _deepEquals(lastMediaAccessState, other.lastMediaAccessState) && _deepEquals(private, other.private) && _deepEquals(historyMetadata, other.historyMetadata) && _deepEquals(source, other.source) && _deepEquals(index, other.index) && _deepEquals(hasFormData, other.hasFormData); + return _deepEquals(id, other.id) && + _deepEquals(url, other.url) && + _deepEquals(parentId, other.parentId) && + _deepEquals(title, other.title) && + _deepEquals(searchTerm, other.searchTerm) && + _deepEquals(contextId, other.contextId) && + _deepEquals(readerState, other.readerState) && + _deepEquals(lastAccess, other.lastAccess) && + _deepEquals(createdAt, other.createdAt) && + _deepEquals(lastMediaAccessState, other.lastMediaAccessState) && + _deepEquals(private, other.private) && + _deepEquals(historyMetadata, other.historyMetadata) && + _deepEquals(source, other.source) && + _deepEquals(index, other.index) && + _deepEquals(hasFormData, other.hasFormData); } @override @@ -1479,10 +1428,7 @@ class TabState { /// A recoverable version of [TabState]. class RecoverableTab { - RecoverableTab({ - this.engineSessionStateJson, - required this.state, - }); + RecoverableTab({this.engineSessionStateJson, required this.state}); /// The [EngineSessionState] needed for restoring the previous state of this tab. String? engineSessionStateJson; @@ -1491,14 +1437,12 @@ class RecoverableTab { TabState state; List _toList() { - return [ - engineSessionStateJson, - state, - ]; + return [engineSessionStateJson, state]; } Object encode() { - return _toList(); } + return _toList(); + } static RecoverableTab decode(Object result) { result as List; @@ -1517,7 +1461,8 @@ class RecoverableTab { if (identical(this, other)) { return true; } - return _deepEquals(engineSessionStateJson, other.engineSessionStateJson) && _deepEquals(state, other.state); + return _deepEquals(engineSessionStateJson, other.engineSessionStateJson) && + _deepEquals(state, other.state); } @override @@ -1554,18 +1499,12 @@ class IconRequest { bool waitOnNetworkLoad; List _toList() { - return [ - url, - size, - resources, - color, - isPrivate, - waitOnNetworkLoad, - ]; + return [url, size, resources, color, isPrivate, waitOnNetworkLoad]; } Object encode() { - return _toList(); } + return _toList(); + } static IconRequest decode(Object result) { result as List; @@ -1588,7 +1527,12 @@ class IconRequest { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(size, other.size) && _deepEquals(resources, other.resources) && _deepEquals(color, other.color) && _deepEquals(isPrivate, other.isPrivate) && _deepEquals(waitOnNetworkLoad, other.waitOnNetworkLoad); + return _deepEquals(url, other.url) && + _deepEquals(size, other.size) && + _deepEquals(resources, other.resources) && + _deepEquals(color, other.color) && + _deepEquals(isPrivate, other.isPrivate) && + _deepEquals(waitOnNetworkLoad, other.waitOnNetworkLoad); } @override @@ -1602,31 +1546,23 @@ class IconRequest { } class ResourceSize { - ResourceSize({ - required this.height, - required this.width, - }); + ResourceSize({required this.height, required this.width}); int height; int width; List _toList() { - return [ - height, - width, - ]; + return [height, width]; } Object encode() { - return _toList(); } + return _toList(); + } static ResourceSize decode(Object result) { result as List; - return ResourceSize( - height: result[0]! as int, - width: result[1]! as int, - ); + return ResourceSize(height: result[0]! as int, width: result[1]! as int); } @override @@ -1672,17 +1608,12 @@ class Resource { bool maskable; List _toList() { - return [ - url, - type, - sizes, - mimeType, - maskable, - ]; + return [url, type, sizes, mimeType, maskable]; } Object encode() { - return _toList(); } + return _toList(); + } static Resource decode(Object result) { result as List; @@ -1704,7 +1635,11 @@ class Resource { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(type, other.type) && _deepEquals(sizes, other.sizes) && _deepEquals(mimeType, other.mimeType) && _deepEquals(maskable, other.maskable); + return _deepEquals(url, other.url) && + _deepEquals(type, other.type) && + _deepEquals(sizes, other.sizes) && + _deepEquals(mimeType, other.mimeType) && + _deepEquals(maskable, other.maskable); } @override @@ -1739,16 +1674,12 @@ class IconResult { bool maskable; List _toList() { - return [ - image, - color, - source, - maskable, - ]; + return [image, color, source, maskable]; } Object encode() { - return _toList(); } + return _toList(); + } static IconResult decode(Object result) { result as List; @@ -1769,7 +1700,10 @@ class IconResult { if (identical(this, other)) { return true; } - return _deepEquals(image, other.image) && _deepEquals(color, other.color) && _deepEquals(source, other.source) && _deepEquals(maskable, other.maskable); + return _deepEquals(image, other.image) && + _deepEquals(color, other.color) && + _deepEquals(source, other.source) && + _deepEquals(maskable, other.maskable); } @override @@ -1783,26 +1717,21 @@ class IconResult { } class CookiePartitionKey { - CookiePartitionKey({ - required this.topLevelSite, - }); + CookiePartitionKey({required this.topLevelSite}); String topLevelSite; List _toList() { - return [ - topLevelSite, - ]; + return [topLevelSite]; } Object encode() { - return _toList(); } + return _toList(); + } static CookiePartitionKey decode(Object result) { result as List; - return CookiePartitionKey( - topLevelSite: result[0]! as String, - ); + return CookiePartitionKey(topLevelSite: result[0]! as String); } @override @@ -1889,7 +1818,8 @@ class Cookie { } Object encode() { - return _toList(); } + return _toList(); + } static Cookie decode(Object result) { result as List; @@ -1919,7 +1849,19 @@ class Cookie { if (identical(this, other)) { return true; } - return _deepEquals(domain, other.domain) && _deepEquals(expirationDate, other.expirationDate) && _deepEquals(firstPartyDomain, other.firstPartyDomain) && _deepEquals(hostOnly, other.hostOnly) && _deepEquals(httpOnly, other.httpOnly) && _deepEquals(name, other.name) && _deepEquals(partitionKey, other.partitionKey) && _deepEquals(path, other.path) && _deepEquals(secure, other.secure) && _deepEquals(session, other.session) && _deepEquals(sameSite, other.sameSite) && _deepEquals(storeId, other.storeId) && _deepEquals(value, other.value); + return _deepEquals(domain, other.domain) && + _deepEquals(expirationDate, other.expirationDate) && + _deepEquals(firstPartyDomain, other.firstPartyDomain) && + _deepEquals(hostOnly, other.hostOnly) && + _deepEquals(httpOnly, other.httpOnly) && + _deepEquals(name, other.name) && + _deepEquals(partitionKey, other.partitionKey) && + _deepEquals(path, other.path) && + _deepEquals(secure, other.secure) && + _deepEquals(session, other.session) && + _deepEquals(sameSite, other.sameSite) && + _deepEquals(storeId, other.storeId) && + _deepEquals(value, other.value); } @override @@ -1970,7 +1912,8 @@ class VisitInfo { } Object encode() { - return _toList(); } + return _toList(); + } static VisitInfo decode(Object result) { result as List; @@ -1994,7 +1937,13 @@ class VisitInfo { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(title, other.title) && _deepEquals(visitTime, other.visitTime) && _deepEquals(visitType, other.visitType) && _deepEquals(previewImageUrl, other.previewImageUrl) && _deepEquals(isRemote, other.isRemote) && _deepEquals(contentId, other.contentId); + return _deepEquals(url, other.url) && + _deepEquals(title, other.title) && + _deepEquals(visitTime, other.visitTime) && + _deepEquals(visitType, other.visitType) && + _deepEquals(previewImageUrl, other.previewImageUrl) && + _deepEquals(isRemote, other.isRemote) && + _deepEquals(contentId, other.contentId); } @override @@ -2008,24 +1957,19 @@ class VisitInfo { } class HistoryHighlightWeights { - HistoryHighlightWeights({ - required this.viewTime, - required this.frequency, - }); + HistoryHighlightWeights({required this.viewTime, required this.frequency}); double viewTime; double frequency; List _toList() { - return [ - viewTime, - frequency, - ]; + return [viewTime, frequency]; } Object encode() { - return _toList(); } + return _toList(); + } static HistoryHighlightWeights decode(Object result) { result as List; @@ -2044,7 +1988,8 @@ class HistoryHighlightWeights { if (identical(this, other)) { return true; } - return _deepEquals(viewTime, other.viewTime) && _deepEquals(frequency, other.frequency); + return _deepEquals(viewTime, other.viewTime) && + _deepEquals(frequency, other.frequency); } @override @@ -2077,17 +2022,12 @@ class HistoryHighlight { String? previewImageUrl; List _toList() { - return [ - score, - placeId, - url, - title, - previewImageUrl, - ]; + return [score, placeId, url, title, previewImageUrl]; } Object encode() { - return _toList(); } + return _toList(); + } static HistoryHighlight decode(Object result) { result as List; @@ -2109,7 +2049,11 @@ class HistoryHighlight { if (identical(this, other)) { return true; } - return _deepEquals(score, other.score) && _deepEquals(placeId, other.placeId) && _deepEquals(url, other.url) && _deepEquals(title, other.title) && _deepEquals(previewImageUrl, other.previewImageUrl); + return _deepEquals(score, other.score) && + _deepEquals(placeId, other.placeId) && + _deepEquals(url, other.url) && + _deepEquals(title, other.title) && + _deepEquals(previewImageUrl, other.previewImageUrl); } @override @@ -2123,24 +2067,19 @@ class HistoryHighlight { } class TopFrecentSiteInfo { - TopFrecentSiteInfo({ - required this.url, - this.title, - }); + TopFrecentSiteInfo({required this.url, this.title}); String url; String? title; List _toList() { - return [ - url, - title, - ]; + return [url, title]; } Object encode() { - return _toList(); } + return _toList(); + } static TopFrecentSiteInfo decode(Object result) { result as List; @@ -2216,7 +2155,8 @@ class HistoryMetadata { } Object encode() { - return _toList(); } + return _toList(); + } static HistoryMetadata decode(Object result) { result as List; @@ -2240,7 +2180,13 @@ class HistoryMetadata { if (identical(this, other)) { return true; } - return _deepEquals(key, other.key) && _deepEquals(title, other.title) && _deepEquals(createdAt, other.createdAt) && _deepEquals(updatedAt, other.updatedAt) && _deepEquals(totalViewTime, other.totalViewTime) && _deepEquals(documentType, other.documentType) && _deepEquals(previewImageUrl, other.previewImageUrl); + return _deepEquals(key, other.key) && + _deepEquals(title, other.title) && + _deepEquals(createdAt, other.createdAt) && + _deepEquals(updatedAt, other.updatedAt) && + _deepEquals(totalViewTime, other.totalViewTime) && + _deepEquals(documentType, other.documentType) && + _deepEquals(previewImageUrl, other.previewImageUrl); } @override @@ -2255,11 +2201,7 @@ class HistoryMetadata { /// Frecency-ranked autocomplete suggestion. Backs `getSuggestions`. class HistorySuggestion { - HistorySuggestion({ - required this.url, - this.title, - required this.score, - }); + HistorySuggestion({required this.url, this.title, required this.score}); String url; @@ -2270,15 +2212,12 @@ class HistorySuggestion { int score; List _toList() { - return [ - url, - title, - score, - ]; + return [url, title, score]; } Object encode() { - return _toList(); } + return _toList(); + } static HistorySuggestion decode(Object result) { result as List; @@ -2298,7 +2237,9 @@ class HistorySuggestion { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(title, other.title) && _deepEquals(score, other.score); + return _deepEquals(url, other.url) && + _deepEquals(title, other.title) && + _deepEquals(score, other.score); } @override @@ -2313,24 +2254,19 @@ class HistorySuggestion { /// Optional metadata observation for a URL. `null` fields are not written. class PageObservation { - PageObservation({ - this.title, - this.previewImageUrl, - }); + PageObservation({this.title, this.previewImageUrl}); String? title; String? previewImageUrl; List _toList() { - return [ - title, - previewImageUrl, - ]; + return [title, previewImageUrl]; } Object encode() { - return _toList(); } + return _toList(); + } static PageObservation decode(Object result) { result as List; @@ -2349,7 +2285,8 @@ class PageObservation { if (identical(this, other)) { return true; } - return _deepEquals(title, other.title) && _deepEquals(previewImageUrl, other.previewImageUrl); + return _deepEquals(title, other.title) && + _deepEquals(previewImageUrl, other.previewImageUrl); } @override @@ -2363,31 +2300,23 @@ class PageObservation { } class HistoryItem { - HistoryItem({ - required this.url, - required this.title, - }); + HistoryItem({required this.url, required this.title}); String url; String title; List _toList() { - return [ - url, - title, - ]; + return [url, title]; } Object encode() { - return _toList(); } + return _toList(); + } static HistoryItem decode(Object result) { result as List; - return HistoryItem( - url: result[0]! as String, - title: result[1]! as String, - ); + return HistoryItem(url: result[0]! as String, title: result[1]! as String); } @override @@ -2429,16 +2358,12 @@ class HistoryState { bool canGoForward; List _toList() { - return [ - items, - currentIndex, - canGoBack, - canGoForward, - ]; + return [items, currentIndex, canGoBack, canGoForward]; } Object encode() { - return _toList(); } + return _toList(); + } static HistoryState decode(Object result) { result as List; @@ -2459,7 +2384,10 @@ class HistoryState { if (identical(this, other)) { return true; } - return _deepEquals(items, other.items) && _deepEquals(currentIndex, other.currentIndex) && _deepEquals(canGoBack, other.canGoBack) && _deepEquals(canGoForward, other.canGoForward); + return _deepEquals(items, other.items) && + _deepEquals(currentIndex, other.currentIndex) && + _deepEquals(canGoBack, other.canGoBack) && + _deepEquals(canGoForward, other.canGoForward); } @override @@ -2473,10 +2401,7 @@ class HistoryState { } class ReaderableState { - ReaderableState({ - required this.readerable, - required this.active, - }); + ReaderableState({required this.readerable, required this.active}); /// Whether or not the current page can be transformed to /// be displayed in a reader view. @@ -2486,14 +2411,12 @@ class ReaderableState { bool active; List _toList() { - return [ - readerable, - active, - ]; + return [readerable, active]; } Object encode() { - return _toList(); } + return _toList(); + } static ReaderableState decode(Object result) { result as List; @@ -2512,7 +2435,8 @@ class ReaderableState { if (identical(this, other)) { return true; } - return _deepEquals(readerable, other.readerable) && _deepEquals(active, other.active); + return _deepEquals(readerable, other.readerable) && + _deepEquals(active, other.active); } @override @@ -2539,15 +2463,12 @@ class SecurityInfoState { String issuer; List _toList() { - return [ - secure, - host, - issuer, - ]; + return [secure, host, issuer]; } Object encode() { - return _toList(); } + return _toList(); + } static SecurityInfoState decode(Object result) { result as List; @@ -2567,7 +2488,9 @@ class SecurityInfoState { if (identical(this, other)) { return true; } - return _deepEquals(secure, other.secure) && _deepEquals(host, other.host) && _deepEquals(issuer, other.issuer); + return _deepEquals(secure, other.secure) && + _deepEquals(host, other.host) && + _deepEquals(issuer, other.issuer); } @override @@ -2630,7 +2553,8 @@ class TabContentState { } Object encode() { - return _toList(); } + return _toList(); + } static TabContentState decode(Object result) { result as List; @@ -2657,7 +2581,16 @@ class TabContentState { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(parentId, other.parentId) && _deepEquals(contextId, other.contextId) && _deepEquals(url, other.url) && _deepEquals(title, other.title) && _deepEquals(progress, other.progress) && _deepEquals(isPrivate, other.isPrivate) && _deepEquals(isFullScreen, other.isFullScreen) && _deepEquals(isLoading, other.isLoading) && _deepEquals(showToolbarAsExpanded, other.showToolbarAsExpanded); + return _deepEquals(id, other.id) && + _deepEquals(parentId, other.parentId) && + _deepEquals(contextId, other.contextId) && + _deepEquals(url, other.url) && + _deepEquals(title, other.title) && + _deepEquals(progress, other.progress) && + _deepEquals(isPrivate, other.isPrivate) && + _deepEquals(isFullScreen, other.isFullScreen) && + _deepEquals(isLoading, other.isLoading) && + _deepEquals(showToolbarAsExpanded, other.showToolbarAsExpanded); } @override @@ -2684,15 +2617,12 @@ class FindResultState { bool isDoneCounting; List _toList() { - return [ - activeMatchOrdinal, - numberOfMatches, - isDoneCounting, - ]; + return [activeMatchOrdinal, numberOfMatches, isDoneCounting]; } Object encode() { - return _toList(); } + return _toList(); + } static FindResultState decode(Object result) { result as List; @@ -2712,7 +2642,9 @@ class FindResultState { if (identical(this, other)) { return true; } - return _deepEquals(activeMatchOrdinal, other.activeMatchOrdinal) && _deepEquals(numberOfMatches, other.numberOfMatches) && _deepEquals(isDoneCounting, other.isDoneCounting); + return _deepEquals(activeMatchOrdinal, other.activeMatchOrdinal) && + _deepEquals(numberOfMatches, other.numberOfMatches) && + _deepEquals(isDoneCounting, other.isDoneCounting); } @override @@ -2726,11 +2658,7 @@ class FindResultState { } class CustomSelectionAction { - CustomSelectionAction({ - required this.id, - required this.title, - this.pattern, - }); + CustomSelectionAction({required this.id, required this.title, this.pattern}); String id; @@ -2739,15 +2667,12 @@ class CustomSelectionAction { SelectionPattern? pattern; List _toList() { - return [ - id, - title, - pattern, - ]; + return [id, title, pattern]; } Object encode() { - return _toList(); } + return _toList(); + } static CustomSelectionAction decode(Object result) { result as List; @@ -2767,7 +2692,9 @@ class CustomSelectionAction { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(title, other.title) && _deepEquals(pattern, other.pattern); + return _deepEquals(id, other.id) && + _deepEquals(title, other.title) && + _deepEquals(pattern, other.pattern); } @override @@ -2814,7 +2741,8 @@ class WebExtensionData { } Object encode() { - return _toList(); } + return _toList(); + } static WebExtensionData decode(Object result) { result as List; @@ -2837,7 +2765,12 @@ class WebExtensionData { if (identical(this, other)) { return true; } - return _deepEquals(extensionId, other.extensionId) && _deepEquals(title, other.title) && _deepEquals(enabled, other.enabled) && _deepEquals(badgeText, other.badgeText) && _deepEquals(badgeTextColor, other.badgeTextColor) && _deepEquals(badgeBackgroundColor, other.badgeBackgroundColor); + return _deepEquals(extensionId, other.extensionId) && + _deepEquals(title, other.title) && + _deepEquals(enabled, other.enabled) && + _deepEquals(badgeText, other.badgeText) && + _deepEquals(badgeTextColor, other.badgeTextColor) && + _deepEquals(badgeBackgroundColor, other.badgeBackgroundColor); } @override @@ -2976,7 +2909,8 @@ class AddonInfo { } Object encode() { - return _toList(); } + return _toList(); + } static AddonInfo decode(Object result) { result as List; @@ -2989,7 +2923,8 @@ class AddonInfo { version: result[5]! as String, installedVersion: result[6] as String?, translatedPermissions: (result[7]! as List).cast(), - translatedRequiredDataCollectionPermissions: (result[8]! as List).cast(), + translatedRequiredDataCollectionPermissions: (result[8]! as List) + .cast(), authorName: result[9] as String?, authorUrl: result[10] as String?, homepageUrl: result[11]! as String, @@ -3022,7 +2957,41 @@ class AddonInfo { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(displayName, other.displayName) && _deepEquals(summary, other.summary) && _deepEquals(description, other.description) && _deepEquals(downloadUrl, other.downloadUrl) && _deepEquals(version, other.version) && _deepEquals(installedVersion, other.installedVersion) && _deepEquals(translatedPermissions, other.translatedPermissions) && _deepEquals(translatedRequiredDataCollectionPermissions, other.translatedRequiredDataCollectionPermissions) && _deepEquals(authorName, other.authorName) && _deepEquals(authorUrl, other.authorUrl) && _deepEquals(homepageUrl, other.homepageUrl) && _deepEquals(detailUrl, other.detailUrl) && _deepEquals(ratingUrl, other.ratingUrl) && _deepEquals(ratingAverage, other.ratingAverage) && _deepEquals(ratingReviews, other.ratingReviews) && _deepEquals(createdAt, other.createdAt) && _deepEquals(updatedAt, other.updatedAt) && _deepEquals(icon, other.icon) && _deepEquals(isInstalled, other.isInstalled) && _deepEquals(isEnabled, other.isEnabled) && _deepEquals(isSupported, other.isSupported) && _deepEquals(isAllowedInPrivateBrowsing, other.isAllowedInPrivateBrowsing) && _deepEquals(isAutoUpdateEnabled, other.isAutoUpdateEnabled) && _deepEquals(isLocalFileInstalled, other.isLocalFileInstalled) && _deepEquals(optionsPageUrl, other.optionsPageUrl) && _deepEquals(openOptionsPageInTab, other.openOptionsPageInTab) && _deepEquals(disabledReason, other.disabledReason) && _deepEquals(incognito, other.incognito); + return _deepEquals(id, other.id) && + _deepEquals(displayName, other.displayName) && + _deepEquals(summary, other.summary) && + _deepEquals(description, other.description) && + _deepEquals(downloadUrl, other.downloadUrl) && + _deepEquals(version, other.version) && + _deepEquals(installedVersion, other.installedVersion) && + _deepEquals(translatedPermissions, other.translatedPermissions) && + _deepEquals( + translatedRequiredDataCollectionPermissions, + other.translatedRequiredDataCollectionPermissions, + ) && + _deepEquals(authorName, other.authorName) && + _deepEquals(authorUrl, other.authorUrl) && + _deepEquals(homepageUrl, other.homepageUrl) && + _deepEquals(detailUrl, other.detailUrl) && + _deepEquals(ratingUrl, other.ratingUrl) && + _deepEquals(ratingAverage, other.ratingAverage) && + _deepEquals(ratingReviews, other.ratingReviews) && + _deepEquals(createdAt, other.createdAt) && + _deepEquals(updatedAt, other.updatedAt) && + _deepEquals(icon, other.icon) && + _deepEquals(isInstalled, other.isInstalled) && + _deepEquals(isEnabled, other.isEnabled) && + _deepEquals(isSupported, other.isSupported) && + _deepEquals( + isAllowedInPrivateBrowsing, + other.isAllowedInPrivateBrowsing, + ) && + _deepEquals(isAutoUpdateEnabled, other.isAutoUpdateEnabled) && + _deepEquals(isLocalFileInstalled, other.isLocalFileInstalled) && + _deepEquals(optionsPageUrl, other.optionsPageUrl) && + _deepEquals(openOptionsPageInTab, other.openOptionsPageInTab) && + _deepEquals(disabledReason, other.disabledReason) && + _deepEquals(incognito, other.incognito); } @override @@ -3049,15 +3018,12 @@ class AddonListingPreview { String? caption; List _toList() { - return [ - imageUrl, - thumbnailUrl, - caption, - ]; + return [imageUrl, thumbnailUrl, caption]; } Object encode() { - return _toList(); } + return _toList(); + } static AddonListingPreview decode(Object result) { result as List; @@ -3077,7 +3043,9 @@ class AddonListingPreview { if (identical(this, other)) { return true; } - return _deepEquals(imageUrl, other.imageUrl) && _deepEquals(thumbnailUrl, other.thumbnailUrl) && _deepEquals(caption, other.caption); + return _deepEquals(imageUrl, other.imageUrl) && + _deepEquals(thumbnailUrl, other.thumbnailUrl) && + _deepEquals(caption, other.caption); } @override @@ -3220,7 +3188,8 @@ class AddonListing { } Object encode() { - return _toList(); } + return _toList(); + } static AddonListing decode(Object result) { result as List; @@ -3267,7 +3236,39 @@ class AddonListing { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(name, other.name) && _deepEquals(summary, other.summary) && _deepEquals(description, other.description) && _deepEquals(iconUrl, other.iconUrl) && _deepEquals(latestVersion, other.latestVersion) && _deepEquals(downloadUrl, other.downloadUrl) && _deepEquals(ratingAverage, other.ratingAverage) && _deepEquals(ratingReviews, other.ratingReviews) && _deepEquals(authorName, other.authorName) && _deepEquals(authorUrl, other.authorUrl) && _deepEquals(homepageUrl, other.homepageUrl) && _deepEquals(detailUrl, other.detailUrl) && _deepEquals(ratingUrl, other.ratingUrl) && _deepEquals(averageDailyUsers, other.averageDailyUsers) && _deepEquals(promoted, other.promoted) && _deepEquals(previews, other.previews) && _deepEquals(permissions, other.permissions) && _deepEquals(hostPermissions, other.hostPermissions) && _deepEquals(optionalPermissions, other.optionalPermissions) && _deepEquals(dataCollectionPermissions, other.dataCollectionPermissions) && _deepEquals(fileSize, other.fileSize) && _deepEquals(lastUpdated, other.lastUpdated) && _deepEquals(licenseName, other.licenseName) && _deepEquals(licenseUrl, other.licenseUrl) && _deepEquals(supportUrl, other.supportUrl) && _deepEquals(supportEmail, other.supportEmail) && _deepEquals(categories, other.categories) && _deepEquals(hasPrivacyPolicy, other.hasPrivacyPolicy) && _deepEquals(slug, other.slug); + return _deepEquals(id, other.id) && + _deepEquals(name, other.name) && + _deepEquals(summary, other.summary) && + _deepEquals(description, other.description) && + _deepEquals(iconUrl, other.iconUrl) && + _deepEquals(latestVersion, other.latestVersion) && + _deepEquals(downloadUrl, other.downloadUrl) && + _deepEquals(ratingAverage, other.ratingAverage) && + _deepEquals(ratingReviews, other.ratingReviews) && + _deepEquals(authorName, other.authorName) && + _deepEquals(authorUrl, other.authorUrl) && + _deepEquals(homepageUrl, other.homepageUrl) && + _deepEquals(detailUrl, other.detailUrl) && + _deepEquals(ratingUrl, other.ratingUrl) && + _deepEquals(averageDailyUsers, other.averageDailyUsers) && + _deepEquals(promoted, other.promoted) && + _deepEquals(previews, other.previews) && + _deepEquals(permissions, other.permissions) && + _deepEquals(hostPermissions, other.hostPermissions) && + _deepEquals(optionalPermissions, other.optionalPermissions) && + _deepEquals( + dataCollectionPermissions, + other.dataCollectionPermissions, + ) && + _deepEquals(fileSize, other.fileSize) && + _deepEquals(lastUpdated, other.lastUpdated) && + _deepEquals(licenseName, other.licenseName) && + _deepEquals(licenseUrl, other.licenseUrl) && + _deepEquals(supportUrl, other.supportUrl) && + _deepEquals(supportEmail, other.supportEmail) && + _deepEquals(categories, other.categories) && + _deepEquals(hasPrivacyPolicy, other.hasPrivacyPolicy) && + _deepEquals(slug, other.slug); } @override @@ -3334,7 +3335,8 @@ class AddonStoreInfo { } Object encode() { - return _toList(); } + return _toList(); + } static AddonStoreInfo decode(Object result) { result as List; @@ -3362,7 +3364,17 @@ class AddonStoreInfo { if (identical(this, other)) { return true; } - return _deepEquals(latestVersion, other.latestVersion) && _deepEquals(latestXpiUrl, other.latestXpiUrl) && _deepEquals(ratingAverage, other.ratingAverage) && _deepEquals(ratingReviews, other.ratingReviews) && _deepEquals(summary, other.summary) && _deepEquals(description, other.description) && _deepEquals(homepageUrl, other.homepageUrl) && _deepEquals(detailUrl, other.detailUrl) && _deepEquals(ratingUrl, other.ratingUrl) && _deepEquals(authorName, other.authorName) && _deepEquals(authorUrl, other.authorUrl); + return _deepEquals(latestVersion, other.latestVersion) && + _deepEquals(latestXpiUrl, other.latestXpiUrl) && + _deepEquals(ratingAverage, other.ratingAverage) && + _deepEquals(ratingReviews, other.ratingReviews) && + _deepEquals(summary, other.summary) && + _deepEquals(description, other.description) && + _deepEquals(homepageUrl, other.homepageUrl) && + _deepEquals(detailUrl, other.detailUrl) && + _deepEquals(ratingUrl, other.ratingUrl) && + _deepEquals(authorName, other.authorName) && + _deepEquals(authorUrl, other.authorUrl); } @override @@ -3392,16 +3404,12 @@ class AddonUpdateAttemptInfo { String? message; List _toList() { - return [ - addonId, - dateMillisecondsSinceEpoch, - status, - message, - ]; + return [addonId, dateMillisecondsSinceEpoch, status, message]; } Object encode() { - return _toList(); } + return _toList(); + } static AddonUpdateAttemptInfo decode(Object result) { result as List; @@ -3422,7 +3430,13 @@ class AddonUpdateAttemptInfo { if (identical(this, other)) { return true; } - return _deepEquals(addonId, other.addonId) && _deepEquals(dateMillisecondsSinceEpoch, other.dateMillisecondsSinceEpoch) && _deepEquals(status, other.status) && _deepEquals(message, other.message); + return _deepEquals(addonId, other.addonId) && + _deepEquals( + dateMillisecondsSinceEpoch, + other.dateMillisecondsSinceEpoch, + ) && + _deepEquals(status, other.status) && + _deepEquals(message, other.message); } @override @@ -3461,19 +3475,12 @@ class GeckoSuggestion { Uint8List? icon; List _toList() { - return [ - id, - type, - score, - title, - description, - editSuggestion, - icon, - ]; + return [id, type, score, title, description, editSuggestion, icon]; } Object encode() { - return _toList(); } + return _toList(); + } static GeckoSuggestion decode(Object result) { result as List; @@ -3497,7 +3504,13 @@ class GeckoSuggestion { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(type, other.type) && _deepEquals(score, other.score) && _deepEquals(title, other.title) && _deepEquals(description, other.description) && _deepEquals(editSuggestion, other.editSuggestion) && _deepEquals(icon, other.icon); + return _deepEquals(id, other.id) && + _deepEquals(type, other.type) && + _deepEquals(score, other.score) && + _deepEquals(title, other.title) && + _deepEquals(description, other.description) && + _deepEquals(editSuggestion, other.editSuggestion) && + _deepEquals(icon, other.icon); } @override @@ -3544,7 +3557,8 @@ class TabContent { } Object encode() { - return _toList(); } + return _toList(); + } static TabContent decode(Object result) { result as List; @@ -3567,7 +3581,12 @@ class TabContent { if (identical(this, other)) { return true; } - return _deepEquals(tabId, other.tabId) && _deepEquals(fullContentMarkdown, other.fullContentMarkdown) && _deepEquals(fullContentPlain, other.fullContentPlain) && _deepEquals(isProbablyReaderable, other.isProbablyReaderable) && _deepEquals(extractedContentMarkdown, other.extractedContentMarkdown) && _deepEquals(extractedContentPlain, other.extractedContentPlain); + return _deepEquals(tabId, other.tabId) && + _deepEquals(fullContentMarkdown, other.fullContentMarkdown) && + _deepEquals(fullContentPlain, other.fullContentPlain) && + _deepEquals(isProbablyReaderable, other.isProbablyReaderable) && + _deepEquals(extractedContentMarkdown, other.extractedContentMarkdown) && + _deepEquals(extractedContentPlain, other.extractedContentPlain); } @override @@ -3606,7 +3625,8 @@ class ContentBlocking { } Object encode() { - return _toList(); } + return _toList(); + } static ContentBlocking decode(Object result) { result as List; @@ -3627,7 +3647,22 @@ class ContentBlocking { if (identical(this, other)) { return true; } - return _deepEquals(queryParameterStripping, other.queryParameterStripping) && _deepEquals(queryParameterStrippingAllowList, other.queryParameterStrippingAllowList) && _deepEquals(queryParameterStrippingStripList, other.queryParameterStrippingStripList) && _deepEquals(bounceTrackingProtectionMode, other.bounceTrackingProtectionMode); + return _deepEquals( + queryParameterStripping, + other.queryParameterStripping, + ) && + _deepEquals( + queryParameterStrippingAllowList, + other.queryParameterStrippingAllowList, + ) && + _deepEquals( + queryParameterStrippingStripList, + other.queryParameterStrippingStripList, + ) && + _deepEquals( + bounceTrackingProtectionMode, + other.bounceTrackingProtectionMode, + ); } @override @@ -3666,7 +3701,8 @@ class DohSettings { } Object encode() { - return _toList(); } + return _toList(); + } static DohSettings decode(Object result) { result as List; @@ -3687,7 +3723,10 @@ class DohSettings { if (identical(this, other)) { return true; } - return _deepEquals(dohSettingsMode, other.dohSettingsMode) && _deepEquals(dohProviderUrl, other.dohProviderUrl) && _deepEquals(dohDefaultProviderUrl, other.dohDefaultProviderUrl) && _deepEquals(dohExceptionsList, other.dohExceptionsList); + return _deepEquals(dohSettingsMode, other.dohSettingsMode) && + _deepEquals(dohProviderUrl, other.dohProviderUrl) && + _deepEquals(dohDefaultProviderUrl, other.dohDefaultProviderUrl) && + _deepEquals(dohExceptionsList, other.dohExceptionsList); } @override @@ -3907,7 +3946,8 @@ class GeckoEngineSettings { } Object encode() { - return _toList(); } + return _toList(); + } static GeckoEngineSettings decode(Object result) { result as List; @@ -3918,7 +3958,8 @@ class GeckoEngineSettings { globalPrivacyControlEnabled: result[3] as bool?, preferredColorScheme: result[4] as ColorScheme?, cookieBannerHandlingMode: result[5] as CookieBannerHandlingMode?, - cookieBannerHandlingModePrivateBrowsing: result[6] as CookieBannerHandlingMode?, + cookieBannerHandlingModePrivateBrowsing: + result[6] as CookieBannerHandlingMode?, cookieBannerHandlingGlobalRules: result[7] as bool?, cookieBannerHandlingGlobalRulesSubFrames: result[8] as bool?, webContentIsolationStrategy: result[9] as WebContentIsolationStrategy?, @@ -3969,7 +4010,84 @@ class GeckoEngineSettings { if (identical(this, other)) { return true; } - return _deepEquals(javascriptEnabled, other.javascriptEnabled) && _deepEquals(trackingProtectionPolicy, other.trackingProtectionPolicy) && _deepEquals(httpsOnlyMode, other.httpsOnlyMode) && _deepEquals(globalPrivacyControlEnabled, other.globalPrivacyControlEnabled) && _deepEquals(preferredColorScheme, other.preferredColorScheme) && _deepEquals(cookieBannerHandlingMode, other.cookieBannerHandlingMode) && _deepEquals(cookieBannerHandlingModePrivateBrowsing, other.cookieBannerHandlingModePrivateBrowsing) && _deepEquals(cookieBannerHandlingGlobalRules, other.cookieBannerHandlingGlobalRules) && _deepEquals(cookieBannerHandlingGlobalRulesSubFrames, other.cookieBannerHandlingGlobalRulesSubFrames) && _deepEquals(webContentIsolationStrategy, other.webContentIsolationStrategy) && _deepEquals(userAgent, other.userAgent) && _deepEquals(contentBlocking, other.contentBlocking) && _deepEquals(enterpriseRootsEnabled, other.enterpriseRootsEnabled) && _deepEquals(dohSettings, other.dohSettings) && _deepEquals(fingerprintingProtectionOverrides, other.fingerprintingProtectionOverrides) && _deepEquals(locales, other.locales) && _deepEquals(useContentBlockingDatabase, other.useContentBlockingDatabase) && _deepEquals(blockCookies, other.blockCookies) && _deepEquals(customCookiePolicy, other.customCookiePolicy) && _deepEquals(blockTrackingContent, other.blockTrackingContent) && _deepEquals(trackingContentScope, other.trackingContentScope) && _deepEquals(blockCryptominers, other.blockCryptominers) && _deepEquals(blockFingerprinters, other.blockFingerprinters) && _deepEquals(blockRedirectTrackers, other.blockRedirectTrackers) && _deepEquals(blockSuspectedFingerprinters, other.blockSuspectedFingerprinters) && _deepEquals(suspectedFingerprintersScope, other.suspectedFingerprintersScope) && _deepEquals(allowListBaseline, other.allowListBaseline) && _deepEquals(allowListConvenience, other.allowListConvenience) && _deepEquals(blockAdsAnalyticsSocialTrackers, other.blockAdsAnalyticsSocialTrackers) && _deepEquals(webFontsEnabled, other.webFontsEnabled) && _deepEquals(automaticFontSizeAdjustment, other.automaticFontSizeAdjustment) && _deepEquals(fontSizeFactor, other.fontSizeFactor) && _deepEquals(fontInflationEnabled, other.fontInflationEnabled) && _deepEquals(displayDensityOverride, other.displayDensityOverride) && _deepEquals(screenWidthOverride, other.screenWidthOverride) && _deepEquals(screenHeightOverride, other.screenHeightOverride) && _deepEquals(inputAutoZoomEnabled, other.inputAutoZoomEnabled) && _deepEquals(forceUserScalableContent, other.forceUserScalableContent) && _deepEquals(fissionEnabled, other.fissionEnabled) && _deepEquals(isolatedProcessEnabled, other.isolatedProcessEnabled) && _deepEquals(appZygoteProcessEnabled, other.appZygoteProcessEnabled) && _deepEquals(extensionsWebAPIEnabled, other.extensionsWebAPIEnabled) && _deepEquals(lnaBlocking, other.lnaBlocking) && _deepEquals(lnaBlockTrackers, other.lnaBlockTrackers) && _deepEquals(lnaEnabled, other.lnaEnabled); + return _deepEquals(javascriptEnabled, other.javascriptEnabled) && + _deepEquals(trackingProtectionPolicy, other.trackingProtectionPolicy) && + _deepEquals(httpsOnlyMode, other.httpsOnlyMode) && + _deepEquals( + globalPrivacyControlEnabled, + other.globalPrivacyControlEnabled, + ) && + _deepEquals(preferredColorScheme, other.preferredColorScheme) && + _deepEquals(cookieBannerHandlingMode, other.cookieBannerHandlingMode) && + _deepEquals( + cookieBannerHandlingModePrivateBrowsing, + other.cookieBannerHandlingModePrivateBrowsing, + ) && + _deepEquals( + cookieBannerHandlingGlobalRules, + other.cookieBannerHandlingGlobalRules, + ) && + _deepEquals( + cookieBannerHandlingGlobalRulesSubFrames, + other.cookieBannerHandlingGlobalRulesSubFrames, + ) && + _deepEquals( + webContentIsolationStrategy, + other.webContentIsolationStrategy, + ) && + _deepEquals(userAgent, other.userAgent) && + _deepEquals(contentBlocking, other.contentBlocking) && + _deepEquals(enterpriseRootsEnabled, other.enterpriseRootsEnabled) && + _deepEquals(dohSettings, other.dohSettings) && + _deepEquals( + fingerprintingProtectionOverrides, + other.fingerprintingProtectionOverrides, + ) && + _deepEquals(locales, other.locales) && + _deepEquals( + useContentBlockingDatabase, + other.useContentBlockingDatabase, + ) && + _deepEquals(blockCookies, other.blockCookies) && + _deepEquals(customCookiePolicy, other.customCookiePolicy) && + _deepEquals(blockTrackingContent, other.blockTrackingContent) && + _deepEquals(trackingContentScope, other.trackingContentScope) && + _deepEquals(blockCryptominers, other.blockCryptominers) && + _deepEquals(blockFingerprinters, other.blockFingerprinters) && + _deepEquals(blockRedirectTrackers, other.blockRedirectTrackers) && + _deepEquals( + blockSuspectedFingerprinters, + other.blockSuspectedFingerprinters, + ) && + _deepEquals( + suspectedFingerprintersScope, + other.suspectedFingerprintersScope, + ) && + _deepEquals(allowListBaseline, other.allowListBaseline) && + _deepEquals(allowListConvenience, other.allowListConvenience) && + _deepEquals( + blockAdsAnalyticsSocialTrackers, + other.blockAdsAnalyticsSocialTrackers, + ) && + _deepEquals(webFontsEnabled, other.webFontsEnabled) && + _deepEquals( + automaticFontSizeAdjustment, + other.automaticFontSizeAdjustment, + ) && + _deepEquals(fontSizeFactor, other.fontSizeFactor) && + _deepEquals(fontInflationEnabled, other.fontInflationEnabled) && + _deepEquals(displayDensityOverride, other.displayDensityOverride) && + _deepEquals(screenWidthOverride, other.screenWidthOverride) && + _deepEquals(screenHeightOverride, other.screenHeightOverride) && + _deepEquals(inputAutoZoomEnabled, other.inputAutoZoomEnabled) && + _deepEquals(forceUserScalableContent, other.forceUserScalableContent) && + _deepEquals(fissionEnabled, other.fissionEnabled) && + _deepEquals(isolatedProcessEnabled, other.isolatedProcessEnabled) && + _deepEquals(appZygoteProcessEnabled, other.appZygoteProcessEnabled) && + _deepEquals(extensionsWebAPIEnabled, other.extensionsWebAPIEnabled) && + _deepEquals(lnaBlocking, other.lnaBlocking) && + _deepEquals(lnaBlockTrackers, other.lnaBlockTrackers) && + _deepEquals(lnaEnabled, other.lnaEnabled); } @override @@ -4002,17 +4120,12 @@ class AutocompleteResult { int totalItems; List _toList() { - return [ - input, - text, - url, - source, - totalItems, - ]; + return [input, text, url, source, totalItems]; } Object encode() { - return _toList(); } + return _toList(); + } static AutocompleteResult decode(Object result) { result as List; @@ -4034,7 +4147,11 @@ class AutocompleteResult { if (identical(this, other)) { return true; } - return _deepEquals(input, other.input) && _deepEquals(text, other.text) && _deepEquals(url, other.url) && _deepEquals(source, other.source) && _deepEquals(totalItems, other.totalItems); + return _deepEquals(input, other.input) && + _deepEquals(text, other.text) && + _deepEquals(url, other.url) && + _deepEquals(source, other.source) && + _deepEquals(totalItems, other.totalItems); } @override @@ -4049,29 +4166,23 @@ class AutocompleteResult { /// Represents all the different supported types of data that can be found from long clicking /// an element. -sealed class HitResult { -} +sealed class HitResult {} /// Default type if we're unable to match the type to anything. It may or may not have a src. class UnknownHitResult extends HitResult { - UnknownHitResult({ - required this.src, - this.linkText, - }); + UnknownHitResult({required this.src, this.linkText}); String src; String? linkText; List _toList() { - return [ - src, - linkText, - ]; + return [src, linkText]; } Object encode() { - return _toList(); } + return _toList(); + } static UnknownHitResult decode(Object result) { result as List; @@ -4105,24 +4216,19 @@ class UnknownHitResult extends HitResult { /// If the HTML element was of type 'HTMLImageElement'. class ImageHitResult extends HitResult { - ImageHitResult({ - required this.src, - this.title, - }); + ImageHitResult({required this.src, this.title}); String src; String? title; List _toList() { - return [ - src, - title, - ]; + return [src, title]; } Object encode() { - return _toList(); } + return _toList(); + } static ImageHitResult decode(Object result) { result as List; @@ -4156,24 +4262,19 @@ class ImageHitResult extends HitResult { /// If the HTML element was of type 'HTMLVideoElement'. class VideoHitResult extends HitResult { - VideoHitResult({ - required this.src, - this.title, - }); + VideoHitResult({required this.src, this.title}); String src; String? title; List _toList() { - return [ - src, - title, - ]; + return [src, title]; } Object encode() { - return _toList(); } + return _toList(); + } static VideoHitResult decode(Object result) { result as List; @@ -4207,24 +4308,19 @@ class VideoHitResult extends HitResult { /// If the HTML element was of type 'HTMLAudioElement'. class AudioHitResult extends HitResult { - AudioHitResult({ - required this.src, - this.title, - }); + AudioHitResult({required this.src, this.title}); String src; String? title; List _toList() { - return [ - src, - title, - ]; + return [src, title]; } Object encode() { - return _toList(); } + return _toList(); + } static AudioHitResult decode(Object result) { result as List; @@ -4258,24 +4354,19 @@ class AudioHitResult extends HitResult { /// If the HTML element was of type 'HTMLImageElement' and contained a URI. class ImageSrcHitResult extends HitResult { - ImageSrcHitResult({ - required this.src, - required this.uri, - }); + ImageSrcHitResult({required this.src, required this.uri}); String src; String uri; List _toList() { - return [ - src, - uri, - ]; + return [src, uri]; } Object encode() { - return _toList(); } + return _toList(); + } static ImageSrcHitResult decode(Object result) { result as List; @@ -4309,26 +4400,21 @@ class ImageSrcHitResult extends HitResult { /// The type used if the URI is prepended with 'tel:'. class PhoneHitResult extends HitResult { - PhoneHitResult({ - required this.src, - }); + PhoneHitResult({required this.src}); String src; List _toList() { - return [ - src, - ]; + return [src]; } Object encode() { - return _toList(); } + return _toList(); + } static PhoneHitResult decode(Object result) { result as List; - return PhoneHitResult( - src: result[0]! as String, - ); + return PhoneHitResult(src: result[0]! as String); } @override @@ -4355,26 +4441,21 @@ class PhoneHitResult extends HitResult { /// The type used if the URI is prepended with 'mailto:'. class EmailHitResult extends HitResult { - EmailHitResult({ - required this.src, - }); + EmailHitResult({required this.src}); String src; List _toList() { - return [ - src, - ]; + return [src]; } Object encode() { - return _toList(); } + return _toList(); + } static EmailHitResult decode(Object result) { result as List; - return EmailHitResult( - src: result[0]! as String, - ); + return EmailHitResult(src: result[0]! as String); } @override @@ -4401,26 +4482,21 @@ class EmailHitResult extends HitResult { /// The type used if the URI is prepended with 'geo:'. class GeoHitResult extends HitResult { - GeoHitResult({ - required this.src, - }); + GeoHitResult({required this.src}); String src; List _toList() { - return [ - src, - ]; + return [src]; } Object encode() { - return _toList(); } + return _toList(); + } static GeoHitResult decode(Object result) { result as List; - return GeoHitResult( - src: result[0]! as String, - ); + return GeoHitResult(src: result[0]! as String); } @override @@ -4523,7 +4599,8 @@ class DownloadState { } Object encode() { - return _toList(); } + return _toList(); + } static DownloadState decode(Object result) { result as List; @@ -4557,7 +4634,23 @@ class DownloadState { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(fileName, other.fileName) && _deepEquals(contentType, other.contentType) && _deepEquals(contentLength, other.contentLength) && _deepEquals(currentBytesCopied, other.currentBytesCopied) && _deepEquals(status, other.status) && _deepEquals(userAgent, other.userAgent) && _deepEquals(destinationDirectory, other.destinationDirectory) && _deepEquals(directoryPath, other.directoryPath) && _deepEquals(referrerUrl, other.referrerUrl) && _deepEquals(skipConfirmation, other.skipConfirmation) && _deepEquals(openInApp, other.openInApp) && _deepEquals(id, other.id) && _deepEquals(sessionId, other.sessionId) && _deepEquals(private, other.private) && _deepEquals(createdTime, other.createdTime) && _deepEquals(notificationId, other.notificationId); + return _deepEquals(url, other.url) && + _deepEquals(fileName, other.fileName) && + _deepEquals(contentType, other.contentType) && + _deepEquals(contentLength, other.contentLength) && + _deepEquals(currentBytesCopied, other.currentBytesCopied) && + _deepEquals(status, other.status) && + _deepEquals(userAgent, other.userAgent) && + _deepEquals(destinationDirectory, other.destinationDirectory) && + _deepEquals(directoryPath, other.directoryPath) && + _deepEquals(referrerUrl, other.referrerUrl) && + _deepEquals(skipConfirmation, other.skipConfirmation) && + _deepEquals(openInApp, other.openInApp) && + _deepEquals(id, other.id) && + _deepEquals(sessionId, other.sessionId) && + _deepEquals(private, other.private) && + _deepEquals(createdTime, other.createdTime) && + _deepEquals(notificationId, other.notificationId); } @override @@ -4587,16 +4680,12 @@ class ShareInternetResourceState { String? referrerUrl; List _toList() { - return [ - url, - contentType, - private, - referrerUrl, - ]; + return [url, contentType, private, referrerUrl]; } Object encode() { - return _toList(); } + return _toList(); + } static ShareInternetResourceState decode(Object result) { result as List; @@ -4611,13 +4700,17 @@ class ShareInternetResourceState { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! ShareInternetResourceState || other.runtimeType != runtimeType) { + if (other is! ShareInternetResourceState || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(contentType, other.contentType) && _deepEquals(private, other.private) && _deepEquals(referrerUrl, other.referrerUrl); + return _deepEquals(url, other.url) && + _deepEquals(contentType, other.contentType) && + _deepEquals(private, other.private) && + _deepEquals(referrerUrl, other.referrerUrl); } @override @@ -4644,15 +4737,12 @@ class AddonCollection { String collectionName; List _toList() { - return [ - serverURL, - collectionUser, - collectionName, - ]; + return [serverURL, collectionUser, collectionName]; } Object encode() { - return _toList(); } + return _toList(); + } static AddonCollection decode(Object result) { result as List; @@ -4672,7 +4762,9 @@ class AddonCollection { if (identical(this, other)) { return true; } - return _deepEquals(serverURL, other.serverURL) && _deepEquals(collectionUser, other.collectionUser) && _deepEquals(collectionName, other.collectionName); + return _deepEquals(serverURL, other.serverURL) && + _deepEquals(collectionUser, other.collectionUser) && + _deepEquals(collectionName, other.collectionName); } @override @@ -4686,24 +4778,19 @@ class AddonCollection { } class SyncEngineStatus { - SyncEngineStatus({ - required this.engine, - required this.enabled, - }); + SyncEngineStatus({required this.engine, required this.enabled}); SyncEngineValue engine; bool enabled; List _toList() { - return [ - engine, - enabled, - ]; + return [engine, enabled]; } Object encode() { - return _toList(); } + return _toList(); + } static SyncEngineStatus decode(Object result) { result as List; @@ -4722,7 +4809,8 @@ class SyncEngineStatus { if (identical(this, other)) { return true; } - return _deepEquals(engine, other.engine) && _deepEquals(enabled, other.enabled); + return _deepEquals(engine, other.engine) && + _deepEquals(enabled, other.enabled); } @override @@ -4773,7 +4861,8 @@ class SyncAccountInfo { } Object encode() { - return _toList(); } + return _toList(); + } static SyncAccountInfo decode(Object result) { result as List; @@ -4797,7 +4886,13 @@ class SyncAccountInfo { if (identical(this, other)) { return true; } - return _deepEquals(authenticated, other.authenticated) && _deepEquals(syncing, other.syncing) && _deepEquals(needsReauth, other.needsReauth) && _deepEquals(email, other.email) && _deepEquals(displayName, other.displayName) && _deepEquals(lastSyncedAt, other.lastSyncedAt) && _deepEquals(engines, other.engines); + return _deepEquals(authenticated, other.authenticated) && + _deepEquals(syncing, other.syncing) && + _deepEquals(needsReauth, other.needsReauth) && + _deepEquals(email, other.email) && + _deepEquals(displayName, other.displayName) && + _deepEquals(lastSyncedAt, other.lastSyncedAt) && + _deepEquals(engines, other.engines); } @override @@ -4827,16 +4922,12 @@ class SyncDevice { bool canSendTab; List _toList() { - return [ - deviceId, - displayName, - isCurrentDevice, - canSendTab, - ]; + return [deviceId, displayName, isCurrentDevice, canSendTab]; } Object encode() { - return _toList(); } + return _toList(); + } static SyncDevice decode(Object result) { result as List; @@ -4857,7 +4948,10 @@ class SyncDevice { if (identical(this, other)) { return true; } - return _deepEquals(deviceId, other.deviceId) && _deepEquals(displayName, other.displayName) && _deepEquals(isCurrentDevice, other.isCurrentDevice) && _deepEquals(canSendTab, other.canSendTab); + return _deepEquals(deviceId, other.deviceId) && + _deepEquals(displayName, other.displayName) && + _deepEquals(isCurrentDevice, other.isCurrentDevice) && + _deepEquals(canSendTab, other.canSendTab); } @override @@ -4887,16 +4981,12 @@ class SyncIncomingTab { String? fromDeviceName; List _toList() { - return [ - title, - url, - fromDeviceId, - fromDeviceName, - ]; + return [title, url, fromDeviceId, fromDeviceName]; } Object encode() { - return _toList(); } + return _toList(); + } static SyncIncomingTab decode(Object result) { result as List; @@ -4917,7 +5007,10 @@ class SyncIncomingTab { if (identical(this, other)) { return true; } - return _deepEquals(title, other.title) && _deepEquals(url, other.url) && _deepEquals(fromDeviceId, other.fromDeviceId) && _deepEquals(fromDeviceName, other.fromDeviceName); + return _deepEquals(title, other.title) && + _deepEquals(url, other.url) && + _deepEquals(fromDeviceId, other.fromDeviceId) && + _deepEquals(fromDeviceName, other.fromDeviceName); } @override @@ -4950,17 +5043,12 @@ class SyncRemoteTab { bool inactive; List _toList() { - return [ - title, - url, - iconUrl, - lastUsed, - inactive, - ]; + return [title, url, iconUrl, lastUsed, inactive]; } Object encode() { - return _toList(); } + return _toList(); + } static SyncRemoteTab decode(Object result) { result as List; @@ -4982,7 +5070,11 @@ class SyncRemoteTab { if (identical(this, other)) { return true; } - return _deepEquals(title, other.title) && _deepEquals(url, other.url) && _deepEquals(iconUrl, other.iconUrl) && _deepEquals(lastUsed, other.lastUsed) && _deepEquals(inactive, other.inactive); + return _deepEquals(title, other.title) && + _deepEquals(url, other.url) && + _deepEquals(iconUrl, other.iconUrl) && + _deepEquals(lastUsed, other.lastUsed) && + _deepEquals(inactive, other.inactive); } @override @@ -5009,15 +5101,12 @@ class SyncDeviceTabs { List tabs; List _toList() { - return [ - deviceId, - deviceName, - tabs, - ]; + return [deviceId, deviceName, tabs]; } Object encode() { - return _toList(); } + return _toList(); + } static SyncDeviceTabs decode(Object result) { result as List; @@ -5037,7 +5126,9 @@ class SyncDeviceTabs { if (identical(this, other)) { return true; } - return _deepEquals(deviceId, other.deviceId) && _deepEquals(deviceName, other.deviceName) && _deepEquals(tabs, other.tabs); + return _deepEquals(deviceId, other.deviceId) && + _deepEquals(deviceName, other.deviceName) && + _deepEquals(tabs, other.tabs); } @override @@ -5070,17 +5161,12 @@ class GeckoPref { bool hasUserChangedValue; List _toList() { - return [ - name, - value, - defaultValue, - userValue, - hasUserChangedValue, - ]; + return [name, value, defaultValue, userValue, hasUserChangedValue]; } Object encode() { - return _toList(); } + return _toList(); + } static GeckoPref decode(Object result) { result as List; @@ -5102,7 +5188,11 @@ class GeckoPref { if (identical(this, other)) { return true; } - return _deepEquals(name, other.name) && _deepEquals(value, other.value) && _deepEquals(defaultValue, other.defaultValue) && _deepEquals(userValue, other.userValue) && _deepEquals(hasUserChangedValue, other.hasUserChangedValue); + return _deepEquals(name, other.name) && + _deepEquals(value, other.value) && + _deepEquals(defaultValue, other.defaultValue) && + _deepEquals(userValue, other.userValue) && + _deepEquals(hasUserChangedValue, other.hasUserChangedValue); } @override @@ -5176,7 +5266,8 @@ class MlProgressData { } Object encode() { - return _toList(); } + return _toList(); + } static MlProgressData decode(Object result) { result as List; @@ -5203,7 +5294,16 @@ class MlProgressData { if (identical(this, other)) { return true; } - return _deepEquals(modelType, other.modelType) && _deepEquals(progress, other.progress) && _deepEquals(type, other.type) && _deepEquals(status, other.status) && _deepEquals(totalLoaded, other.totalLoaded) && _deepEquals(currentLoaded, other.currentLoaded) && _deepEquals(total, other.total) && _deepEquals(units, other.units) && _deepEquals(ok, other.ok) && _deepEquals(id, other.id); + return _deepEquals(modelType, other.modelType) && + _deepEquals(progress, other.progress) && + _deepEquals(type, other.type) && + _deepEquals(status, other.status) && + _deepEquals(totalLoaded, other.totalLoaded) && + _deepEquals(currentLoaded, other.currentLoaded) && + _deepEquals(total, other.total) && + _deepEquals(units, other.units) && + _deepEquals(ok, other.ok) && + _deepEquals(id, other.id); } @override @@ -5262,7 +5362,8 @@ class GeckoProxySettings { } Object encode() { - return _toList(); } + return _toList(); + } static GeckoProxySettings decode(Object result) { result as List; @@ -5288,7 +5389,15 @@ class GeckoProxySettings { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(title, other.title) && _deepEquals(type, other.type) && _deepEquals(host, other.host) && _deepEquals(port, other.port) && _deepEquals(username, other.username) && _deepEquals(password, other.password) && _deepEquals(proxyDNS, other.proxyDNS) && _deepEquals(doNotProxyLocal, other.doNotProxyLocal); + return _deepEquals(id, other.id) && + _deepEquals(title, other.title) && + _deepEquals(type, other.type) && + _deepEquals(host, other.host) && + _deepEquals(port, other.port) && + _deepEquals(username, other.username) && + _deepEquals(password, other.password) && + _deepEquals(proxyDNS, other.proxyDNS) && + _deepEquals(doNotProxyLocal, other.doNotProxyLocal); } @override @@ -5328,18 +5437,12 @@ class ContainerSiteAssignment { bool strict; List _toList() { - return [ - requestId, - tabId, - originUrl, - url, - blocked, - strict, - ]; + return [requestId, tabId, originUrl, url, blocked, strict]; } Object encode() { - return _toList(); } + return _toList(); + } static ContainerSiteAssignment decode(Object result) { result as List; @@ -5362,7 +5465,12 @@ class ContainerSiteAssignment { if (identical(this, other)) { return true; } - return _deepEquals(requestId, other.requestId) && _deepEquals(tabId, other.tabId) && _deepEquals(originUrl, other.originUrl) && _deepEquals(url, other.url) && _deepEquals(blocked, other.blocked) && _deepEquals(strict, other.strict); + return _deepEquals(requestId, other.requestId) && + _deepEquals(tabId, other.tabId) && + _deepEquals(originUrl, other.originUrl) && + _deepEquals(url, other.url) && + _deepEquals(blocked, other.blocked) && + _deepEquals(strict, other.strict); } @override @@ -5392,16 +5500,12 @@ class ProxyLoadError { String errorType; List _toList() { - return [ - tabId, - contextId, - url, - errorType, - ]; + return [tabId, contextId, url, errorType]; } Object encode() { - return _toList(); } + return _toList(); + } static ProxyLoadError decode(Object result) { result as List; @@ -5422,7 +5526,10 @@ class ProxyLoadError { if (identical(this, other)) { return true; } - return _deepEquals(tabId, other.tabId) && _deepEquals(contextId, other.contextId) && _deepEquals(url, other.url) && _deepEquals(errorType, other.errorType); + return _deepEquals(tabId, other.tabId) && + _deepEquals(contextId, other.contextId) && + _deepEquals(url, other.url) && + _deepEquals(errorType, other.errorType); } @override @@ -5436,31 +5543,23 @@ class ProxyLoadError { } class GeckoHeader { - GeckoHeader({ - required this.key, - required this.value, - }); + GeckoHeader({required this.key, required this.value}); String key; String value; List _toList() { - return [ - key, - value, - ]; + return [key, value]; } Object encode() { - return _toList(); } + return _toList(); + } static GeckoHeader decode(Object result) { result as List; - return GeckoHeader( - key: result[0]! as String, - value: result[1]! as String, - ); + return GeckoHeader(key: result[0]! as String, value: result[1]! as String); } @override @@ -5547,7 +5646,8 @@ class GeckoFetchRequest { } Object encode() { - return _toList(); } + return _toList(); + } static GeckoFetchRequest decode(Object result) { result as List; @@ -5577,7 +5677,19 @@ class GeckoFetchRequest { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(method, other.method) && _deepEquals(headers, other.headers) && _deepEquals(connectTimeoutMillis, other.connectTimeoutMillis) && _deepEquals(readTimeoutMillis, other.readTimeoutMillis) && _deepEquals(body, other.body) && _deepEquals(redirect, other.redirect) && _deepEquals(cookiePolicy, other.cookiePolicy) && _deepEquals(useCaches, other.useCaches) && _deepEquals(private, other.private) && _deepEquals(useOhttp, other.useOhttp) && _deepEquals(referrerUrl, other.referrerUrl) && _deepEquals(conservative, other.conservative); + return _deepEquals(url, other.url) && + _deepEquals(method, other.method) && + _deepEquals(headers, other.headers) && + _deepEquals(connectTimeoutMillis, other.connectTimeoutMillis) && + _deepEquals(readTimeoutMillis, other.readTimeoutMillis) && + _deepEquals(body, other.body) && + _deepEquals(redirect, other.redirect) && + _deepEquals(cookiePolicy, other.cookiePolicy) && + _deepEquals(useCaches, other.useCaches) && + _deepEquals(private, other.private) && + _deepEquals(useOhttp, other.useOhttp) && + _deepEquals(referrerUrl, other.referrerUrl) && + _deepEquals(conservative, other.conservative); } @override @@ -5607,16 +5719,12 @@ class GeckoFetchResponse { Uint8List body; List _toList() { - return [ - url, - status, - headers, - body, - ]; + return [url, status, headers, body]; } Object encode() { - return _toList(); } + return _toList(); + } static GeckoFetchResponse decode(Object result) { result as List; @@ -5637,7 +5745,10 @@ class GeckoFetchResponse { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(status, other.status) && _deepEquals(headers, other.headers) && _deepEquals(body, other.body); + return _deepEquals(url, other.url) && + _deepEquals(status, other.status) && + _deepEquals(headers, other.headers) && + _deepEquals(body, other.body); } @override @@ -5696,7 +5807,8 @@ class BookmarkNode { } Object encode() { - return _toList(); } + return _toList(); + } static BookmarkNode decode(Object result) { result as List; @@ -5722,7 +5834,15 @@ class BookmarkNode { if (identical(this, other)) { return true; } - return _deepEquals(type, other.type) && _deepEquals(guid, other.guid) && _deepEquals(parentGuid, other.parentGuid) && _deepEquals(position, other.position) && _deepEquals(title, other.title) && _deepEquals(url, other.url) && _deepEquals(dateAdded, other.dateAdded) && _deepEquals(lastModified, other.lastModified) && _deepEquals(children, other.children); + return _deepEquals(type, other.type) && + _deepEquals(guid, other.guid) && + _deepEquals(parentGuid, other.parentGuid) && + _deepEquals(position, other.position) && + _deepEquals(title, other.title) && + _deepEquals(url, other.url) && + _deepEquals(dateAdded, other.dateAdded) && + _deepEquals(lastModified, other.lastModified) && + _deepEquals(children, other.children); } @override @@ -5769,18 +5889,12 @@ class BookmarkImportNode { List children; List _toList() { - return [ - type, - title, - url, - dateAdded, - lastModified, - children, - ]; + return [type, title, url, dateAdded, lastModified, children]; } Object encode() { - return _toList(); } + return _toList(); + } static BookmarkImportNode decode(Object result) { result as List; @@ -5803,7 +5917,12 @@ class BookmarkImportNode { if (identical(this, other)) { return true; } - return _deepEquals(type, other.type) && _deepEquals(title, other.title) && _deepEquals(url, other.url) && _deepEquals(dateAdded, other.dateAdded) && _deepEquals(lastModified, other.lastModified) && _deepEquals(children, other.children); + return _deepEquals(type, other.type) && + _deepEquals(title, other.title) && + _deepEquals(url, other.url) && + _deepEquals(dateAdded, other.dateAdded) && + _deepEquals(lastModified, other.lastModified) && + _deepEquals(children, other.children); } @override @@ -5833,14 +5952,12 @@ class BookmarkInsertTreeResult { int failedNodeCount; List _toList() { - return [ - insertedItemCount, - failedNodeCount, - ]; + return [insertedItemCount, failedNodeCount]; } Object encode() { - return _toList(); } + return _toList(); + } static BookmarkInsertTreeResult decode(Object result) { result as List; @@ -5853,13 +5970,15 @@ class BookmarkInsertTreeResult { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! BookmarkInsertTreeResult || other.runtimeType != runtimeType) { + if (other is! BookmarkInsertTreeResult || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(insertedItemCount, other.insertedItemCount) && _deepEquals(failedNodeCount, other.failedNodeCount); + return _deepEquals(insertedItemCount, other.insertedItemCount) && + _deepEquals(failedNodeCount, other.failedNodeCount); } @override @@ -5874,12 +5993,7 @@ class BookmarkInsertTreeResult { /// Class for making alterations to any bookmark node class BookmarkInfo { - BookmarkInfo({ - this.parentGuid, - this.position, - this.title, - this.url, - }); + BookmarkInfo({this.parentGuid, this.position, this.title, this.url}); String? parentGuid; @@ -5890,16 +6004,12 @@ class BookmarkInfo { String? url; List _toList() { - return [ - parentGuid, - position, - title, - url, - ]; + return [parentGuid, position, title, url]; } Object encode() { - return _toList(); } + return _toList(); + } static BookmarkInfo decode(Object result) { result as List; @@ -5920,7 +6030,10 @@ class BookmarkInfo { if (identical(this, other)) { return true; } - return _deepEquals(parentGuid, other.parentGuid) && _deepEquals(position, other.position) && _deepEquals(title, other.title) && _deepEquals(url, other.url); + return _deepEquals(parentGuid, other.parentGuid) && + _deepEquals(position, other.position) && + _deepEquals(title, other.title) && + _deepEquals(url, other.url); } @override @@ -5996,7 +6109,8 @@ class SitePermissions { } Object encode() { - return _toList(); } + return _toList(); + } static SitePermissions decode(Object result) { result as List; @@ -6026,7 +6140,19 @@ class SitePermissions { if (identical(this, other)) { return true; } - return _deepEquals(origin, other.origin) && _deepEquals(camera, other.camera) && _deepEquals(microphone, other.microphone) && _deepEquals(location, other.location) && _deepEquals(notification, other.notification) && _deepEquals(persistentStorage, other.persistentStorage) && _deepEquals(crossOriginStorageAccess, other.crossOriginStorageAccess) && _deepEquals(mediaKeySystemAccess, other.mediaKeySystemAccess) && _deepEquals(localDeviceAccess, other.localDeviceAccess) && _deepEquals(localNetworkAccess, other.localNetworkAccess) && _deepEquals(autoplayAudible, other.autoplayAudible) && _deepEquals(autoplayInaudible, other.autoplayInaudible) && _deepEquals(savedAt, other.savedAt); + return _deepEquals(origin, other.origin) && + _deepEquals(camera, other.camera) && + _deepEquals(microphone, other.microphone) && + _deepEquals(location, other.location) && + _deepEquals(notification, other.notification) && + _deepEquals(persistentStorage, other.persistentStorage) && + _deepEquals(crossOriginStorageAccess, other.crossOriginStorageAccess) && + _deepEquals(mediaKeySystemAccess, other.mediaKeySystemAccess) && + _deepEquals(localDeviceAccess, other.localDeviceAccess) && + _deepEquals(localNetworkAccess, other.localNetworkAccess) && + _deepEquals(autoplayAudible, other.autoplayAudible) && + _deepEquals(autoplayInaudible, other.autoplayInaudible) && + _deepEquals(savedAt, other.savedAt); } @override @@ -6044,32 +6170,28 @@ class SitePermissions { /// This represents a site that has been added to the exceptions list, /// meaning tracking protection is disabled for this specific site. class TrackingProtectionException { - TrackingProtectionException({ - required this.url, - }); + TrackingProtectionException({required this.url}); String url; List _toList() { - return [ - url, - ]; + return [url]; } Object encode() { - return _toList(); } + return _toList(); + } static TrackingProtectionException decode(Object result) { result as List; - return TrackingProtectionException( - url: result[0]! as String, - ); + return TrackingProtectionException(url: result[0]! as String); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! TrackingProtectionException || other.runtimeType != runtimeType) { + if (other is! TrackingProtectionException || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -6139,7 +6261,8 @@ class AppLinkTarget { } Object encode() { - return _toList(); } + return _toList(); + } static AppLinkTarget decode(Object result) { result as List; @@ -6164,7 +6287,14 @@ class AppLinkTarget { if (identical(this, other)) { return true; } - return _deepEquals(url, other.url) && _deepEquals(appName, other.appName) && _deepEquals(packageName, other.packageName) && _deepEquals(fallbackUrl, other.fallbackUrl) && _deepEquals(isMarketplace, other.isMarketplace) && _deepEquals(isAmbiguous, other.isAmbiguous) && _deepEquals(engineSupportsScheme, other.engineSupportsScheme) && _deepEquals(scopeKey, other.scopeKey); + return _deepEquals(url, other.url) && + _deepEquals(appName, other.appName) && + _deepEquals(packageName, other.packageName) && + _deepEquals(fallbackUrl, other.fallbackUrl) && + _deepEquals(isMarketplace, other.isMarketplace) && + _deepEquals(isAmbiguous, other.isAmbiguous) && + _deepEquals(engineSupportsScheme, other.engineSupportsScheme) && + _deepEquals(scopeKey, other.scopeKey); } @override @@ -6198,16 +6328,12 @@ class ProtectedTargetPattern { int? port; List _toList() { - return [ - scheme, - hostOrSuffix, - includeSubdomains, - port, - ]; + return [scheme, hostOrSuffix, includeSubdomains, port]; } Object encode() { - return _toList(); } + return _toList(); + } static ProtectedTargetPattern decode(Object result) { result as List; @@ -6228,7 +6354,10 @@ class ProtectedTargetPattern { if (identical(this, other)) { return true; } - return _deepEquals(scheme, other.scheme) && _deepEquals(hostOrSuffix, other.hostOrSuffix) && _deepEquals(includeSubdomains, other.includeSubdomains) && _deepEquals(port, other.port); + return _deepEquals(scheme, other.scheme) && + _deepEquals(hostOrSuffix, other.hostOrSuffix) && + _deepEquals(includeSubdomains, other.includeSubdomains) && + _deepEquals(port, other.port); } @override @@ -6257,15 +6386,12 @@ class NativeAppLinkRule { String? packageName; List _toList() { - return [ - decision, - scope, - packageName, - ]; + return [decision, scope, packageName]; } Object encode() { - return _toList(); } + return _toList(); + } static NativeAppLinkRule decode(Object result) { result as List; @@ -6285,7 +6411,9 @@ class NativeAppLinkRule { if (identical(this, other)) { return true; } - return _deepEquals(decision, other.decision) && _deepEquals(scope, other.scope) && _deepEquals(packageName, other.packageName); + return _deepEquals(decision, other.decision) && + _deepEquals(scope, other.scope) && + _deepEquals(packageName, other.packageName); } @override @@ -6303,10 +6431,7 @@ class NativeAppLinkRule { /// navigation's source contextId has an entry here, it fully *replaces* the /// global mode + rules for that navigation (no layering with the global policy). class NativeContextAppLinkPolicy { - NativeContextAppLinkPolicy({ - required this.mode, - required this.rules, - }); + NativeContextAppLinkPolicy({required this.mode, required this.rules}); AppLinksMode mode; @@ -6314,27 +6439,27 @@ class NativeContextAppLinkPolicy { Map rules; List _toList() { - return [ - mode, - rules, - ]; + return [mode, rules]; } Object encode() { - return _toList(); } + return _toList(); + } static NativeContextAppLinkPolicy decode(Object result) { result as List; return NativeContextAppLinkPolicy( mode: result[0]! as AppLinksMode, - rules: (result[1]! as Map).cast(), + rules: (result[1]! as Map) + .cast(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NativeContextAppLinkPolicy || other.runtimeType != runtimeType) { + if (other is! NativeContextAppLinkPolicy || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -6405,19 +6530,23 @@ class AppLinkPolicySnapshot { } Object encode() { - return _toList(); } + return _toList(); + } static AppLinkPolicySnapshot decode(Object result) { result as List; return AppLinkPolicySnapshot( globalMode: result[0]! as AppLinksMode, - rules: (result[1]! as Map).cast(), + rules: (result[1]! as Map) + .cast(), marketplaceFallbackEnabled: result[2]! as bool, protectGeneralContext: result[3]! as bool, protectedContextIds: (result[4]! as List).cast(), strictContextIds: (result[5]! as List).cast(), - protectedTargetPatterns: (result[6]! as List).cast(), - contextOverrides: (result[7]! as Map).cast(), + protectedTargetPatterns: (result[6]! as List) + .cast(), + contextOverrides: (result[7]! as Map) + .cast(), ); } @@ -6430,7 +6559,17 @@ class AppLinkPolicySnapshot { if (identical(this, other)) { return true; } - return _deepEquals(globalMode, other.globalMode) && _deepEquals(rules, other.rules) && _deepEquals(marketplaceFallbackEnabled, other.marketplaceFallbackEnabled) && _deepEquals(protectGeneralContext, other.protectGeneralContext) && _deepEquals(protectedContextIds, other.protectedContextIds) && _deepEquals(strictContextIds, other.strictContextIds) && _deepEquals(protectedTargetPatterns, other.protectedTargetPatterns) && _deepEquals(contextOverrides, other.contextOverrides); + return _deepEquals(globalMode, other.globalMode) && + _deepEquals(rules, other.rules) && + _deepEquals( + marketplaceFallbackEnabled, + other.marketplaceFallbackEnabled, + ) && + _deepEquals(protectGeneralContext, other.protectGeneralContext) && + _deepEquals(protectedContextIds, other.protectedContextIds) && + _deepEquals(strictContextIds, other.strictContextIds) && + _deepEquals(protectedTargetPatterns, other.protectedTargetPatterns) && + _deepEquals(contextOverrides, other.contextOverrides); } @override @@ -6503,7 +6642,8 @@ class AppLinkPromptRequest { } Object encode() { - return _toList(); } + return _toList(); + } static AppLinkPromptRequest decode(Object result) { result as List; @@ -6531,7 +6671,17 @@ class AppLinkPromptRequest { if (identical(this, other)) { return true; } - return _deepEquals(requestId, other.requestId) && _deepEquals(owner, other.owner) && _deepEquals(tabId, other.tabId) && _deepEquals(contextId, other.contextId) && _deepEquals(sourceUrl, other.sourceUrl) && _deepEquals(isPrivate, other.isPrivate) && _deepEquals(isWallet, other.isWallet) && _deepEquals(isProtectedContext, other.isProtectedContext) && _deepEquals(canRemember, other.canRemember) && _deepEquals(isModal, other.isModal) && _deepEquals(target, other.target); + return _deepEquals(requestId, other.requestId) && + _deepEquals(owner, other.owner) && + _deepEquals(tabId, other.tabId) && + _deepEquals(contextId, other.contextId) && + _deepEquals(sourceUrl, other.sourceUrl) && + _deepEquals(isPrivate, other.isPrivate) && + _deepEquals(isWallet, other.isWallet) && + _deepEquals(isProtectedContext, other.isProtectedContext) && + _deepEquals(canRemember, other.canRemember) && + _deepEquals(isModal, other.isModal) && + _deepEquals(target, other.target); } @override @@ -6560,15 +6710,12 @@ class AppLinkResolutionResult { String? failureReason; List _toList() { - return [ - launched, - loadedFallback, - failureReason, - ]; + return [launched, loadedFallback, failureReason]; } Object encode() { - return _toList(); } + return _toList(); + } static AppLinkResolutionResult decode(Object result) { result as List; @@ -6588,7 +6735,9 @@ class AppLinkResolutionResult { if (identical(this, other)) { return true; } - return _deepEquals(launched, other.launched) && _deepEquals(loadedFallback, other.loadedFallback) && _deepEquals(failureReason, other.failureReason); + return _deepEquals(launched, other.launched) && + _deepEquals(loadedFallback, other.loadedFallback) && + _deepEquals(failureReason, other.failureReason); } @override @@ -6603,11 +6752,7 @@ class AppLinkResolutionResult { /// Represents an icon from a PWA manifest. class PwaIcon { - PwaIcon({ - required this.src, - this.sizes, - this.type, - }); + PwaIcon({required this.src, this.sizes, this.type}); String src; @@ -6616,15 +6761,12 @@ class PwaIcon { String? type; List _toList() { - return [ - src, - sizes, - type, - ]; + return [src, sizes, type]; } Object encode() { - return _toList(); } + return _toList(); + } static PwaIcon decode(Object result) { result as List; @@ -6644,7 +6786,9 @@ class PwaIcon { if (identical(this, other)) { return true; } - return _deepEquals(src, other.src) && _deepEquals(sizes, other.sizes) && _deepEquals(type, other.type); + return _deepEquals(src, other.src) && + _deepEquals(sizes, other.sizes) && + _deepEquals(type, other.type); } @override @@ -6659,24 +6803,19 @@ class PwaIcon { /// Represents a file entry in share target params. class ShareTargetFiles { - ShareTargetFiles({ - required this.name, - required this.accept, - }); + ShareTargetFiles({required this.name, required this.accept}); String name; List accept; List _toList() { - return [ - name, - accept, - ]; + return [name, accept]; } Object encode() { - return _toList(); } + return _toList(); + } static ShareTargetFiles decode(Object result) { result as List; @@ -6710,12 +6849,7 @@ class ShareTargetFiles { /// Represents share target params. class ShareTargetParams { - ShareTargetParams({ - this.title, - this.text, - this.url, - required this.files, - }); + ShareTargetParams({this.title, this.text, this.url, required this.files}); String? title; @@ -6726,16 +6860,12 @@ class ShareTargetParams { List files; List _toList() { - return [ - title, - text, - url, - files, - ]; + return [title, text, url, files]; } Object encode() { - return _toList(); } + return _toList(); + } static ShareTargetParams decode(Object result) { result as List; @@ -6756,7 +6886,10 @@ class ShareTargetParams { if (identical(this, other)) { return true; } - return _deepEquals(title, other.title) && _deepEquals(text, other.text) && _deepEquals(url, other.url) && _deepEquals(files, other.files); + return _deepEquals(title, other.title) && + _deepEquals(text, other.text) && + _deepEquals(url, other.url) && + _deepEquals(files, other.files); } @override @@ -6771,12 +6904,7 @@ class ShareTargetParams { /// Represents a share target for PWA. class ShareTarget { - ShareTarget({ - required this.action, - this.method, - this.encType, - this.params, - }); + ShareTarget({required this.action, this.method, this.encType, this.params}); String action; @@ -6787,16 +6915,12 @@ class ShareTarget { ShareTargetParams? params; List _toList() { - return [ - action, - method, - encType, - params, - ]; + return [action, method, encType, params]; } Object encode() { - return _toList(); } + return _toList(); + } static ShareTarget decode(Object result) { result as List; @@ -6817,7 +6941,10 @@ class ShareTarget { if (identical(this, other)) { return true; } - return _deepEquals(action, other.action) && _deepEquals(method, other.method) && _deepEquals(encType, other.encType) && _deepEquals(params, other.params); + return _deepEquals(action, other.action) && + _deepEquals(method, other.method) && + _deepEquals(encType, other.encType) && + _deepEquals(params, other.params); } @override @@ -6848,16 +6975,12 @@ class ExternalApplicationResource { String? minVersion; List _toList() { - return [ - platform, - url, - id, - minVersion, - ]; + return [platform, url, id, minVersion]; } Object encode() { - return _toList(); } + return _toList(); + } static ExternalApplicationResource decode(Object result) { result as List; @@ -6872,13 +6995,17 @@ class ExternalApplicationResource { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! ExternalApplicationResource || other.runtimeType != runtimeType) { + if (other is! ExternalApplicationResource || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(platform, other.platform) && _deepEquals(url, other.url) && _deepEquals(id, other.id) && _deepEquals(minVersion, other.minVersion); + return _deepEquals(platform, other.platform) && + _deepEquals(url, other.url) && + _deepEquals(id, other.id) && + _deepEquals(minVersion, other.minVersion); } @override @@ -6988,7 +7115,8 @@ class PwaManifest { } Object encode() { - return _toList(); } + return _toList(); + } static PwaManifest decode(Object result) { result as List; @@ -7005,7 +7133,8 @@ class PwaManifest { dir: result[9] as String?, lang: result[10] as String?, orientation: result[11] as String?, - relatedApplications: (result[12]! as List).cast(), + relatedApplications: (result[12]! as List) + .cast(), preferRelatedApplications: result[13]! as bool, shareTarget: result[14] as ShareTarget?, currentUrl: result[15]! as String, @@ -7023,7 +7152,27 @@ class PwaManifest { if (identical(this, other)) { return true; } - return _deepEquals(startUrl, other.startUrl) && _deepEquals(name, other.name) && _deepEquals(shortName, other.shortName) && _deepEquals(display, other.display) && _deepEquals(themeColor, other.themeColor) && _deepEquals(backgroundColor, other.backgroundColor) && _deepEquals(scope, other.scope) && _deepEquals(description, other.description) && _deepEquals(icons, other.icons) && _deepEquals(dir, other.dir) && _deepEquals(lang, other.lang) && _deepEquals(orientation, other.orientation) && _deepEquals(relatedApplications, other.relatedApplications) && _deepEquals(preferRelatedApplications, other.preferRelatedApplications) && _deepEquals(shareTarget, other.shareTarget) && _deepEquals(currentUrl, other.currentUrl) && _deepEquals(contextId, other.contextId) && _deepEquals(installLabel, other.installLabel); + return _deepEquals(startUrl, other.startUrl) && + _deepEquals(name, other.name) && + _deepEquals(shortName, other.shortName) && + _deepEquals(display, other.display) && + _deepEquals(themeColor, other.themeColor) && + _deepEquals(backgroundColor, other.backgroundColor) && + _deepEquals(scope, other.scope) && + _deepEquals(description, other.description) && + _deepEquals(icons, other.icons) && + _deepEquals(dir, other.dir) && + _deepEquals(lang, other.lang) && + _deepEquals(orientation, other.orientation) && + _deepEquals(relatedApplications, other.relatedApplications) && + _deepEquals( + preferRelatedApplications, + other.preferRelatedApplications, + ) && + _deepEquals(shareTarget, other.shareTarget) && + _deepEquals(currentUrl, other.currentUrl) && + _deepEquals(contextId, other.contextId) && + _deepEquals(installLabel, other.installLabel); } @override @@ -7066,17 +7215,12 @@ class SandboxCaptureEntry { String status; List _toList() { - return [ - tabId, - captureId, - sourceUrl, - redirectUrl, - status, - ]; + return [tabId, captureId, sourceUrl, redirectUrl, status]; } Object encode() { - return _toList(); } + return _toList(); + } static SandboxCaptureEntry decode(Object result) { result as List; @@ -7098,7 +7242,11 @@ class SandboxCaptureEntry { if (identical(this, other)) { return true; } - return _deepEquals(tabId, other.tabId) && _deepEquals(captureId, other.captureId) && _deepEquals(sourceUrl, other.sourceUrl) && _deepEquals(redirectUrl, other.redirectUrl) && _deepEquals(status, other.status); + return _deepEquals(tabId, other.tabId) && + _deepEquals(captureId, other.captureId) && + _deepEquals(sourceUrl, other.sourceUrl) && + _deepEquals(redirectUrl, other.redirectUrl) && + _deepEquals(status, other.status); } @override @@ -7165,7 +7313,8 @@ class GestureConfig { } Object encode() { - return _toList(); } + return _toList(); + } static GestureConfig decode(Object result) { result as List; @@ -7188,7 +7337,12 @@ class GestureConfig { if (identical(this, other)) { return true; } - return _deepEquals(enabled, other.enabled) && _deepEquals(strokeSize, other.strokeSize) && _deepEquals(timeoutMs, other.timeoutMs) && _deepEquals(maxFingers, other.maxFingers) && _deepEquals(minStrokeIntervalMs, other.minStrokeIntervalMs) && _deepEquals(activeGestureKeys, other.activeGestureKeys); + return _deepEquals(enabled, other.enabled) && + _deepEquals(strokeSize, other.strokeSize) && + _deepEquals(timeoutMs, other.timeoutMs) && + _deepEquals(maxFingers, other.maxFingers) && + _deepEquals(minStrokeIntervalMs, other.minStrokeIntervalMs) && + _deepEquals(activeGestureKeys, other.activeGestureKeys); } @override @@ -7202,10 +7356,7 @@ class GestureConfig { } class PushDistributor { - PushDistributor({ - required this.packageName, - this.label, - }); + PushDistributor({required this.packageName, this.label}); String packageName; @@ -7213,14 +7364,12 @@ class PushDistributor { String? label; List _toList() { - return [ - packageName, - label, - ]; + return [packageName, label]; } Object encode() { - return _toList(); } + return _toList(); + } static PushDistributor decode(Object result) { result as List; @@ -7239,7 +7388,8 @@ class PushDistributor { if (identical(this, other)) { return true; } - return _deepEquals(packageName, other.packageName) && _deepEquals(label, other.label); + return _deepEquals(packageName, other.packageName) && + _deepEquals(label, other.label); } @override @@ -7274,16 +7424,12 @@ class PushStatus { String? lastError; List _toList() { - return [ - status, - current, - available, - lastError, - ]; + return [status, current, available, lastError]; } Object encode() { - return _toList(); } + return _toList(); + } static PushStatus decode(Object result) { result as List; @@ -7304,7 +7450,10 @@ class PushStatus { if (identical(this, other)) { return true; } - return _deepEquals(status, other.status) && _deepEquals(current, other.current) && _deepEquals(available, other.available) && _deepEquals(lastError, other.lastError); + return _deepEquals(status, other.status) && + _deepEquals(current, other.current) && + _deepEquals(available, other.available) && + _deepEquals(lastError, other.lastError); } @override @@ -7318,10 +7467,7 @@ class PushStatus { } class PushSubscription { - PushSubscription({ - required this.scope, - required this.hasEndpoint, - }); + PushSubscription({required this.scope, required this.hasEndpoint}); /// Subscription identifier, which for web push is the site's origin. String scope; @@ -7330,14 +7476,12 @@ class PushSubscription { bool hasEndpoint; List _toList() { - return [ - scope, - hasEndpoint, - ]; + return [scope, hasEndpoint]; } Object encode() { - return _toList(); } + return _toList(); + } static PushSubscription decode(Object result) { result as List; @@ -7356,7 +7500,8 @@ class PushSubscription { if (identical(this, other)) { return true; } - return _deepEquals(scope, other.scope) && _deepEquals(hasEndpoint, other.hasEndpoint); + return _deepEquals(scope, other.scope) && + _deepEquals(hasEndpoint, other.hasEndpoint); } @override @@ -7369,7 +7514,6 @@ class PushSubscription { } } - // ignore: camel_case_types class _PigeonCodecOverflow { _PigeonCodecOverflow({required this.type, required this.wrapped}); @@ -7383,10 +7527,7 @@ class _PigeonCodecOverflow { static _PigeonCodecOverflow decode(Object result) { result as List; - return _PigeonCodecOverflow( - type: result[0]! as int, - wrapped: result[1], - ); + return _PigeonCodecOverflow(type: result[0]! as int, wrapped: result[1]); } Object? unwrap() { @@ -7435,438 +7576,480 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is RestoreLocation) { + } else if (value is RestoreLocation) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is IconType) { + } else if (value is IconType) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is IconSize) { + } else if (value is IconSize) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is IconSource) { + } else if (value is IconSource) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is CookieSameSiteStatus) { + } else if (value is CookieSameSiteStatus) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is VisitType) { + } else if (value is VisitType) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is FrecencyThresholdOption) { + } else if (value is FrecencyThresholdOption) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is DocumentType) { + } else if (value is DocumentType) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is SelectionPattern) { + } else if (value is SelectionPattern) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is WebExtensionActionType) { + } else if (value is WebExtensionActionType) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is AddonDisabledReason) { + } else if (value is AddonDisabledReason) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is AddonIncognito) { + } else if (value is AddonIncognito) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AddonUpdateStatus) { + } else if (value is AddonUpdateStatus) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is AddonStoreApp) { + } else if (value is AddonStoreApp) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is AddonStorePromoted) { + } else if (value is AddonStorePromoted) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is GeckoSuggestionType) { + } else if (value is GeckoSuggestionType) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrackingProtectionPolicy) { + } else if (value is TrackingProtectionPolicy) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is HttpsOnlyMode) { + } else if (value is HttpsOnlyMode) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is QueryParameterStripping) { + } else if (value is QueryParameterStripping) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is BounceTrackingProtectionMode) { + } else if (value is BounceTrackingProtectionMode) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value is ColorScheme) { + } else if (value is ColorScheme) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is CookieBannerHandlingMode) { + } else if (value is CookieBannerHandlingMode) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is AppLinksMode) { + } else if (value is AppLinksMode) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is WebContentIsolationStrategy) { + } else if (value is WebContentIsolationStrategy) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is CustomCookiePolicy) { + } else if (value is CustomCookiePolicy) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TrackingScope) { + } else if (value is TrackingScope) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is DohSettingsMode) { + } else if (value is DohSettingsMode) { buffer.putUint8(155); writeValue(buffer, value.index); - } else if (value is DownloadStatus) { + } else if (value is DownloadStatus) { buffer.putUint8(156); writeValue(buffer, value.index); - } else if (value is LogLevel) { + } else if (value is LogLevel) { buffer.putUint8(157); writeValue(buffer, value.index); - } else if (value is SyncEngineValue) { + } else if (value is SyncEngineValue) { buffer.putUint8(158); writeValue(buffer, value.index); - } else if (value is MlProgressType) { + } else if (value is MlProgressType) { buffer.putUint8(159); writeValue(buffer, value.index); - } else if (value is MlProgressStatus) { + } else if (value is MlProgressStatus) { buffer.putUint8(160); writeValue(buffer, value.index); - } else if (value is ClearDataType) { + } else if (value is ClearDataType) { buffer.putUint8(161); writeValue(buffer, value.index); - } else if (value is GeckoFetchMethod) { + } else if (value is GeckoFetchMethod) { buffer.putUint8(162); writeValue(buffer, value.index); - } else if (value is GeckoFetchRedircet) { + } else if (value is GeckoFetchRedircet) { buffer.putUint8(163); writeValue(buffer, value.index); - } else if (value is GeckoFetchCookiePolicy) { + } else if (value is GeckoFetchCookiePolicy) { buffer.putUint8(164); writeValue(buffer, value.index); - } else if (value is BookmarkNodeType) { + } else if (value is BookmarkNodeType) { buffer.putUint8(165); writeValue(buffer, value.index); - } else if (value is SitePermissionStatus) { + } else if (value is SitePermissionStatus) { buffer.putUint8(166); writeValue(buffer, value.index); - } else if (value is AutoplayStatus) { + } else if (value is AutoplayStatus) { buffer.putUint8(167); writeValue(buffer, value.index); - } else if (value is NativeAppLinkRuleDecision) { + } else if (value is NativeAppLinkRuleDecision) { buffer.putUint8(168); writeValue(buffer, value.index); - } else if (value is AppLinkPromptOwner) { + } else if (value is AppLinkPromptOwner) { buffer.putUint8(169); writeValue(buffer, value.index); - } else if (value is AppLinkDecision) { + } else if (value is AppLinkDecision) { buffer.putUint8(170); writeValue(buffer, value.index); - } else if (value is PushDistributorStatus) { + } else if (value is PushDistributorStatus) { buffer.putUint8(171); writeValue(buffer, value.index); - } else if (value is TranslationOptions) { + } else if (value is TranslationOptions) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is TranslationLanguage) { + } else if (value is TranslationLanguage) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is TranslationDetectedLanguages) { + } else if (value is TranslationDetectedLanguages) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is TranslationPair) { + } else if (value is TranslationPair) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is TranslationEngineStateData) { + } else if (value is TranslationEngineStateData) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is TabTranslationStateData) { + } else if (value is TabTranslationStateData) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is ReaderState) { + } else if (value is ReaderState) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is AddTabParams) { + } else if (value is AddTabParams) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is LastMediaAccessState) { + } else if (value is LastMediaAccessState) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is HistoryMetadataKey) { + } else if (value is HistoryMetadataKey) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is PackageCategoryValue) { + } else if (value is PackageCategoryValue) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is ExternalPackage) { + } else if (value is ExternalPackage) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is LoadUrlFlagsValue) { + } else if (value is LoadUrlFlagsValue) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is SourceValue) { + } else if (value is SourceValue) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is TabState) { + } else if (value is TabState) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is RecoverableTab) { + } else if (value is RecoverableTab) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is IconRequest) { + } else if (value is IconRequest) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is ResourceSize) { + } else if (value is ResourceSize) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is Resource) { + } else if (value is Resource) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is IconResult) { + } else if (value is IconResult) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is CookiePartitionKey) { + } else if (value is CookiePartitionKey) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is Cookie) { + } else if (value is Cookie) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is VisitInfo) { + } else if (value is VisitInfo) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is HistoryHighlightWeights) { + } else if (value is HistoryHighlightWeights) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is HistoryHighlight) { + } else if (value is HistoryHighlight) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is TopFrecentSiteInfo) { + } else if (value is TopFrecentSiteInfo) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is HistoryMetadata) { + } else if (value is HistoryMetadata) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is HistorySuggestion) { + } else if (value is HistorySuggestion) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is PageObservation) { + } else if (value is PageObservation) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is HistoryItem) { + } else if (value is HistoryItem) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is HistoryState) { + } else if (value is HistoryState) { buffer.putUint8(202); writeValue(buffer, value.encode()); - } else if (value is ReaderableState) { + } else if (value is ReaderableState) { buffer.putUint8(203); writeValue(buffer, value.encode()); - } else if (value is SecurityInfoState) { + } else if (value is SecurityInfoState) { buffer.putUint8(204); writeValue(buffer, value.encode()); - } else if (value is TabContentState) { + } else if (value is TabContentState) { buffer.putUint8(205); writeValue(buffer, value.encode()); - } else if (value is FindResultState) { + } else if (value is FindResultState) { buffer.putUint8(206); writeValue(buffer, value.encode()); - } else if (value is CustomSelectionAction) { + } else if (value is CustomSelectionAction) { buffer.putUint8(207); writeValue(buffer, value.encode()); - } else if (value is WebExtensionData) { + } else if (value is WebExtensionData) { buffer.putUint8(208); writeValue(buffer, value.encode()); - } else if (value is AddonInfo) { + } else if (value is AddonInfo) { buffer.putUint8(209); writeValue(buffer, value.encode()); - } else if (value is AddonListingPreview) { + } else if (value is AddonListingPreview) { buffer.putUint8(210); writeValue(buffer, value.encode()); - } else if (value is AddonListing) { + } else if (value is AddonListing) { buffer.putUint8(211); writeValue(buffer, value.encode()); - } else if (value is AddonStoreInfo) { + } else if (value is AddonStoreInfo) { buffer.putUint8(212); writeValue(buffer, value.encode()); - } else if (value is AddonUpdateAttemptInfo) { + } else if (value is AddonUpdateAttemptInfo) { buffer.putUint8(213); writeValue(buffer, value.encode()); - } else if (value is GeckoSuggestion) { + } else if (value is GeckoSuggestion) { buffer.putUint8(214); writeValue(buffer, value.encode()); - } else if (value is TabContent) { + } else if (value is TabContent) { buffer.putUint8(215); writeValue(buffer, value.encode()); - } else if (value is ContentBlocking) { + } else if (value is ContentBlocking) { buffer.putUint8(216); writeValue(buffer, value.encode()); - } else if (value is DohSettings) { + } else if (value is DohSettings) { buffer.putUint8(217); writeValue(buffer, value.encode()); - } else if (value is GeckoEngineSettings) { + } else if (value is GeckoEngineSettings) { buffer.putUint8(218); writeValue(buffer, value.encode()); - } else if (value is AutocompleteResult) { + } else if (value is AutocompleteResult) { buffer.putUint8(219); writeValue(buffer, value.encode()); - } else if (value is UnknownHitResult) { + } else if (value is UnknownHitResult) { buffer.putUint8(220); writeValue(buffer, value.encode()); - } else if (value is ImageHitResult) { + } else if (value is ImageHitResult) { buffer.putUint8(221); writeValue(buffer, value.encode()); - } else if (value is VideoHitResult) { + } else if (value is VideoHitResult) { buffer.putUint8(222); writeValue(buffer, value.encode()); - } else if (value is AudioHitResult) { + } else if (value is AudioHitResult) { buffer.putUint8(223); writeValue(buffer, value.encode()); - } else if (value is ImageSrcHitResult) { + } else if (value is ImageSrcHitResult) { buffer.putUint8(224); writeValue(buffer, value.encode()); - } else if (value is PhoneHitResult) { + } else if (value is PhoneHitResult) { buffer.putUint8(225); writeValue(buffer, value.encode()); - } else if (value is EmailHitResult) { + } else if (value is EmailHitResult) { buffer.putUint8(226); writeValue(buffer, value.encode()); - } else if (value is GeoHitResult) { + } else if (value is GeoHitResult) { buffer.putUint8(227); writeValue(buffer, value.encode()); - } else if (value is DownloadState) { + } else if (value is DownloadState) { buffer.putUint8(228); writeValue(buffer, value.encode()); - } else if (value is ShareInternetResourceState) { + } else if (value is ShareInternetResourceState) { buffer.putUint8(229); writeValue(buffer, value.encode()); - } else if (value is AddonCollection) { + } else if (value is AddonCollection) { buffer.putUint8(230); writeValue(buffer, value.encode()); - } else if (value is SyncEngineStatus) { + } else if (value is SyncEngineStatus) { buffer.putUint8(231); writeValue(buffer, value.encode()); - } else if (value is SyncAccountInfo) { + } else if (value is SyncAccountInfo) { buffer.putUint8(232); writeValue(buffer, value.encode()); - } else if (value is SyncDevice) { + } else if (value is SyncDevice) { buffer.putUint8(233); writeValue(buffer, value.encode()); - } else if (value is SyncIncomingTab) { + } else if (value is SyncIncomingTab) { buffer.putUint8(234); writeValue(buffer, value.encode()); - } else if (value is SyncRemoteTab) { + } else if (value is SyncRemoteTab) { buffer.putUint8(235); writeValue(buffer, value.encode()); - } else if (value is SyncDeviceTabs) { + } else if (value is SyncDeviceTabs) { buffer.putUint8(236); writeValue(buffer, value.encode()); - } else if (value is GeckoPref) { + } else if (value is GeckoPref) { buffer.putUint8(237); writeValue(buffer, value.encode()); - } else if (value is MlProgressData) { + } else if (value is MlProgressData) { buffer.putUint8(238); writeValue(buffer, value.encode()); - } else if (value is GeckoProxySettings) { + } else if (value is GeckoProxySettings) { buffer.putUint8(239); writeValue(buffer, value.encode()); - } else if (value is ContainerSiteAssignment) { + } else if (value is ContainerSiteAssignment) { buffer.putUint8(240); writeValue(buffer, value.encode()); - } else if (value is ProxyLoadError) { + } else if (value is ProxyLoadError) { buffer.putUint8(241); writeValue(buffer, value.encode()); - } else if (value is GeckoHeader) { + } else if (value is GeckoHeader) { buffer.putUint8(242); writeValue(buffer, value.encode()); - } else if (value is GeckoFetchRequest) { + } else if (value is GeckoFetchRequest) { buffer.putUint8(243); writeValue(buffer, value.encode()); - } else if (value is GeckoFetchResponse) { + } else if (value is GeckoFetchResponse) { buffer.putUint8(244); writeValue(buffer, value.encode()); - } else if (value is BookmarkNode) { + } else if (value is BookmarkNode) { buffer.putUint8(245); writeValue(buffer, value.encode()); - } else if (value is BookmarkImportNode) { + } else if (value is BookmarkImportNode) { buffer.putUint8(246); writeValue(buffer, value.encode()); - } else if (value is BookmarkInsertTreeResult) { + } else if (value is BookmarkInsertTreeResult) { buffer.putUint8(247); writeValue(buffer, value.encode()); - } else if (value is BookmarkInfo) { + } else if (value is BookmarkInfo) { buffer.putUint8(248); writeValue(buffer, value.encode()); - } else if (value is SitePermissions) { + } else if (value is SitePermissions) { buffer.putUint8(249); writeValue(buffer, value.encode()); - } else if (value is TrackingProtectionException) { + } else if (value is TrackingProtectionException) { buffer.putUint8(250); writeValue(buffer, value.encode()); - } else if (value is AppLinkTarget) { + } else if (value is AppLinkTarget) { buffer.putUint8(251); writeValue(buffer, value.encode()); - } else if (value is ProtectedTargetPattern) { + } else if (value is ProtectedTargetPattern) { buffer.putUint8(252); writeValue(buffer, value.encode()); - } else if (value is NativeAppLinkRule) { + } else if (value is NativeAppLinkRule) { buffer.putUint8(253); writeValue(buffer, value.encode()); - } else if (value is NativeContextAppLinkPolicy) { + } else if (value is NativeContextAppLinkPolicy) { buffer.putUint8(254); writeValue(buffer, value.encode()); - } else if (value is AppLinkPolicySnapshot) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 0, wrapped: value.encode()); + } else if (value is AppLinkPolicySnapshot) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 0, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is AppLinkPromptRequest) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 1, wrapped: value.encode()); + } else if (value is AppLinkPromptRequest) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 1, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is AppLinkResolutionResult) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 2, wrapped: value.encode()); + } else if (value is AppLinkResolutionResult) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 2, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is PwaIcon) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 3, wrapped: value.encode()); + } else if (value is PwaIcon) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 3, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is ShareTargetFiles) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 4, wrapped: value.encode()); + } else if (value is ShareTargetFiles) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 4, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is ShareTargetParams) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 5, wrapped: value.encode()); + } else if (value is ShareTargetParams) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 5, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is ShareTarget) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 6, wrapped: value.encode()); + } else if (value is ShareTarget) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 6, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is ExternalApplicationResource) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 7, wrapped: value.encode()); + } else if (value is ExternalApplicationResource) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 7, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is PwaManifest) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 8, wrapped: value.encode()); + } else if (value is PwaManifest) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 8, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is SandboxCaptureEntry) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 9, wrapped: value.encode()); + } else if (value is SandboxCaptureEntry) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 9, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is GestureConfig) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 10, wrapped: value.encode()); + } else if (value is GestureConfig) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 10, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is PushDistributor) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 11, wrapped: value.encode()); + } else if (value is PushDistributor) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 11, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is PushStatus) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 12, wrapped: value.encode()); + } else if (value is PushStatus) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 12, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); - } else if (value is PushSubscription) { - final _PigeonCodecOverflow wrap = _PigeonCodecOverflow(type: 13, wrapped: value.encode()); + } else if (value is PushSubscription) { + final _PigeonCodecOverflow wrap = _PigeonCodecOverflow( + type: 13, + wrapped: value.encode(), + ); buffer.putUint8(255); writeValue(buffer, wrap.encode()); } else { @@ -7936,7 +8119,9 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : QueryParameterStripping.values[value]; case 148: final value = readValue(buffer) as int?; - return value == null ? null : BounceTrackingProtectionMode.values[value]; + return value == null + ? null + : BounceTrackingProtectionMode.values[value]; case 149: final value = readValue(buffer) as int?; return value == null ? null : ColorScheme.values[value]; @@ -8173,7 +8358,9 @@ class _PigeonCodec extends StandardMessageCodec { case 254: return NativeContextAppLinkPolicy.decode(readValue(buffer)!); case 255: - final _PigeonCodecOverflow wrapper = _PigeonCodecOverflow.decode(readValue(buffer)!); + final _PigeonCodecOverflow wrapper = _PigeonCodecOverflow.decode( + readValue(buffer)!, + ); return wrapper.unwrap(); default: return super.readValueOfType(type, buffer); @@ -8185,9 +8372,13 @@ class GeckoBrowserApi { /// Constructor for [GeckoBrowserApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoBrowserApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoBrowserApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -8195,7 +8386,8 @@ class GeckoBrowserApi { final String pigeonVar_messageChannelSuffix; Future getGeckoVersion() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.getGeckoVersion$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.getGeckoVersion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8205,34 +8397,55 @@ class GeckoBrowserApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } - Future initialize(String profileFolder, LogLevel logLevel, ContentBlocking contentBlocking, AddonCollection? addonCollection, String? fxaServerOverride, String? syncTokenServerOverride, GeckoEngineSettings? startupSettings, String? startupUBlockFilterListsPref, bool clearStartupUBlockFilterListsPref) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.initialize$pigeonVar_messageChannelSuffix'; + Future initialize( + String profileFolder, + LogLevel logLevel, + ContentBlocking contentBlocking, + AddonCollection? addonCollection, + String? fxaServerOverride, + String? syncTokenServerOverride, + GeckoEngineSettings? startupSettings, + String? startupUBlockFilterListsPref, + bool clearStartupUBlockFilterListsPref, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.initialize$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([profileFolder, logLevel, contentBlocking, addonCollection, fxaServerOverride, syncTokenServerOverride, startupSettings, startupUBlockFilterListsPref, clearStartupUBlockFilterListsPref]); + final Future pigeonVar_sendFuture = pigeonVar_channel + .send([ + profileFolder, + logLevel, + contentBlocking, + addonCollection, + fxaServerOverride, + syncTokenServerOverride, + startupSettings, + startupUBlockFilterListsPref, + clearStartupUBlockFilterListsPref, + ]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future showNativeFragment() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.showNativeFragment$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.showNativeFragment$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8242,52 +8455,60 @@ class GeckoBrowserApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } Future onTrimMemory(int level) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.onTrimMemory$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.onTrimMemory$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([level]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [level], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future openInCustomTab({required String url, required bool private, required String? contextId, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.openInCustomTab$pigeonVar_messageChannelSuffix'; + Future openInCustomTab({ + required String url, + required bool private, + required String? contextId, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.openInCustomTab$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, private, contextId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url, private, contextId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future isDefaultBrowser() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.isDefaultBrowser$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.isDefaultBrowser$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8297,16 +8518,16 @@ class GeckoBrowserApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } Future requestDefaultBrowser() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.requestDefaultBrowser$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.requestDefaultBrowser$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8316,15 +8537,15 @@ class GeckoBrowserApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future shutdown() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.shutdown$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserApi.shutdown$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8334,11 +8555,10 @@ class GeckoBrowserApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -8346,9 +8566,13 @@ class GeckoSyncApi { /// Constructor for [GeckoSyncApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoSyncApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoSyncApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -8356,7 +8580,8 @@ class GeckoSyncApi { final String pigeonVar_messageChannelSuffix; Future getAccountInfo() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getAccountInfo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getAccountInfo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8366,16 +8591,16 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as SyncAccountInfo; } Future beginAuthentication() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.beginAuthentication$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.beginAuthentication$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8385,33 +8610,35 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future beginPairingAuthentication(String pairingUrl) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.beginPairingAuthentication$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.beginPairingAuthentication$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([pairingUrl]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [pairingUrl], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future logout() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.logout$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.logout$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8421,15 +8648,15 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future syncNow() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.syncNow$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.syncNow$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8439,33 +8666,35 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future setEngineEnabled(SyncEngineValue engine, bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.setEngineEnabled$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.setEngineEnabled$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([engine, enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [engine, enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future> getSyncedTabs() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getSyncedTabs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getSyncedTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8475,16 +8704,16 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } Future> getDevices() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getDevices$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getDevices$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8494,35 +8723,42 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } - Future sendTabToDevice(String deviceId, String title, String url, bool private) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.sendTabToDevice$pigeonVar_messageChannelSuffix'; + Future sendTabToDevice( + String deviceId, + String title, + String url, + bool private, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.sendTabToDevice$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([deviceId, title, url, private]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [deviceId, title, url, private], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } Future refreshDevices() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.refreshDevices$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.refreshDevices$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8532,15 +8768,15 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future pollDeviceCommands() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.pollDeviceCommands$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.pollDeviceCommands$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8550,15 +8786,15 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future> drainIncomingTabs() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.drainIncomingTabs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.drainIncomingTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8568,16 +8804,16 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } Future getDeviceName() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getDeviceName$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.getDeviceName$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8587,30 +8823,31 @@ class GeckoSyncApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } Future setDeviceName(String newName) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.setDeviceName$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncApi.setDeviceName$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([newName]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [newName], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } } @@ -8619,9 +8856,13 @@ class GeckoEngineSettingsApi { /// Constructor for [GeckoEngineSettingsApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoEngineSettingsApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoEngineSettingsApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -8629,99 +8870,110 @@ class GeckoEngineSettingsApi { final String pigeonVar_messageChannelSuffix; Future setDefaultSettings(GeckoEngineSettings settings) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setDefaultSettings$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setDefaultSettings$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [settings], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future updateRuntimeSettings(GeckoEngineSettings settings) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.updateRuntimeSettings$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.updateRuntimeSettings$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [settings], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future setScreenshotProtectionEnabled(bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setScreenshotProtectionEnabled$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setScreenshotProtectionEnabled$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future setPullToRefreshEnabled(bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setPullToRefreshEnabled$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setPullToRefreshEnabled$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Sets whether to use external download managers for downloads. /// When enabled, downloads are forwarded to third-party apps like ADM, 1DM, AB DM. Future setUseExternalDownloadManager(bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setUseExternalDownloadManager$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setUseExternalDownloadManager$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future getUseExternalDownloadManager() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.getUseExternalDownloadManager$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.getUseExternalDownloadManager$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -8731,11 +8983,10 @@ class GeckoEngineSettingsApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } @@ -8747,22 +8998,27 @@ class GeckoEngineSettingsApi { /// currently open tabs (loaded tabs are reloaded, suspended tabs are updated /// in place). This should only be requested for an explicit user toggle, not /// during startup/replication restore, to avoid clobbering per-tab overrides. - Future setGlobalDesktopMode(bool enable, bool applyToExistingTabs) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setGlobalDesktopMode$pigeonVar_messageChannelSuffix'; + Future setGlobalDesktopMode( + bool enable, + bool applyToExistingTabs, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setGlobalDesktopMode$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enable, applyToExistingTabs]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enable, applyToExistingTabs], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Sets whether the reader view dark color scheme should be rendered as pure @@ -8770,21 +9026,23 @@ class GeckoEngineSettingsApi { /// Mozilla's reader view extension. Persisted in SharedPreferences so a /// cold-started reader view resolves the right value before Flutter runs. Future setReaderViewPureBlack(bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setReaderViewPureBlack$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setReaderViewPureBlack$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// The set of Gecko contextual-identity ids ("container" contextIds) whose @@ -8792,21 +9050,23 @@ class GeckoEngineSettingsApi { /// exclude-from-history / "incognito container"). WebLibreHistoryDelegate /// skips the Places write for a visit resolved to one of these containers. Future setExcludedHistoryContextIds(List contextIds) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setExcludedHistoryContextIds$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoEngineSettingsApi.setExcludedHistoryContextIds$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextIds]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextIds], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -8814,269 +9074,332 @@ class GeckoSessionApi { /// Constructor for [GeckoSessionApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoSessionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoSessionApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future loadUrl({required String? tabId, required String url, required LoadUrlFlagsValue flags, required Map? additionalHeaders, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.loadUrl$pigeonVar_messageChannelSuffix'; + Future loadUrl({ + required String? tabId, + required String url, + required LoadUrlFlagsValue flags, + required Map? additionalHeaders, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.loadUrl$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, url, flags, additionalHeaders]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, url, flags, additionalHeaders], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future loadData({required String? tabId, required String data, required String mimeType, required String encoding, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.loadData$pigeonVar_messageChannelSuffix'; + Future loadData({ + required String? tabId, + required String data, + required String mimeType, + required String encoding, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.loadData$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, data, mimeType, encoding]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, data, mimeType, encoding], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future reload({required String? tabId, required LoadUrlFlagsValue flags}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.reload$pigeonVar_messageChannelSuffix'; + Future reload({ + required String? tabId, + required LoadUrlFlagsValue flags, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.reload$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, flags]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, flags], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future stopLoading({required String? tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.stopLoading$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.stopLoading$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future goBack({required String? tabId, required bool userInteraction}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.goBack$pigeonVar_messageChannelSuffix'; + Future goBack({ + required String? tabId, + required bool userInteraction, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.goBack$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, userInteraction]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, userInteraction], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future goForward({required String? tabId, required bool userInteraction}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.goForward$pigeonVar_messageChannelSuffix'; + Future goForward({ + required String? tabId, + required bool userInteraction, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.goForward$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, userInteraction]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, userInteraction], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future goToHistoryIndex({required int index, required String? tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.goToHistoryIndex$pigeonVar_messageChannelSuffix'; + Future goToHistoryIndex({ + required int index, + required String? tabId, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.goToHistoryIndex$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([index, tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [index, tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future requestDesktopSite({required String? tabId, required bool enable}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.requestDesktopSite$pigeonVar_messageChannelSuffix'; + Future requestDesktopSite({ + required String? tabId, + required bool enable, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.requestDesktopSite$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, enable]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, enable], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future exitFullscreen({required String? tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.exitFullscreen$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.exitFullscreen$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future saveToPdf({required String? tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.saveToPdf$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.saveToPdf$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future printContent({required String? tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.printContent$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.printContent$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future translate({required String? tabId, required String fromLanguage, required String toLanguage, required TranslationOptions? options, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.translate$pigeonVar_messageChannelSuffix'; + Future translate({ + required String? tabId, + required String fromLanguage, + required String toLanguage, + required TranslationOptions? options, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.translate$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, fromLanguage, toLanguage, options]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, fromLanguage, toLanguage, options], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future translateRestore({required String? tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.translateRestore$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.translateRestore$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future crashRecovery({required List? tabIds}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.crashRecovery$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.crashRecovery$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabIds]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabIds], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future purgeHistory() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.purgeHistory$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.purgeHistory$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -9086,66 +9409,74 @@ class GeckoSessionApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future updateLastAccess({required String? tabId, required int? lastAccess}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.updateLastAccess$pigeonVar_messageChannelSuffix'; + Future updateLastAccess({ + required String? tabId, + required int? lastAccess, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.updateLastAccess$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, lastAccess]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, lastAccess], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future requestScreenshot(bool sendBack) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.requestScreenshot$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.requestScreenshot$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([sendBack]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [sendBack], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as Uint8List?; } Future dispatchKeyEvent({required int keyCode}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.dispatchKeyEvent$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSessionApi.dispatchKeyEvent$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([keyCode]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [keyCode], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -9153,145 +9484,219 @@ class GeckoTabsApi { /// Constructor for [GeckoTabsApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoTabsApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoTabsApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future syncEvents({required bool onSelectedTabChange, required bool onTabListChange, required bool onRestoreComplete, required bool onTabContentStateChange, required bool onIconChange, required bool onSecurityInfoStateChange, required bool onReaderableStateChange, required bool onHistoryStateChange, required bool onFindResults, required bool onThumbnailChange, required bool onBrowserExtensionsChange, required bool onPageExtensionsChange, required bool onBrowserExtensionIcons, required bool onPageExtensionIcons, required bool onTranslationStateChange, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.syncEvents$pigeonVar_messageChannelSuffix'; + Future syncEvents({ + required bool onSelectedTabChange, + required bool onTabListChange, + required bool onRestoreComplete, + required bool onTabContentStateChange, + required bool onIconChange, + required bool onSecurityInfoStateChange, + required bool onReaderableStateChange, + required bool onHistoryStateChange, + required bool onFindResults, + required bool onThumbnailChange, + required bool onBrowserExtensionsChange, + required bool onPageExtensionsChange, + required bool onBrowserExtensionIcons, + required bool onPageExtensionIcons, + required bool onTranslationStateChange, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.syncEvents$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([onSelectedTabChange, onTabListChange, onRestoreComplete, onTabContentStateChange, onIconChange, onSecurityInfoStateChange, onReaderableStateChange, onHistoryStateChange, onFindResults, onThumbnailChange, onBrowserExtensionsChange, onPageExtensionsChange, onBrowserExtensionIcons, onPageExtensionIcons, onTranslationStateChange]); + final Future pigeonVar_sendFuture = pigeonVar_channel + .send([ + onSelectedTabChange, + onTabListChange, + onRestoreComplete, + onTabContentStateChange, + onIconChange, + onSecurityInfoStateChange, + onReaderableStateChange, + onHistoryStateChange, + onFindResults, + onThumbnailChange, + onBrowserExtensionsChange, + onPageExtensionsChange, + onBrowserExtensionIcons, + onPageExtensionIcons, + onTranslationStateChange, + ]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future selectTab({required String tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.selectTab$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.selectTab$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future removeTab({required String tabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeTab$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeTab$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future addTab({required String url, required bool selectTab, required bool startLoading, required String? parentId, required LoadUrlFlagsValue flags, required String? contextId, required SourceValue source, required bool private, required HistoryMetadataKey? historyMetadata, required Map? additionalHeaders, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.addTab$pigeonVar_messageChannelSuffix'; + Future addTab({ + required String url, + required bool selectTab, + required bool startLoading, + required String? parentId, + required LoadUrlFlagsValue flags, + required String? contextId, + required SourceValue source, + required bool private, + required HistoryMetadataKey? historyMetadata, + required Map? additionalHeaders, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.addTab$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, selectTab, startLoading, parentId, flags, contextId, source, private, historyMetadata, additionalHeaders]); + final Future pigeonVar_sendFuture = pigeonVar_channel + .send([ + url, + selectTab, + startLoading, + parentId, + flags, + contextId, + source, + private, + historyMetadata, + additionalHeaders, + ]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } - Future> addMultipleTabs({required List tabs, required String? selectTabId}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.addMultipleTabs$pigeonVar_messageChannelSuffix'; + Future> addMultipleTabs({ + required List tabs, + required String? selectTabId, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.addMultipleTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabs, selectTabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabs, selectTabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } Future removeAllTabs({required bool recoverable}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeAllTabs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeAllTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([recoverable]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [recoverable], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future removeTabs({required List ids}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeTabs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([ids]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [ids], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future removeNormalTabs() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeNormalTabs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removeNormalTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -9301,15 +9706,15 @@ class GeckoTabsApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future removePrivateTabs() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removePrivateTabs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.removePrivateTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -9319,15 +9724,15 @@ class GeckoTabsApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future undo() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.undo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.undo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -9337,125 +9742,160 @@ class GeckoTabsApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future restoreTabsByList({required List tabs, required String? selectTabId, required RestoreLocation restoreLocation, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.restoreTabsByList$pigeonVar_messageChannelSuffix'; + Future restoreTabsByList({ + required List tabs, + required String? selectTabId, + required RestoreLocation restoreLocation, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.restoreTabsByList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabs, selectTabId, restoreLocation]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabs, selectTabId, restoreLocation], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Selects an already existing tab with the matching [HistoryMetadataKey] or otherwise /// creates a new tab with the given [url]. - Future selectOrAddTabByHistory({required String url, required HistoryMetadataKey historyMetadata}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.selectOrAddTabByHistory$pigeonVar_messageChannelSuffix'; + Future selectOrAddTabByHistory({ + required String url, + required HistoryMetadataKey historyMetadata, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.selectOrAddTabByHistory$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, historyMetadata]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url, historyMetadata], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } /// Selects an already existing tab displaying [url] or otherwise creates a new tab. - Future selectOrAddTabByUrl({required String url, required bool private, required SourceValue source, required LoadUrlFlagsValue flags, required bool ignoreFragment, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.selectOrAddTabByUrl$pigeonVar_messageChannelSuffix'; + Future selectOrAddTabByUrl({ + required String url, + required bool private, + required SourceValue source, + required LoadUrlFlagsValue flags, + required bool ignoreFragment, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.selectOrAddTabByUrl$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, private, source, flags, ignoreFragment]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url, private, source, flags, ignoreFragment], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } - Future duplicateTab({required String? selectTabId, required bool selectNewTab, required String? newContextId, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.duplicateTab$pigeonVar_messageChannelSuffix'; + Future duplicateTab({ + required String? selectTabId, + required bool selectNewTab, + required String? newContextId, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.duplicateTab$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([selectTabId, selectNewTab, newContextId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [selectTabId, selectNewTab, newContextId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } - Future moveTabs({required List tabIds, required String targetTabId, required bool placeAfter, }) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.moveTabs$pigeonVar_messageChannelSuffix'; + Future moveTabs({ + required List tabIds, + required String targetTabId, + required bool placeAfter, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.moveTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabIds, targetTabId, placeAfter]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabIds, targetTabId, placeAfter], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future migratePrivateTabUseCase({required String tabId, required String? alternativeUrl}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.migratePrivateTabUseCase$pigeonVar_messageChannelSuffix'; + Future migratePrivateTabUseCase({ + required String tabId, + required String? alternativeUrl, + }) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabsApi.migratePrivateTabUseCase$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, alternativeUrl]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, alternativeUrl], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } } @@ -9464,9 +9904,13 @@ class GeckoFindApi { /// Constructor for [GeckoFindApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoFindApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoFindApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9474,57 +9918,63 @@ class GeckoFindApi { final String pigeonVar_messageChannelSuffix; Future findAll(String? tabId, String text) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFindApi.findAll$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFindApi.findAll$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, text]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, text], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future findNext(String? tabId, bool forward) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFindApi.findNext$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFindApi.findNext$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, forward]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, forward], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future clearMatches(String? tabId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFindApi.clearMatches$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFindApi.clearMatches$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -9532,9 +9982,13 @@ class GeckoIconsApi { /// Constructor for [GeckoIconsApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoIconsApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoIconsApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9542,21 +9996,23 @@ class GeckoIconsApi { final String pigeonVar_messageChannelSuffix; Future loadIcon(IconRequest request) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoIconsApi.loadIcon$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoIconsApi.loadIcon$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [request], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as IconResult; } } @@ -9565,9 +10021,13 @@ class GeckoPrefApi { /// Constructor for [GeckoPrefApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoPrefApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoPrefApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9575,63 +10035,72 @@ class GeckoPrefApi { final String pigeonVar_messageChannelSuffix; Future> getPrefs(List preferenceFilter) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.getPrefs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.getPrefs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([preferenceFilter]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [preferenceFilter], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; - return (pigeonVar_replyValue! as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); + return (pigeonVar_replyValue! as Map) + .cast(); } Future> applyPrefs(Map prefs) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.applyPrefs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.applyPrefs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([prefs]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [prefs], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; - return (pigeonVar_replyValue! as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); + return (pigeonVar_replyValue! as Map) + .cast(); } Future resetPrefs(List preferenceNames) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.resetPrefs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.resetPrefs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([preferenceNames]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [preferenceNames], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future startObserveChanges() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.startObserveChanges$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.startObserveChanges$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -9641,15 +10110,15 @@ class GeckoPrefApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future stopObserveChanges() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.stopObserveChanges$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.stopObserveChanges$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -9659,47 +10128,50 @@ class GeckoPrefApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future registerPrefForObservation(String name) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.registerPrefForObservation$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.registerPrefForObservation$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([name]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [name], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future unregisterPrefForObservation(String name) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.unregisterPrefForObservation$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPrefApi.unregisterPrefForObservation$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([name]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [name], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -9707,9 +10179,13 @@ class GeckoMlApi { /// Constructor for [GeckoMlApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoMlApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoMlApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9717,45 +10193,52 @@ class GeckoMlApi { final String pigeonVar_messageChannelSuffix; Future predictDocumentTopic(List documents) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoMlApi.predictDocumentTopic$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoMlApi.predictDocumentTopic$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([documents]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [documents], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } - Future> generateDocumentEmbeddings(List documents) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoMlApi.generateDocumentEmbeddings$pigeonVar_messageChannelSuffix'; + Future> generateDocumentEmbeddings( + List documents, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoMlApi.generateDocumentEmbeddings$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([documents]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [documents], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as List; } Future clearMlCache() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoMlApi.clearMlCache$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoMlApi.clearMlCache$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -9765,11 +10248,10 @@ class GeckoMlApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -9777,9 +10259,13 @@ class GeckoBrowserExtensionApi { /// Constructor for [GeckoBrowserExtensionApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoBrowserExtensionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoBrowserExtensionApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9787,21 +10273,23 @@ class GeckoBrowserExtensionApi { final String pigeonVar_messageChannelSuffix; Future> getMarkdown(List htmlList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserExtensionApi.getMarkdown$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBrowserExtensionApi.getMarkdown$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([htmlList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [htmlList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } } @@ -9810,9 +10298,13 @@ class GeckoContainerProxyApi { /// Constructor for [GeckoContainerProxyApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoContainerProxyApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoContainerProxyApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9820,183 +10312,209 @@ class GeckoContainerProxyApi { final String pigeonVar_messageChannelSuffix; Future setProxyPort(int port) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setProxyPort$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setProxyPort$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([port]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [port], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future addContainerProxy(String contextId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.addContainerProxy$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.addContainerProxy$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future removeContainerProxy(String contextId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.removeContainerProxy$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.removeContainerProxy$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future upsertProxy(GeckoProxySettings proxy) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.upsertProxy$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.upsertProxy$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([proxy]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [proxy], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future removeProxy(String proxyId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.removeProxy$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.removeProxy$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([proxyId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [proxyId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future setContainerProxy(String contextId, String proxyId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setContainerProxy$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setContainerProxy$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextId, proxyId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextId, proxyId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future setContainerDirectConnection(String contextId, String scopeId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setContainerDirectConnection$pigeonVar_messageChannelSuffix'; + Future setContainerDirectConnection( + String contextId, + String scopeId, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setContainerDirectConnection$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextId, scopeId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextId, scopeId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future clearContainerProxy(String contextId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.clearContainerProxy$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.clearContainerProxy$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future removeContainerProxyRelation(String contextId, String proxyId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.removeContainerProxyRelation$pigeonVar_messageChannelSuffix'; + Future removeContainerProxyRelation( + String contextId, + String proxyId, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.removeContainerProxyRelation$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextId, proxyId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextId, proxyId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future setSiteAssignments(Map assignments) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setSiteAssignments$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setSiteAssignments$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([assignments]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [assignments], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Strict-mode enforcement map. Keys are Gecko cookie-store contexts to @@ -10007,25 +10525,28 @@ class GeckoContainerProxyApi { /// equivalence); any other top-level navigation is cancelled and reported /// back with `strict = true`. Future setStrictContexts(Map> contexts) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setStrictContexts$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.setStrictContexts$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contexts]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contexts], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future healthcheck() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.healthcheck$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoContainerProxyApi.healthcheck$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -10035,11 +10556,10 @@ class GeckoContainerProxyApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } } @@ -10048,87 +10568,143 @@ class GeckoCookieApi { /// Constructor for [GeckoCookieApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoCookieApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoCookieApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future getCookie(String? firstPartyDomain, String name, CookiePartitionKey? partitionKey, String? storeId, String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.getCookie$pigeonVar_messageChannelSuffix'; + Future getCookie( + String? firstPartyDomain, + String name, + CookiePartitionKey? partitionKey, + String? storeId, + String url, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.getCookie$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([firstPartyDomain, name, partitionKey, storeId, url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [firstPartyDomain, name, partitionKey, storeId, url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as Cookie; } - Future> getAllCookies(String? domain, String? firstPartyDomain, String? name, CookiePartitionKey? partitionKey, String? storeId, String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.getAllCookies$pigeonVar_messageChannelSuffix'; + Future> getAllCookies( + String? domain, + String? firstPartyDomain, + String? name, + CookiePartitionKey? partitionKey, + String? storeId, + String url, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.getAllCookies$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([domain, firstPartyDomain, name, partitionKey, storeId, url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [domain, firstPartyDomain, name, partitionKey, storeId, url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } - Future setCookie(String? domain, int? expirationDate, String? firstPartyDomain, bool? httpOnly, String? name, CookiePartitionKey? partitionKey, String? path, CookieSameSiteStatus? sameSite, bool? secure, String? storeId, String url, String? value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.setCookie$pigeonVar_messageChannelSuffix'; + Future setCookie( + String? domain, + int? expirationDate, + String? firstPartyDomain, + bool? httpOnly, + String? name, + CookiePartitionKey? partitionKey, + String? path, + CookieSameSiteStatus? sameSite, + bool? secure, + String? storeId, + String url, + String? value, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.setCookie$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([domain, expirationDate, firstPartyDomain, httpOnly, name, partitionKey, path, sameSite, secure, storeId, url, value]); + final Future pigeonVar_sendFuture = pigeonVar_channel + .send([ + domain, + expirationDate, + firstPartyDomain, + httpOnly, + name, + partitionKey, + path, + sameSite, + secure, + storeId, + url, + value, + ]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future removeCookie(String? firstPartyDomain, String name, CookiePartitionKey? partitionKey, String? storeId, String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.removeCookie$pigeonVar_messageChannelSuffix'; + Future removeCookie( + String? firstPartyDomain, + String name, + CookiePartitionKey? partitionKey, + String? storeId, + String url, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoCookieApi.removeCookie$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([firstPartyDomain, name, partitionKey, storeId, url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [firstPartyDomain, name, partitionKey, storeId, url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -10157,7 +10733,11 @@ abstract class GeckoStateEvents { void onReaderableStateChange(int sequence, String id, ReaderableState state); - void onSecurityInfoStateChange(int sequence, String id, SecurityInfoState state); + void onSecurityInfoStateChange( + int sequence, + String id, + SecurityInfoState state, + ); void onIconChange(int sequence, String id, Uint8List? bytes); @@ -10179,16 +10759,27 @@ abstract class GeckoStateEvents { void onManifestUpdate(int sequence, String tabId, PwaManifest? manifest); - void onTranslationEngineStateChange(int sequence, TranslationEngineStateData state); + void onTranslationEngineStateChange( + int sequence, + TranslationEngineStateData state, + ); void onTabTranslationStateChange(int sequence, TabTranslationStateData state); - static void setUp(GeckoStateEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoStateEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onViewReadyStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onViewReadyStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10201,16 +10792,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onEngineReadyStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onEngineReadyStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10223,16 +10818,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onIconUpdate$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onIconUpdate$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10246,16 +10845,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabAdded$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabAdded$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10268,38 +10871,47 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabListChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabListChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { final List args = message! as List; final int arg_sequence = args[0]! as int; - final List arg_tabIds = (args[1]! as List).cast(); + final List arg_tabIds = (args[1]! as List) + .cast(); try { api.onTabListChange(arg_sequence, arg_tabIds); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onSelectedTabChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onSelectedTabChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10312,16 +10924,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onRestoreCompleteChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onRestoreCompleteChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10334,16 +10950,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabContentStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabContentStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10356,16 +10976,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onHistoryStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onHistoryStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10379,16 +11003,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onReaderableStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onReaderableStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10402,16 +11030,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onSecurityInfoStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onSecurityInfoStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10425,16 +11057,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onIconChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onIconChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10448,16 +11084,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onThumbnailChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onThumbnailChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10471,16 +11111,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onFindResults$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onFindResults$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10488,22 +11132,27 @@ abstract class GeckoStateEvents { final List args = message! as List; final int arg_sequence = args[0]! as int; final String arg_id = args[1]! as String; - final List arg_results = (args[2]! as List).cast(); + final List arg_results = (args[2]! as List) + .cast(); try { api.onFindResults(arg_sequence, arg_id, arg_results); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onLongPress$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onLongPress$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10517,16 +11166,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onPreferenceChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onPreferenceChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10539,38 +11192,47 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onContainerSiteAssignment$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onContainerSiteAssignment$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { final List args = message! as List; final int arg_sequence = args[0]! as int; - final ContainerSiteAssignment arg_details = args[1]! as ContainerSiteAssignment; + final ContainerSiteAssignment arg_details = + args[1]! as ContainerSiteAssignment; try { api.onContainerSiteAssignment(arg_sequence, arg_details); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onProxyLoadError$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onProxyLoadError$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10583,16 +11245,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onMlProgress$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onMlProgress$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10605,16 +11271,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onDownloadStopped$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onDownloadStopped$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10627,16 +11297,20 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onManifestUpdate$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onManifestUpdate$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10650,52 +11324,64 @@ abstract class GeckoStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTranslationEngineStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTranslationEngineStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { final List args = message! as List; final int arg_sequence = args[0]! as int; - final TranslationEngineStateData arg_state = args[1]! as TranslationEngineStateData; + final TranslationEngineStateData arg_state = + args[1]! as TranslationEngineStateData; try { api.onTranslationEngineStateChange(arg_sequence, arg_state); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabTranslationStateChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoStateEvents.onTabTranslationStateChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { final List args = message! as List; final int arg_sequence = args[0]! as int; - final TabTranslationStateData arg_state = args[1]! as TabTranslationStateData; + final TabTranslationStateData arg_state = + args[1]! as TabTranslationStateData; try { api.onTabTranslationStateChange(arg_sequence, arg_state); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -10714,12 +11400,20 @@ abstract class GeckoSyncStateEvents { void onSyncError(int sequence, String? errorMessage); - static void setUp(GeckoSyncStateEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoSyncStateEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onAuthStateChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onAuthStateChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10732,16 +11426,20 @@ abstract class GeckoSyncStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onSyncStarted$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onSyncStarted$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10753,16 +11451,20 @@ abstract class GeckoSyncStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onSyncCompleted$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onSyncCompleted$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10774,16 +11476,20 @@ abstract class GeckoSyncStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onSyncError$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSyncStateEvents.onSyncError$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10796,8 +11502,10 @@ abstract class GeckoSyncStateEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -10810,12 +11518,20 @@ abstract class GeckoLogging { void onLog(LogLevel level, String message); - static void setUp(GeckoLogging? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoLogging? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoLogging.onLog$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoLogging.onLog$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10828,8 +11544,10 @@ abstract class GeckoLogging { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -10841,9 +11559,13 @@ class ReaderViewEvents { /// Constructor for [ReaderViewEvents]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - ReaderViewEvents({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + ReaderViewEvents({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -10851,25 +11573,28 @@ class ReaderViewEvents { final String pigeonVar_messageChannelSuffix; Future onToggleReaderView(bool enable) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.ReaderViewEvents.onToggleReaderView$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.ReaderViewEvents.onToggleReaderView$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enable]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enable], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future onAppearanceButtonTap() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.ReaderViewEvents.onAppearanceButtonTap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.ReaderViewEvents.onAppearanceButtonTap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -10879,11 +11604,10 @@ class ReaderViewEvents { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -10892,12 +11616,20 @@ abstract class ReaderViewController { void appearanceButtonVisibility(int sequence, bool visible); - static void setUp(ReaderViewController? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + ReaderViewController? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.ReaderViewController.appearanceButtonVisibility$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.ReaderViewController.appearanceButtonVisibility$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10910,8 +11642,10 @@ abstract class ReaderViewController { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -10923,9 +11657,13 @@ class GeckoSelectionActionController { /// Constructor for [GeckoSelectionActionController]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoSelectionActionController({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoSelectionActionController({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -10933,21 +11671,23 @@ class GeckoSelectionActionController { final String pigeonVar_messageChannelSuffix; Future setActions(List actions) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSelectionActionController.setActions$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSelectionActionController.setActions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([actions]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [actions], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -10956,12 +11696,20 @@ abstract class GeckoSelectionActionEvents { void performSelectionAction(String id, String selectedText); - static void setUp(GeckoSelectionActionEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoSelectionActionEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSelectionActionEvents.performSelectionAction$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSelectionActionEvents.performSelectionAction$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -10974,8 +11722,10 @@ abstract class GeckoSelectionActionEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -10987,9 +11737,13 @@ class GeckoAddonsApi { /// Constructor for [GeckoAddonsApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoAddonsApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoAddonsApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -10997,233 +11751,275 @@ class GeckoAddonsApi { final String pigeonVar_messageChannelSuffix; Future> getAddons(bool allowCache) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getAddons$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getAddons$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([allowCache]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [allowCache], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } Future getAddonById(String addonId, bool allowCache) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getAddonById$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getAddonById$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId, allowCache]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId, allowCache], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AddonInfo?; } Future getAddonStoreInfo(String addonId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getAddonStoreInfo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getAddonStoreInfo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AddonStoreInfo?; } - Future> searchAddonListings(String query, AddonStoreApp app, int page, int pageSize) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.searchAddonListings$pigeonVar_messageChannelSuffix'; + Future> searchAddonListings( + String query, + AddonStoreApp app, + int page, + int pageSize, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.searchAddonListings$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([query, app, page, pageSize]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [query, app, page, pageSize], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } - Future> getFeaturedAddonListings(AddonStoreApp app, int pageSize) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getFeaturedAddonListings$pigeonVar_messageChannelSuffix'; + Future> getFeaturedAddonListings( + AddonStoreApp app, + int pageSize, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getFeaturedAddonListings$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([app, pageSize]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [app, pageSize], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } - Future invokeAddonAction(String extensionId, WebExtensionActionType actionType) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.invokeAddonAction$pigeonVar_messageChannelSuffix'; + Future invokeAddonAction( + String extensionId, + WebExtensionActionType actionType, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.invokeAddonAction$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([extensionId, actionType]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [extensionId, actionType], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future enableAddon(String addonId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.enableAddon$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.enableAddon$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as AddonInfo; } Future disableAddon(String addonId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.disableAddon$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.disableAddon$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as AddonInfo; } - Future setAddonAllowedInPrivateBrowsing(String addonId, bool allowed) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.setAddonAllowedInPrivateBrowsing$pigeonVar_messageChannelSuffix'; + Future setAddonAllowedInPrivateBrowsing( + String addonId, + bool allowed, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.setAddonAllowedInPrivateBrowsing$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId, allowed]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId, allowed], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as AddonInfo; } - Future setAddonAutoUpdateEnabledForAddon(String addonId, bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.setAddonAutoUpdateEnabledForAddon$pigeonVar_messageChannelSuffix'; + Future setAddonAutoUpdateEnabledForAddon( + String addonId, + bool enabled, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.setAddonAutoUpdateEnabledForAddon$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId, enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId, enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as AddonInfo; } Future uninstallAddon(String addonId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.uninstallAddon$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.uninstallAddon$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future triggerAddonUpdate(String addonId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.triggerAddonUpdate$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.triggerAddonUpdate$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AddonUpdateAttemptInfo?; } Future triggerAllAddonUpdates() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.triggerAllAddonUpdates$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.triggerAllAddonUpdates$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11233,52 +12029,58 @@ class GeckoAddonsApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future getLastAddonUpdateAttempt(String addonId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getLastAddonUpdateAttempt$pigeonVar_messageChannelSuffix'; + Future getLastAddonUpdateAttempt( + String addonId, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.getLastAddonUpdateAttempt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([addonId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [addonId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AddonUpdateAttemptInfo?; } Future installAddon(String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.installAddon$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.installAddon$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future isAddonAutoUpdateEnabled() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.isAddonAutoUpdateEnabled$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.isAddonAutoUpdateEnabled$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11288,52 +12090,75 @@ class GeckoAddonsApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } Future setAddonAutoUpdateEnabled(bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.setAddonAutoUpdateEnabled$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonsApi.setAddonAutoUpdateEnabled$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } abstract class GeckoAddonEvents { static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - void onUpsertWebExtensionAction(int sequence, String extensionId, WebExtensionActionType actionType, WebExtensionData extensionData); + void onUpsertWebExtensionAction( + int sequence, + String extensionId, + WebExtensionActionType actionType, + WebExtensionData extensionData, + ); - void onRemoveWebExtensionAction(int sequence, String extensionId, WebExtensionActionType actionType); + void onRemoveWebExtensionAction( + int sequence, + String extensionId, + WebExtensionActionType actionType, + ); - void onUpdateWebExtensionIcon(int sequence, String extensionId, WebExtensionActionType actionType, Uint8List icon); + void onUpdateWebExtensionIcon( + int sequence, + String extensionId, + WebExtensionActionType actionType, + Uint8List icon, + ); void onWebExtensionPopupRequested(String extensionId, String extensionName); void onOpenAddonSettingsRequested(String addonId); - static void setUp(GeckoAddonEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoAddonEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onUpsertWebExtensionAction$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onUpsertWebExtensionAction$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -11341,23 +12166,34 @@ abstract class GeckoAddonEvents { final List args = message! as List; final int arg_sequence = args[0]! as int; final String arg_extensionId = args[1]! as String; - final WebExtensionActionType arg_actionType = args[2]! as WebExtensionActionType; - final WebExtensionData arg_extensionData = args[3]! as WebExtensionData; + final WebExtensionActionType arg_actionType = + args[2]! as WebExtensionActionType; + final WebExtensionData arg_extensionData = + args[3]! as WebExtensionData; try { - api.onUpsertWebExtensionAction(arg_sequence, arg_extensionId, arg_actionType, arg_extensionData); + api.onUpsertWebExtensionAction( + arg_sequence, + arg_extensionId, + arg_actionType, + arg_extensionData, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onRemoveWebExtensionAction$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onRemoveWebExtensionAction$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -11365,22 +12201,31 @@ abstract class GeckoAddonEvents { final List args = message! as List; final int arg_sequence = args[0]! as int; final String arg_extensionId = args[1]! as String; - final WebExtensionActionType arg_actionType = args[2]! as WebExtensionActionType; + final WebExtensionActionType arg_actionType = + args[2]! as WebExtensionActionType; try { - api.onRemoveWebExtensionAction(arg_sequence, arg_extensionId, arg_actionType); + api.onRemoveWebExtensionAction( + arg_sequence, + arg_extensionId, + arg_actionType, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onUpdateWebExtensionIcon$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onUpdateWebExtensionIcon$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -11388,23 +12233,33 @@ abstract class GeckoAddonEvents { final List args = message! as List; final int arg_sequence = args[0]! as int; final String arg_extensionId = args[1]! as String; - final WebExtensionActionType arg_actionType = args[2]! as WebExtensionActionType; + final WebExtensionActionType arg_actionType = + args[2]! as WebExtensionActionType; final Uint8List arg_icon = args[3]! as Uint8List; try { - api.onUpdateWebExtensionIcon(arg_sequence, arg_extensionId, arg_actionType, arg_icon); + api.onUpdateWebExtensionIcon( + arg_sequence, + arg_extensionId, + arg_actionType, + arg_icon, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onWebExtensionPopupRequested$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onWebExtensionPopupRequested$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -11413,20 +12268,27 @@ abstract class GeckoAddonEvents { final String arg_extensionId = args[0]! as String; final String arg_extensionName = args[1]! as String; try { - api.onWebExtensionPopupRequested(arg_extensionId, arg_extensionName); + api.onWebExtensionPopupRequested( + arg_extensionId, + arg_extensionName, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onOpenAddonSettingsRequested$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAddonEvents.onOpenAddonSettingsRequested$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -11438,8 +12300,10 @@ abstract class GeckoAddonEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -11451,9 +12315,13 @@ class GeckoSuggestionApi { /// Constructor for [GeckoSuggestionApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoSuggestionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoSuggestionApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -11461,69 +12329,96 @@ class GeckoSuggestionApi { final String pigeonVar_messageChannelSuffix; Future getAutocompleteSuggestion(String query) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSuggestionApi.getAutocompleteSuggestion$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSuggestionApi.getAutocompleteSuggestion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([query]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [query], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AutocompleteResult?; } - Future querySuggestions(String text, List providers) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSuggestionApi.querySuggestions$pigeonVar_messageChannelSuffix'; + Future querySuggestions( + String text, + List providers, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSuggestionApi.querySuggestions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([text, providers]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [text, providers], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } abstract class GeckoSuggestionEvents { static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - void onSuggestionResult(int sequence, GeckoSuggestionType suggestionType, List suggestions); + void onSuggestionResult( + int sequence, + GeckoSuggestionType suggestionType, + List suggestions, + ); - static void setUp(GeckoSuggestionEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoSuggestionEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSuggestionEvents.onSuggestionResult$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSuggestionEvents.onSuggestionResult$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { final List args = message! as List; final int arg_sequence = args[0]! as int; - final GeckoSuggestionType arg_suggestionType = args[1]! as GeckoSuggestionType; - final List arg_suggestions = (args[2]! as List).cast(); + final GeckoSuggestionType arg_suggestionType = + args[1]! as GeckoSuggestionType; + final List arg_suggestions = + (args[2]! as List).cast(); try { - api.onSuggestionResult(arg_sequence, arg_suggestionType, arg_suggestions); + api.onSuggestionResult( + arg_sequence, + arg_suggestionType, + arg_suggestions, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -11536,12 +12431,20 @@ abstract class GeckoTabContentEvents { void onContentUpdate(int sequence, TabContent content); - static void setUp(GeckoTabContentEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoTabContentEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabContentEvents.onContentUpdate$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTabContentEvents.onContentUpdate$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -11554,8 +12457,10 @@ abstract class GeckoTabContentEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -11567,9 +12472,13 @@ class GeckoDeleteBrowsingDataController { /// Constructor for [GeckoDeleteBrowsingDataController]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoDeleteBrowsingDataController({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoDeleteBrowsingDataController({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -11577,7 +12486,8 @@ class GeckoDeleteBrowsingDataController { final String pigeonVar_messageChannelSuffix; Future deleteTabs() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteTabs$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteTabs$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11587,15 +12497,15 @@ class GeckoDeleteBrowsingDataController { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future deleteBrowsingHistory() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteBrowsingHistory$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteBrowsingHistory$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11605,15 +12515,15 @@ class GeckoDeleteBrowsingDataController { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future deleteCookiesAndSiteData() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteCookiesAndSiteData$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteCookiesAndSiteData$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11623,15 +12533,15 @@ class GeckoDeleteBrowsingDataController { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future deleteCachedFiles() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteCachedFiles$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteCachedFiles$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11641,15 +12551,15 @@ class GeckoDeleteBrowsingDataController { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future deleteSitePermissions() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteSitePermissions$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteSitePermissions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11659,15 +12569,15 @@ class GeckoDeleteBrowsingDataController { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future deleteDownloads() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteDownloads$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.deleteDownloads$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -11677,48 +12587,54 @@ class GeckoDeleteBrowsingDataController { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future clearDataForSessionContext(String contextId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.clearDataForSessionContext$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.clearDataForSessionContext$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([contextId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [contextId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Clear browsing data for a specific host/domain - Future clearDataForHost(String host, List dataTypes) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.clearDataForHost$pigeonVar_messageChannelSuffix'; + Future clearDataForHost( + String host, + List dataTypes, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDeleteBrowsingDataController.clearDataForHost$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([host, dataTypes]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [host, dataTypes], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -11736,12 +12652,20 @@ abstract class GeckoHistoryEvents { /// ([url], [visitTime]) to join back to the Places visit. void onVisitRecorded(String url, int visitTime, String? contextId); - static void setUp(GeckoHistoryEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoHistoryEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryEvents.onVisitRecorded$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryEvents.onVisitRecorded$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -11755,8 +12679,10 @@ abstract class GeckoHistoryEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -11768,163 +12694,197 @@ class GeckoHistoryApi { /// Constructor for [GeckoHistoryApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoHistoryApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoHistoryApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future> getDetailedVisits(int startMillis, int endMillis, List excludeTypes) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getDetailedVisits$pigeonVar_messageChannelSuffix'; + Future> getDetailedVisits( + int startMillis, + int endMillis, + List excludeTypes, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getDetailedVisits$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([startMillis, endMillis, excludeTypes]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [startMillis, endMillis, excludeTypes], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } - Future> getVisitsPaginated(int offset, int count, List excludeTypes) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getVisitsPaginated$pigeonVar_messageChannelSuffix'; + Future> getVisitsPaginated( + int offset, + int count, + List excludeTypes, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getVisitsPaginated$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([offset, count, excludeTypes]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [offset, count, excludeTypes], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } Future deleteVisit(String url, int timestamp) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, timestamp]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url, timestamp], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future deleteDownload(String id) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteDownload$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteDownload$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([id]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [id], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future deleteVisitsBetween(int startMillis, int endMillis) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisitsBetween$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisitsBetween$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([startMillis, endMillis]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [startMillis, endMillis], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future> getHistoryHighlights(HistoryHighlightWeights weights, int limit) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getHistoryHighlights$pigeonVar_messageChannelSuffix'; + Future> getHistoryHighlights( + HistoryHighlightWeights weights, + int limit, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getHistoryHighlights$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([weights, limit]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [weights, limit], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } - Future> getTopFrecentSites(int limit, FrecencyThresholdOption frecencyThreshold) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getTopFrecentSites$pigeonVar_messageChannelSuffix'; + Future> getTopFrecentSites( + int limit, + FrecencyThresholdOption frecencyThreshold, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getTopFrecentSites$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([limit, frecencyThreshold]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [limit, frecencyThreshold], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } /// Returns the most recent [HistoryMetadata] record for [url], or `null` if /// no metadata has been recorded for that URL. Future getLatestHistoryMetadataForUrl(String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getLatestHistoryMetadataForUrl$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getLatestHistoryMetadataForUrl$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as HistoryMetadata?; } @@ -11932,191 +12892,227 @@ class GeckoHistoryApi { /// input URL aligned by index; entries are `null` for URLs Places has no /// metadata for. Used by the local search re-rank to collapse N IPC /// roundtrips into one. - Future> getLatestHistoryMetadataForUrls(List urls) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getLatestHistoryMetadataForUrls$pigeonVar_messageChannelSuffix'; + Future> getLatestHistoryMetadataForUrls( + List urls, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getLatestHistoryMetadataForUrls$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([urls]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [urls], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } /// Bulk visited check: returns booleans aligned with [urls] indicating /// whether Places has any visit recorded for each URL. Future> getVisited(List urls) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getVisited$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getVisited$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([urls]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [urls], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } /// Frecency-ranked autocomplete results. Mirrors Places' awesomebar input. - Future> getSuggestions(String query, int limit) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getSuggestions$pigeonVar_messageChannelSuffix'; + Future> getSuggestions( + String query, + int limit, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.getSuggestions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([query, limit]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [query, limit], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } /// Places' built-in metadata text search (matches title / url / searchTerm). /// Useful as a comparison baseline against the local content FTS. - Future> queryHistoryMetadata(String query, int limit) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.queryHistoryMetadata$pigeonVar_messageChannelSuffix'; + Future> queryHistoryMetadata( + String query, + int limit, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.queryHistoryMetadata$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([query, limit]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [query, limit], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } /// Records a title / preview-image observation for [url] without recording /// a visit. Intended for manual flows; the engine middleware records these /// automatically as the user browses. - Future recordObservation(String url, PageObservation observation) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.recordObservation$pigeonVar_messageChannelSuffix'; + Future recordObservation( + String url, + PageObservation observation, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.recordObservation$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, observation]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url, observation], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Records a view-time observation against the metadata record identified /// by [key]. View time is added to the existing total. - Future noteHistoryMetadataViewTime(HistoryMetadataKey key, int viewTimeMs) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.noteHistoryMetadataViewTime$pigeonVar_messageChannelSuffix'; + Future noteHistoryMetadataViewTime( + HistoryMetadataKey key, + int viewTimeMs, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.noteHistoryMetadataViewTime$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([key, viewTimeMs]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [key, viewTimeMs], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Records a document-type observation against the metadata record /// identified by [key]. - Future noteHistoryMetadataDocumentType(HistoryMetadataKey key, DocumentType documentType) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.noteHistoryMetadataDocumentType$pigeonVar_messageChannelSuffix'; + Future noteHistoryMetadataDocumentType( + HistoryMetadataKey key, + DocumentType documentType, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.noteHistoryMetadataDocumentType$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([key, documentType]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [key, documentType], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Removes all visits for [url]. May propagate to remote devices via Sync. Future deleteVisitsFor(String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisitsFor$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisitsFor$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Removes all visits since [sinceMillis] (inclusive). May propagate to /// remote devices via Sync. Future deleteVisitsSince(int sinceMillis) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisitsSince$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteVisitsSince$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([sinceMillis]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [sinceMillis], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Removes all locally stored history. Sync will not remove remote history, /// but it will prevent deleted entries from returning. Future deleteEverything() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteEverything$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteEverything$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -12126,30 +13122,31 @@ class GeckoHistoryApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Prunes history metadata older than [olderThanMillis] (exclusive). Future deleteHistoryMetadataOlderThan(int olderThanMillis) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteHistoryMetadataOlderThan$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoHistoryApi.deleteHistoryMetadataOlderThan$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([olderThanMillis]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [olderThanMillis], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -12157,9 +13154,13 @@ class GeckoDownloadsApi { /// Constructor for [GeckoDownloadsApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoDownloadsApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoDownloadsApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12167,75 +13168,93 @@ class GeckoDownloadsApi { final String pigeonVar_messageChannelSuffix; Future requestDownload(String tabId, DownloadState state) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.requestDownload$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.requestDownload$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, state]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, state], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future copyInternetResource(String tabId, ShareInternetResourceState state) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.copyInternetResource$pigeonVar_messageChannelSuffix'; + Future copyInternetResource( + String tabId, + ShareInternetResourceState state, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.copyInternetResource$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, state]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, state], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future shareInternetResource(String tabId, ShareInternetResourceState state) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.shareInternetResource$pigeonVar_messageChannelSuffix'; + Future shareInternetResource( + String tabId, + ShareInternetResourceState state, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.shareInternetResource$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, state]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, state], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } - Future openDownloadedFile(String fileName, String directoryPath, String? contentType) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.openDownloadedFile$pigeonVar_messageChannelSuffix'; + Future openDownloadedFile( + String fileName, + String directoryPath, + String? contentType, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoDownloadsApi.openDownloadedFile$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([fileName, directoryPath, contentType]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [fileName, directoryPath, contentType], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } } @@ -12245,12 +13264,20 @@ abstract class BrowserExtensionEvents { void onFeedRequested(int sequence, String url); - static void setUp(BrowserExtensionEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + BrowserExtensionEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.BrowserExtensionEvents.onFeedRequested$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.BrowserExtensionEvents.onFeedRequested$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -12263,8 +13290,10 @@ abstract class BrowserExtensionEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -12276,9 +13305,13 @@ class GeckoFetchApi { /// Constructor for [GeckoFetchApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoFetchApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoFetchApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12286,21 +13319,23 @@ class GeckoFetchApi { final String pigeonVar_messageChannelSuffix; Future fetch(GeckoFetchRequest request) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFetchApi.fetch$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoFetchApi.fetch$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [request], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as GeckoFetchResponse; } } @@ -12319,12 +13354,20 @@ abstract class GeckoBookmarksEvents { /// Dart adds the offset of any earlier calls to get an overall figure. void onImportProgress(int insertedItemCount); - static void setUp(GeckoBookmarksEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoBookmarksEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksEvents.onImportProgress$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksEvents.onImportProgress$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -12336,8 +13379,10 @@ abstract class GeckoBookmarksEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -12358,9 +13403,13 @@ class GeckoViewportApi { /// Constructor for [GeckoViewportApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoViewportApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoViewportApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12377,21 +13426,23 @@ class GeckoViewportApi { /// /// [heightPx] Combined height of top and bottom toolbars in pixels. Future setDynamicToolbarMaxHeight(int heightPx) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportApi.setDynamicToolbarMaxHeight$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportApi.setDynamicToolbarMaxHeight$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([heightPx]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [heightPx], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Sets the vertical clipping offset for the GeckoView content. @@ -12404,21 +13455,23 @@ class GeckoViewportApi { /// /// [clippingPx] The clipping offset in pixels. Negative = bottom clip. Future setVerticalClipping(int clippingPx) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportApi.setVerticalClipping$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportApi.setVerticalClipping$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([clippingPx]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [clippingPx], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -12438,7 +13491,12 @@ abstract class GeckoViewportEvents { /// [heightPx] Keyboard height in pixels (0 when hidden). /// [isVisible] Whether the keyboard is currently visible. /// [isAnimating] Whether the keyboard is currently animating. - void onKeyboardVisibilityChanged(int sequence, int heightPx, bool isVisible, bool isAnimating); + void onKeyboardVisibilityChanged( + int sequence, + int heightPx, + bool isVisible, + bool isAnimating, + ); /// Called when GeckoView scroll-handling eligibility changes. /// @@ -12448,12 +13506,20 @@ abstract class GeckoViewportEvents { /// the page consumed touch input. void onBrowserHandlingScrollChanged(int sequence, bool isHandling); - static void setUp(GeckoViewportEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoViewportEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportEvents.onKeyboardVisibilityChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportEvents.onKeyboardVisibilityChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -12464,20 +13530,29 @@ abstract class GeckoViewportEvents { final bool arg_isVisible = args[2]! as bool; final bool arg_isAnimating = args[3]! as bool; try { - api.onKeyboardVisibilityChanged(arg_sequence, arg_heightPx, arg_isVisible, arg_isAnimating); + api.onKeyboardVisibilityChanged( + arg_sequence, + arg_heightPx, + arg_isVisible, + arg_isAnimating, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportEvents.onBrowserHandlingScrollChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoViewportEvents.onBrowserHandlingScrollChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -12490,8 +13565,10 @@ abstract class GeckoViewportEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -12503,9 +13580,13 @@ class GeckoBookmarksApi { /// Constructor for [GeckoBookmarksApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoBookmarksApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoBookmarksApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12518,21 +13599,23 @@ class GeckoBookmarksApi { /// @param recursive Whether to recurse and obtain all levels of children. /// @return The populated root starting from the guid. Future getTree(String guid, bool recursive) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getTree$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getTree$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([guid, recursive]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [guid, recursive], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as BookmarkNode?; } @@ -12541,21 +13624,23 @@ class GeckoBookmarksApi { /// @param guid The bookmark guid to obtain. /// @return The bookmark node or null if it does not exist. Future getBookmark(String guid) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getBookmark$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getBookmark$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([guid]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [guid], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as BookmarkNode?; } @@ -12564,21 +13649,23 @@ class GeckoBookmarksApi { /// @param url The URL string. /// @return The list of bookmarks that match the URL Future> getBookmarksWithUrl(String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getBookmarksWithUrl$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getBookmarksWithUrl$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } @@ -12588,22 +13675,28 @@ class GeckoBookmarksApi { /// @param maxAge Optional parameter used to filter out entries older than this number of milliseconds. /// @param currentTime Optional parameter for current time. Defaults toSystem.currentTimeMillis() /// @return The list of bookmarks that have been recently added up to the limit number of items. - Future> getRecentBookmarks(int limit, int? maxAge, int currentTime) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getRecentBookmarks$pigeonVar_messageChannelSuffix'; + Future> getRecentBookmarks( + int limit, + int? maxAge, + int currentTime, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.getRecentBookmarks$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([limit, maxAge, currentTime]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [limit, maxAge, currentTime], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } @@ -12613,21 +13706,23 @@ class GeckoBookmarksApi { /// @param limit The maximum number of entries to return. /// @return The list of matching bookmark nodes up to the limit number of items. Future> searchBookmarks(String query, int limit) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.searchBookmarks$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.searchBookmarks$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([query, limit]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [query, limit], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } @@ -12640,22 +13735,29 @@ class GeckoBookmarksApi { /// @param title The title of the bookmark item to add. /// @param position The optional position to add the new node or null to append. /// @return The guid of the newly inserted bookmark item. - Future addItem(String parentGuid, String url, String title, int? position) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.addItem$pigeonVar_messageChannelSuffix'; + Future addItem( + String parentGuid, + String url, + String title, + int? position, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.addItem$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([parentGuid, url, title, position]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [parentGuid, url, title, position], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } @@ -12667,22 +13769,28 @@ class GeckoBookmarksApi { /// @param title The title of the bookmark folder to add. /// @param position The optional position to add the new node or null to append. /// @return The guid of the newly inserted bookmark item. - Future addFolder(String parentGuid, String title, int? position) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.addFolder$pigeonVar_messageChannelSuffix'; + Future addFolder( + String parentGuid, + String title, + int? position, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.addFolder$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([parentGuid, title, position]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [parentGuid, title, position], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } @@ -12693,21 +13801,23 @@ class GeckoBookmarksApi { /// @param guid The guid of the item to update. /// @param info The info to change in the bookmark. Future updateNode(String guid, BookmarkInfo info) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.updateNode$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.updateNode$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([guid, info]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [guid, info], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Deletes a bookmark node and all of its children, if any. @@ -12716,21 +13826,23 @@ class GeckoBookmarksApi { /// /// @return Whether the bookmark existed or not. Future deleteNode(String guid) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.deleteNode$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.deleteNode$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([guid]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [guid], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } @@ -12756,22 +13868,27 @@ class GeckoBookmarksApi { /// @param parentGuid The guid of the existing folder to insert underneath. /// @param children The nodes to insert, in the order they should appear. /// @return The number of inserted bookmark items and failed top-level nodes. - Future insertTree(String parentGuid, List children) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.insertTree$pigeonVar_messageChannelSuffix'; + Future insertTree( + String parentGuid, + List children, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.insertTree$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([parentGuid, children]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [parentGuid, children], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as BookmarkInsertTreeResult; } @@ -12784,21 +13901,23 @@ class GeckoBookmarksApi { /// @param guids The guids of the folders to count within. /// @return The total number of bookmark items across all trees. Future countBookmarksInTrees(List guids) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.countBookmarksInTrees$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksApi.countBookmarksInTrees$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([guids]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [guids], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as int; } } @@ -12808,9 +13927,13 @@ class GeckoSitePermissionsApi { /// Constructor for [GeckoSitePermissionsApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoSitePermissionsApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoSitePermissionsApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12818,61 +13941,73 @@ class GeckoSitePermissionsApi { final String pigeonVar_messageChannelSuffix; /// Get permissions for origin (single source of truth from GeckoView) - Future getSitePermissions(String origin, bool private) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSitePermissionsApi.getSitePermissions$pigeonVar_messageChannelSuffix'; + Future getSitePermissions( + String origin, + bool private, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSitePermissionsApi.getSitePermissions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([origin, private]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [origin, private], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as SitePermissions?; } /// Save/update permissions (persisted by GeckoView) - Future setSitePermissions(SitePermissions permissions, bool private) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSitePermissionsApi.setSitePermissions$pigeonVar_messageChannelSuffix'; + Future setSitePermissions( + SitePermissions permissions, + bool private, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSitePermissionsApi.setSitePermissions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([permissions, private]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [permissions, private], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Delete permissions for origin (removed from GeckoView storage) Future deleteSitePermissions(String origin, bool private) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSitePermissionsApi.deleteSitePermissions$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoSitePermissionsApi.deleteSitePermissions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([origin, private]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [origin, private], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -12881,9 +14016,13 @@ class GeckoPublicSuffixListApi { /// Constructor for [GeckoPublicSuffixListApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoPublicSuffixListApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoPublicSuffixListApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12893,21 +14032,23 @@ class GeckoPublicSuffixListApi { /// Get base domain (eTLD+1) from host using Mozilla's Public Suffix List /// Returns the host unchanged if PSL lookup fails Future getPublicSuffixPlusOne(String host) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPublicSuffixListApi.getPublicSuffixPlusOne$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPublicSuffixListApi.getPublicSuffixPlusOne$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([host]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [host], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as String; } } @@ -12921,9 +14062,13 @@ class GeckoTrackingProtectionApi { /// Constructor for [GeckoTrackingProtectionApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoTrackingProtectionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoTrackingProtectionApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12935,21 +14080,23 @@ class GeckoTrackingProtectionApi { /// Uses callback pattern to match Mozilla Android Components API. /// Returns true if the site is in the exceptions list (ETP disabled). Future containsException(String tabId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.containsException$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.containsException$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } @@ -12958,21 +14105,23 @@ class GeckoTrackingProtectionApi { /// This adds the current tab's URL to the exceptions list. /// ETP will be disabled for this site until the exception is removed. Future addException(String tabId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.addException$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.addException$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Remove tracking protection exception for a tab (enable ETP for this site) @@ -12980,21 +14129,23 @@ class GeckoTrackingProtectionApi { /// This removes the current tab's URL from the exceptions list. /// ETP will be re-enabled for this site. Future removeException(String tabId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.removeException$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.removeException$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Remove a specific exception by URL @@ -13002,28 +14153,31 @@ class GeckoTrackingProtectionApi { /// Alternative to removeException(tabId) for cases where you /// have a URL rather than a tabId. Future removeExceptionByUrl(String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.removeExceptionByUrl$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.removeExceptionByUrl$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Fetch all tracking protection exceptions /// /// Returns list of all sites that have exceptions (ETP disabled). Future> fetchExceptions() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.fetchExceptions$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.fetchExceptions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -13033,19 +14187,20 @@ class GeckoTrackingProtectionApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; - return (pigeonVar_replyValue! as List).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); + return (pigeonVar_replyValue! as List) + .cast(); } /// Remove all tracking protection exceptions /// /// This re-enables ETP for all exception sites. Future removeAllExceptions() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.removeAllExceptions$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoTrackingProtectionApi.removeAllExceptions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -13055,11 +14210,10 @@ class GeckoTrackingProtectionApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -13072,9 +14226,13 @@ class GeckoAppLinksApi { /// Constructor for [GeckoAppLinksApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoAppLinksApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoAppLinksApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -13084,64 +14242,76 @@ class GeckoAppLinksApi { /// Push the complete policy snapshot to native (last-write-wins). Native /// persists it durably to the active profile's prefs record before acking. Future setAppLinkPolicy(AppLinkPolicySnapshot snapshot) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.setAppLinkPolicy$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.setAppLinkPolicy$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([snapshot]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [snapshot], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Non-consuming query of pending prompts for [owner] (§2.6). Surfaces call /// this on attach/resume/rotation and when the availability event fires, and /// render idempotently by requestId. - Future> getPendingAppLinkPrompts(AppLinkPromptOwner owner) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.getPendingAppLinkPrompts$pigeonVar_messageChannelSuffix'; + Future> getPendingAppLinkPrompts( + AppLinkPromptOwner owner, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.getPendingAppLinkPrompts$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([owner]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [owner], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; - return (pigeonVar_replyValue! as List).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); + return (pigeonVar_replyValue! as List) + .cast(); } /// Atomically resolve a pending prompt: validate it still exists and its tab /// is alive, consume it (double-resolve is a no-op), then perform side effects /// after releasing the store lock (§2.6). - Future resolvePendingAppLink(int requestId, AppLinkDecision decision) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.resolvePendingAppLink$pigeonVar_messageChannelSuffix'; + Future resolvePendingAppLink( + int requestId, + AppLinkDecision decision, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.resolvePendingAppLink$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([requestId, decision]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [requestId, decision], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as AppLinkResolutionResult; } @@ -13153,22 +14323,27 @@ class GeckoAppLinksApi { /// /// [includeHttpAppLinks] when true, an app resolving an engine-supported /// (http(s)) URL is surfaced (e.g. the YouTube app for a youtube.com link). - Future resolveAppLink(String url, bool includeHttpAppLinks) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.resolveAppLink$pigeonVar_messageChannelSuffix'; + Future resolveAppLink( + String url, + bool includeHttpAppLinks, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.resolveAppLink$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, includeHttpAppLinks]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url, includeHttpAppLinks], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AppLinkTarget?; } @@ -13178,21 +14353,23 @@ class GeckoAppLinksApi { /// no-app or ActivityNotFoundException/SecurityException; never throws across /// the channel for expected conditions. Future launchAppLink(String url) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.launchAppLink$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinksApi.launchAppLink$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([url]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [url], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } } @@ -13207,12 +14384,20 @@ abstract class GeckoAppLinkEvents { void onAppLinkPromptAvailable(int sequence, AppLinkPromptOwner owner); - static void setUp(GeckoAppLinkEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoAppLinkEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinkEvents.onAppLinkPromptAvailable$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoAppLinkEvents.onAppLinkPromptAvailable$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -13225,8 +14410,10 @@ abstract class GeckoAppLinkEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -13242,9 +14429,13 @@ class GeckoPwaApi { /// Constructor for [GeckoPwaApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoPwaApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoPwaApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -13262,28 +14453,36 @@ class GeckoPwaApi { /// The [contextId] is the container's contextual identity (optional, null for default container). /// The [overrideAppName] customizes the installed app's displayed name and persists in the saved manifest. /// Returns true if installation was successful. - Future installWebApp(String? tabId, String profileUuid, String? contextId, String? overrideAppName) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPwaApi.installWebApp$pigeonVar_messageChannelSuffix'; + Future installWebApp( + String? tabId, + String profileUuid, + String? contextId, + String? overrideAppName, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPwaApi.installWebApp$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, profileUuid, contextId, overrideAppName]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, profileUuid, contextId, overrideAppName], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } /// Returns a list of all installed PWA manifests. Future> getInstalledWebApps() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPwaApi.getInstalledWebApps$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPwaApi.getInstalledWebApps$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -13293,11 +14492,10 @@ class GeckoPwaApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } @@ -13312,22 +14510,29 @@ class GeckoPwaApi { /// The [contextId] is the container's contextual identity (optional). /// The [overrideShortcutName] allows customizing the shortcut label. /// Returns true if the shortcut was created successfully. - Future installBasicShortcut(String? tabId, String profileUuid, String? contextId, String? overrideShortcutName) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPwaApi.installBasicShortcut$pigeonVar_messageChannelSuffix'; + Future installBasicShortcut( + String? tabId, + String profileUuid, + String? contextId, + String? overrideShortcutName, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPwaApi.installBasicShortcut$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId, profileUuid, contextId, overrideShortcutName]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId, profileUuid, contextId, overrideShortcutName], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } } @@ -13338,9 +14543,13 @@ class SandboxCaptureApi { /// Constructor for [SandboxCaptureApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - SandboxCaptureApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + SandboxCaptureApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -13351,59 +14560,65 @@ class SandboxCaptureApi { /// Dart has brought up [CaptureServer] and reconciled local artifacts with /// the `capture_tab` rows. Future resetAll(List entries) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureApi.resetAll$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureApi.resetAll$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([entries]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [entries], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Inserts or updates the registry entry for [entry.tabId]. Future mark(SandboxCaptureEntry entry) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureApi.mark$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureApi.mark$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([entry]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [entry], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Removes the registry entry for [tabId]. Future unmark(String tabId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureApi.unmark$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureApi.unmark$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([tabId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [tabId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -13423,14 +14638,27 @@ abstract class SandboxCaptureHostEvents { /// The native middleware has already rewritten the new tab's URL to /// `about:blank`; Dart should register it as sandbox and run the capture /// pipeline for [targetUrl]. - void onSandboxNewTab(int sequence, String parentTabId, String newTabId, String targetUrl); + void onSandboxNewTab( + int sequence, + String parentTabId, + String newTabId, + String targetUrl, + ); - static void setUp(SandboxCaptureHostEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + SandboxCaptureHostEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureHostEvents.onSandboxLinkClick$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureHostEvents.onSandboxLinkClick$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -13440,20 +14668,28 @@ abstract class SandboxCaptureHostEvents { final String arg_parentTabId = args[1]! as String; final String arg_targetUrl = args[2]! as String; try { - api.onSandboxLinkClick(arg_sequence, arg_parentTabId, arg_targetUrl); + api.onSandboxLinkClick( + arg_sequence, + arg_parentTabId, + arg_targetUrl, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureHostEvents.onSandboxNewTab$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.SandboxCaptureHostEvents.onSandboxNewTab$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -13464,12 +14700,19 @@ abstract class SandboxCaptureHostEvents { final String arg_newTabId = args[2]! as String; final String arg_targetUrl = args[3]! as String; try { - api.onSandboxNewTab(arg_sequence, arg_parentTabId, arg_newTabId, arg_targetUrl); + api.onSandboxNewTab( + arg_sequence, + arg_parentTabId, + arg_newTabId, + arg_targetUrl, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -13482,9 +14725,13 @@ class GeckoGestureApi { /// Constructor for [GeckoGestureApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoGestureApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoGestureApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -13492,21 +14739,23 @@ class GeckoGestureApi { final String pigeonVar_messageChannelSuffix; Future setGestureConfig(GestureConfig config) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureApi.setGestureConfig$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureApi.setGestureConfig$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([config]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [config], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -13533,12 +14782,20 @@ abstract class GeckoGestureEvents { /// [sequence] Event sequence number for ordering. void onGestureReset(int sequence); - static void setUp(GeckoGestureEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoGestureEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureEvents.onGestureRecognized$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureEvents.onGestureRecognized$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -13551,16 +14808,20 @@ abstract class GeckoGestureEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureEvents.onGestureProgress$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureEvents.onGestureProgress$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -13573,16 +14834,20 @@ abstract class GeckoGestureEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureEvents.onGestureReset$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoGestureEvents.onGestureReset$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -13594,8 +14859,10 @@ abstract class GeckoGestureEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -13608,9 +14875,13 @@ class GeckoPushApi { /// Constructor for [GeckoPushApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - GeckoPushApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + GeckoPushApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -13618,7 +14889,8 @@ class GeckoPushApi { final String pigeonVar_messageChannelSuffix; Future getPushStatus() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.getPushStatus$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.getPushStatus$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -13628,11 +14900,10 @@ class GeckoPushApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as PushStatus; } @@ -13641,26 +14912,29 @@ class GeckoPushApi { /// The picker is built in Dart rather than delegated to the connector's own /// dialog, which would save the selection against a non-profile context. Future setDistributor(String packageName) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.setDistributor$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.setDistributor$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([packageName]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [packageName], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Forgets the current distributor. This is the off switch for web push. Future removeDistributor() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.removeDistributor$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.removeDistributor$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -13670,15 +14944,15 @@ class GeckoPushApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future renewRegistration() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.renewRegistration$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.renewRegistration$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -13688,39 +14962,41 @@ class GeckoPushApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Pauses push transport for the current profile before switching profiles. /// Site subscriptions and the chosen distributor are retained for restoration /// when this profile becomes active again. Future suspendForProfileSwitch(String targetProfileId) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.suspendForProfileSwitch$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.suspendForProfileSwitch$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([targetProfileId]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [targetProfileId], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Subscriptions Gecko has created, read from the UnifiedPush store. Read-only: /// there is no app→Gecko channel to revoke a subscription, so removal has to go /// through the site's notification permission instead. Future> getSubscriptions() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.getSubscriptions$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushApi.getSubscriptions$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -13730,11 +15006,10 @@ class GeckoPushApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } } @@ -13750,12 +15025,20 @@ abstract class GeckoPushEvents { /// [sequence] Event sequence number for ordering. void onPushStatusChanged(int sequence, PushStatus status); - static void setUp(GeckoPushEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + GeckoPushEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushEvents.onPushStatusChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoPushEvents.onPushStatusChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -13768,8 +15051,10 @@ abstract class GeckoPushEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/flutter_mozilla_components/pigeons/gecko.dart b/packages/flutter_mozilla_components/pigeons/gecko.dart index 5e09a5e4..305d30a6 100644 --- a/packages/flutter_mozilla_components/pigeons/gecko.dart +++ b/packages/flutter_mozilla_components/pigeons/gecko.dart @@ -3100,7 +3100,10 @@ abstract class GeckoAppLinksApi { /// is alive, consume it (double-resolve is a no-op), then perform side effects /// after releasing the store lock (§2.6). @async - AppLinkResolutionResult resolvePendingAppLink(int requestId, AppLinkDecision decision); + AppLinkResolutionResult resolvePendingAppLink( + int requestId, + AppLinkDecision decision, + ); /// Resolve [url] to an external-app target. /// diff --git a/packages/flutter_singbox_proxy/lib/src/singbox_proxy_api.g.dart b/packages/flutter_singbox_proxy/lib/src/singbox_proxy_api.g.dart index 9627c08e..4ce2b01e 100644 --- a/packages/flutter_singbox_proxy/lib/src/singbox_proxy_api.g.dart +++ b/packages/flutter_singbox_proxy/lib/src/singbox_proxy_api.g.dart @@ -10,9 +10,9 @@ import 'package:flutter/services.dart'; import 'package:meta/meta.dart' show immutable, protected, visibleForTesting; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -34,8 +34,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -44,6 +47,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -56,8 +60,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -106,7 +111,6 @@ int _deepHash(Object? value) { return value.hashCode; } - enum SingboxProxyProfileType { socks, http, @@ -125,13 +129,7 @@ enum SingboxProxyProfileType { customOutbound, } -enum SingboxProxyRuntimeStatus { - stopped, - starting, - running, - stopping, - error, -} +enum SingboxProxyRuntimeStatus { stopped, starting, running, stopping, error } class SingboxProxyProfile { SingboxProxyProfile({ @@ -157,17 +155,12 @@ class SingboxProxyProfile { String? secretJson; List _toList() { - return [ - id, - name, - type, - configJson, - secretJson, - ]; + return [id, name, type, configJson, secretJson]; } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyProfile decode(Object result) { result as List; @@ -189,7 +182,11 @@ class SingboxProxyProfile { if (identical(this, other)) { return true; } - return _deepEquals(id, other.id) && _deepEquals(name, other.name) && _deepEquals(type, other.type) && _deepEquals(configJson, other.configJson) && _deepEquals(secretJson, other.secretJson); + return _deepEquals(id, other.id) && + _deepEquals(name, other.name) && + _deepEquals(type, other.type) && + _deepEquals(configJson, other.configJson) && + _deepEquals(secretJson, other.secretJson); } @override @@ -239,7 +236,8 @@ class SingboxProxyRuntimeOptions { } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyRuntimeOptions decode(Object result) { result as List; @@ -254,13 +252,17 @@ class SingboxProxyRuntimeOptions { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SingboxProxyRuntimeOptions || other.runtimeType != runtimeType) { + if (other is! SingboxProxyRuntimeOptions || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(preferredBasePort, other.preferredBasePort) && _deepEquals(blockUnmatchedTraffic, other.blockUnmatchedTraffic) && _deepEquals(dnsConfig, other.dnsConfig) && _deepEquals(bootstrapDohUrl, other.bootstrapDohUrl); + return _deepEquals(preferredBasePort, other.preferredBasePort) && + _deepEquals(blockUnmatchedTraffic, other.blockUnmatchedTraffic) && + _deepEquals(dnsConfig, other.dnsConfig) && + _deepEquals(bootstrapDohUrl, other.bootstrapDohUrl); } @override @@ -331,7 +333,8 @@ class SingboxProxyDnsServerConfig { } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyDnsServerConfig decode(Object result) { result as List; @@ -349,13 +352,20 @@ class SingboxProxyDnsServerConfig { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SingboxProxyDnsServerConfig || other.runtimeType != runtimeType) { + if (other is! SingboxProxyDnsServerConfig || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(tag, other.tag) && _deepEquals(address, other.address) && _deepEquals(detourTag, other.detourTag) && _deepEquals(matchDomainSuffixes, other.matchDomainSuffixes) && _deepEquals(matchGeosites, other.matchGeosites) && _deepEquals(matchOutbounds, other.matchOutbounds) && _deepEquals(matchInbounds, other.matchInbounds); + return _deepEquals(tag, other.tag) && + _deepEquals(address, other.address) && + _deepEquals(detourTag, other.detourTag) && + _deepEquals(matchDomainSuffixes, other.matchDomainSuffixes) && + _deepEquals(matchGeosites, other.matchGeosites) && + _deepEquals(matchOutbounds, other.matchOutbounds) && + _deepEquals(matchInbounds, other.matchInbounds); } @override @@ -385,20 +395,18 @@ class SingboxProxyDnsConfig { String domainStrategy; List _toList() { - return [ - servers, - finalServerTag, - domainStrategy, - ]; + return [servers, finalServerTag, domainStrategy]; } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyDnsConfig decode(Object result) { result as List; return SingboxProxyDnsConfig( - servers: (result[0]! as List).cast(), + servers: (result[0]! as List) + .cast(), finalServerTag: result[1] as String?, domainStrategy: result[2]! as String, ); @@ -413,7 +421,9 @@ class SingboxProxyDnsConfig { if (identical(this, other)) { return true; } - return _deepEquals(servers, other.servers) && _deepEquals(finalServerTag, other.finalServerTag) && _deepEquals(domainStrategy, other.domainStrategy); + return _deepEquals(servers, other.servers) && + _deepEquals(finalServerTag, other.finalServerTag) && + _deepEquals(domainStrategy, other.domainStrategy); } @override @@ -446,17 +456,12 @@ class SingboxProxyRuntimeEndpoint { String password; List _toList() { - return [ - profileId, - host, - port, - username, - password, - ]; + return [profileId, host, port, username, password]; } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyRuntimeEndpoint decode(Object result) { result as List; @@ -472,13 +477,18 @@ class SingboxProxyRuntimeEndpoint { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SingboxProxyRuntimeEndpoint || other.runtimeType != runtimeType) { + if (other is! SingboxProxyRuntimeEndpoint || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(profileId, other.profileId) && _deepEquals(host, other.host) && _deepEquals(port, other.port) && _deepEquals(username, other.username) && _deepEquals(password, other.password); + return _deepEquals(profileId, other.profileId) && + _deepEquals(host, other.host) && + _deepEquals(port, other.port) && + _deepEquals(username, other.username) && + _deepEquals(password, other.password); } @override @@ -505,21 +515,19 @@ class SingboxProxyRuntimeState { String? message; List _toList() { - return [ - status, - endpoints, - message, - ]; + return [status, endpoints, message]; } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyRuntimeState decode(Object result) { result as List; return SingboxProxyRuntimeState( status: result[0]! as SingboxProxyRuntimeStatus, - endpoints: (result[1]! as List).cast(), + endpoints: (result[1]! as List) + .cast(), message: result[2] as String?, ); } @@ -527,13 +535,16 @@ class SingboxProxyRuntimeState { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SingboxProxyRuntimeState || other.runtimeType != runtimeType) { + if (other is! SingboxProxyRuntimeState || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(status, other.status) && _deepEquals(endpoints, other.endpoints) && _deepEquals(message, other.message); + return _deepEquals(status, other.status) && + _deepEquals(endpoints, other.endpoints) && + _deepEquals(message, other.message); } @override @@ -547,43 +558,41 @@ class SingboxProxyRuntimeState { } class SingboxProxyConfigResult { - SingboxProxyConfigResult({ - required this.configJson, - required this.endpoints, - }); + SingboxProxyConfigResult({required this.configJson, required this.endpoints}); String configJson; List endpoints; List _toList() { - return [ - configJson, - endpoints, - ]; + return [configJson, endpoints]; } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyConfigResult decode(Object result) { result as List; return SingboxProxyConfigResult( configJson: result[0]! as String, - endpoints: (result[1]! as List).cast(), + endpoints: (result[1]! as List) + .cast(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SingboxProxyConfigResult || other.runtimeType != runtimeType) { + if (other is! SingboxProxyConfigResult || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(configJson, other.configJson) && _deepEquals(endpoints, other.endpoints); + return _deepEquals(configJson, other.configJson) && + _deepEquals(endpoints, other.endpoints); } @override @@ -613,16 +622,12 @@ class SingboxProxyLogMessage { String? profileId; List _toList() { - return [ - level, - message, - timestamp, - profileId, - ]; + return [level, message, timestamp, profileId]; } Object encode() { - return _toList(); } + return _toList(); + } static SingboxProxyLogMessage decode(Object result) { result as List; @@ -643,7 +648,10 @@ class SingboxProxyLogMessage { if (identical(this, other)) { return true; } - return _deepEquals(level, other.level) && _deepEquals(message, other.message) && _deepEquals(timestamp, other.timestamp) && _deepEquals(profileId, other.profileId); + return _deepEquals(level, other.level) && + _deepEquals(message, other.message) && + _deepEquals(timestamp, other.timestamp) && + _deepEquals(profileId, other.profileId); } @override @@ -656,7 +664,6 @@ class SingboxProxyLogMessage { } } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -664,34 +671,34 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is SingboxProxyProfileType) { + } else if (value is SingboxProxyProfileType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is SingboxProxyRuntimeStatus) { + } else if (value is SingboxProxyRuntimeStatus) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is SingboxProxyProfile) { + } else if (value is SingboxProxyProfile) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is SingboxProxyRuntimeOptions) { + } else if (value is SingboxProxyRuntimeOptions) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is SingboxProxyDnsServerConfig) { + } else if (value is SingboxProxyDnsServerConfig) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is SingboxProxyDnsConfig) { + } else if (value is SingboxProxyDnsConfig) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is SingboxProxyRuntimeEndpoint) { + } else if (value is SingboxProxyRuntimeEndpoint) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is SingboxProxyRuntimeState) { + } else if (value is SingboxProxyRuntimeState) { buffer.putUint8(136); writeValue(buffer, value.encode()); - } else if (value is SingboxProxyConfigResult) { + } else if (value is SingboxProxyConfigResult) { buffer.putUint8(137); writeValue(buffer, value.encode()); - } else if (value is SingboxProxyLogMessage) { + } else if (value is SingboxProxyLogMessage) { buffer.putUint8(138); writeValue(buffer, value.encode()); } else { @@ -734,9 +741,13 @@ class SingboxProxyApi { /// Constructor for [SingboxProxyApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - SingboxProxyApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + SingboxProxyApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -744,82 +755,97 @@ class SingboxProxyApi { final String pigeonVar_messageChannelSuffix; Future validateProfile(SingboxProxyProfile profile) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.validateProfile$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.validateProfile$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([profile]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [profile], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } - Future buildConfig(List profiles, SingboxProxyRuntimeOptions options) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.buildConfig$pigeonVar_messageChannelSuffix'; + Future buildConfig( + List profiles, + SingboxProxyRuntimeOptions options, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.buildConfig$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([profiles, options]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [profiles, options], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as SingboxProxyConfigResult; } - Future start(List profiles, SingboxProxyRuntimeOptions options) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.start$pigeonVar_messageChannelSuffix'; + Future start( + List profiles, + SingboxProxyRuntimeOptions options, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.start$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([profiles, options]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [profiles, options], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as SingboxProxyRuntimeState; } Future stop(List profileIds) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.stop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.stop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([profileIds]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [profileIds], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future stopAll() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.stopAll$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.stopAll$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -829,15 +855,15 @@ class SingboxProxyApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future getState() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.getState$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyApi.getState$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -847,11 +873,10 @@ class SingboxProxyApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as SingboxProxyRuntimeState; } } @@ -863,46 +888,62 @@ abstract class SingboxProxyEventsApi { void onLogMessage(SingboxProxyLogMessage message); - static void setUp(SingboxProxyEventsApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + SingboxProxyEventsApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyEventsApi.onStateChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyEventsApi.onStateChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { final List args = message! as List; - final SingboxProxyRuntimeState arg_state = args[0]! as SingboxProxyRuntimeState; + final SingboxProxyRuntimeState arg_state = + args[0]! as SingboxProxyRuntimeState; try { api.onStateChanged(arg_state); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyEventsApi.onLogMessage$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_singbox_proxy.SingboxProxyEventsApi.onLogMessage$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { final List args = message! as List; - final SingboxProxyLogMessage arg_message = args[0]! as SingboxProxyLogMessage; + final SingboxProxyLogMessage arg_message = + args[0]! as SingboxProxyLogMessage; try { api.onLogMessage(arg_message); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/flutter_tor/lib/src/tor_api.g.dart b/packages/flutter_tor/lib/src/tor_api.g.dart index 52e7d160..593144f0 100644 --- a/packages/flutter_tor/lib/src/tor_api.g.dart +++ b/packages/flutter_tor/lib/src/tor_api.g.dart @@ -10,9 +10,9 @@ import 'package:flutter/services.dart'; import 'package:meta/meta.dart' show immutable, protected, visibleForTesting; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -34,8 +34,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -44,6 +47,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -56,8 +60,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -106,23 +111,29 @@ int _deepHash(Object? value) { return value.hashCode; } - /// Transport types for Tor connections enum TransportType { /// Direct Tor connection (no bridges) none, + /// obfs4 pluggable transport obfs4, + /// Snowflake pluggable transport (default broker) snowflake, + /// Snowflake via AMP cache snowflakeAmp, + /// Meek pluggable transport meek, + /// Meek via Azure CDN meekAzure, + /// WebTunnel pluggable transport webtunnel, + /// Custom bridge lines (passthrough) custom, } @@ -163,7 +174,8 @@ class TorConfiguration { } Object encode() { - return _toList(); } + return _toList(); + } static TorConfiguration decode(Object result) { result as List; @@ -185,7 +197,11 @@ class TorConfiguration { if (identical(this, other)) { return true; } - return _deepEquals(transport, other.transport) && _deepEquals(bridgeLines, other.bridgeLines) && _deepEquals(entryNodeCountries, other.entryNodeCountries) && _deepEquals(exitNodeCountries, other.exitNodeCountries) && _deepEquals(strictNodes, other.strictNodes); + return _deepEquals(transport, other.transport) && + _deepEquals(bridgeLines, other.bridgeLines) && + _deepEquals(entryNodeCountries, other.entryNodeCountries) && + _deepEquals(exitNodeCountries, other.exitNodeCountries) && + _deepEquals(strictNodes, other.strictNodes); } @override @@ -234,7 +250,8 @@ class TorStatus { } Object encode() { - return _toList(); } + return _toList(); + } static TorStatus decode(Object result) { result as List; @@ -256,7 +273,11 @@ class TorStatus { if (identical(this, other)) { return true; } - return _deepEquals(isRunning, other.isRunning) && _deepEquals(socksPort, other.socksPort) && _deepEquals(bootstrapProgress, other.bootstrapProgress) && _deepEquals(currentCircuit, other.currentCircuit) && _deepEquals(exitNodeCountry, other.exitNodeCountry); + return _deepEquals(isRunning, other.isRunning) && + _deepEquals(socksPort, other.socksPort) && + _deepEquals(bootstrapProgress, other.bootstrapProgress) && + _deepEquals(currentCircuit, other.currentCircuit) && + _deepEquals(exitNodeCountry, other.exitNodeCountry); } @override @@ -287,15 +308,12 @@ class TorLogMessage { int timestamp; List _toList() { - return [ - severity, - message, - timestamp, - ]; + return [severity, message, timestamp]; } Object encode() { - return _toList(); } + return _toList(); + } static TorLogMessage decode(Object result) { result as List; @@ -315,7 +333,9 @@ class TorLogMessage { if (identical(this, other)) { return true; } - return _deepEquals(severity, other.severity) && _deepEquals(message, other.message) && _deepEquals(timestamp, other.timestamp); + return _deepEquals(severity, other.severity) && + _deepEquals(message, other.message) && + _deepEquals(timestamp, other.timestamp); } @override @@ -328,7 +348,6 @@ class TorLogMessage { } } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -336,16 +355,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is TransportType) { + } else if (value is TransportType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is TorConfiguration) { + } else if (value is TorConfiguration) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is TorStatus) { + } else if (value is TorStatus) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is TorLogMessage) { + } else if (value is TorLogMessage) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -377,8 +396,10 @@ class TorApi { /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. TorApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -388,27 +409,30 @@ class TorApi { /// Start Tor with the given configuration /// Returns a Future to avoid blocking the main thread Future startTor(TorConfiguration config) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_tor.TorApi.startTor$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_tor.TorApi.startTor$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([config]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [config], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as int; } /// Stop Tor Future stopTor() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_tor.TorApi.stopTor$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_tor.TorApi.stopTor$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -418,16 +442,16 @@ class TorApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Get current status Future getStatus() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_tor.TorApi.getStatus$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_tor.TorApi.getStatus$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -437,17 +461,17 @@ class TorApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as TorStatus; } /// Request a new Tor identity (new circuit) Future requestNewIdentity() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_tor.TorApi.requestNewIdentity$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_tor.TorApi.requestNewIdentity$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -457,11 +481,10 @@ class TorApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -475,12 +498,20 @@ abstract class TorLogApi { /// Called when status changes void onStatusChanged(TorStatus status); - static void setUp(TorLogApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + TorLogApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_tor.TorLogApi.onLogMessage$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_tor.TorLogApi.onLogMessage$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -492,16 +523,20 @@ abstract class TorLogApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.flutter_tor.TorLogApi.onStatusChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.flutter_tor.TorLogApi.onStatusChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -513,8 +548,10 @@ abstract class TorLogApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -526,9 +563,13 @@ class IPtProxyController { /// Constructor for [IPtProxyController]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - IPtProxyController({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + IPtProxyController({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -536,39 +577,43 @@ class IPtProxyController { final String pigeonVar_messageChannelSuffix; Future start(TransportType proxyType, String proxy) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_tor.IPtProxyController.start$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_tor.IPtProxyController.start$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([proxyType, proxy]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [proxyType, proxy], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as int; } Future stop(TransportType proxyType) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.flutter_tor.IPtProxyController.stop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.flutter_tor.IPtProxyController.stop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([proxyType]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [proxyType], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } diff --git a/packages/locale_resolver/lib/src/pigeons/locales.g.dart b/packages/locale_resolver/lib/src/pigeons/locales.g.dart index 018474b5..81f4911a 100644 --- a/packages/locale_resolver/lib/src/pigeons/locales.g.dart +++ b/packages/locale_resolver/lib/src/pigeons/locales.g.dart @@ -10,9 +10,9 @@ import 'package:flutter/services.dart'; import 'package:meta/meta.dart' show immutable, protected, visibleForTesting; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -46,8 +46,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -96,26 +97,20 @@ int _deepHash(Object? value) { return value.hashCode; } - class LocalizedResult { - LocalizedResult({ - required this.languageName, - this.countryName, - }); + LocalizedResult({required this.languageName, this.countryName}); String languageName; String? countryName; List _toList() { - return [ - languageName, - countryName, - ]; + return [languageName, countryName]; } Object encode() { - return _toList(); } + return _toList(); + } static LocalizedResult decode(Object result) { result as List; @@ -134,7 +129,8 @@ class LocalizedResult { if (identical(this, other)) { return true; } - return _deepEquals(languageName, other.languageName) && _deepEquals(countryName, other.countryName); + return _deepEquals(languageName, other.languageName) && + _deepEquals(countryName, other.countryName); } @override @@ -147,7 +143,6 @@ class LocalizedResult { } } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -155,7 +150,7 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is LocalizedResult) { + } else if (value is LocalizedResult) { buffer.putUint8(129); writeValue(buffer, value.encode()); } else { @@ -178,31 +173,40 @@ class LocaleResolver { /// Constructor for [LocaleResolver]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - LocaleResolver({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + LocaleResolver({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future resolve(String languageTag, String targetLangouageTag) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.locale_resolver.LocaleResolver.resolve$pigeonVar_messageChannelSuffix'; + Future resolve( + String languageTag, + String targetLangouageTag, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.locale_resolver.LocaleResolver.resolve$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([languageTag, targetLangouageTag]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [languageTag, targetLangouageTag], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as LocalizedResult; } } diff --git a/packages/simple_intent_receiver/lib/src/pigeons/intent.g.dart b/packages/simple_intent_receiver/lib/src/pigeons/intent.g.dart index 2db86d8b..4f9c6b84 100644 --- a/packages/simple_intent_receiver/lib/src/pigeons/intent.g.dart +++ b/packages/simple_intent_receiver/lib/src/pigeons/intent.g.dart @@ -10,9 +10,9 @@ import 'package:flutter/services.dart'; import 'package:meta/meta.dart' show immutable, protected, visibleForTesting; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -34,8 +34,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -44,6 +47,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -56,8 +60,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -106,7 +111,6 @@ int _deepHash(Object? value) { return value.hashCode; } - class Intent { Intent({ this.fromPackageName, @@ -141,7 +145,8 @@ class Intent { } Object encode() { - return _toList(); } + return _toList(); + } static Intent decode(Object result) { result as List; @@ -164,7 +169,12 @@ class Intent { if (identical(this, other)) { return true; } - return _deepEquals(fromPackageName, other.fromPackageName) && _deepEquals(action, other.action) && _deepEquals(data, other.data) && _deepEquals(categories, other.categories) && _deepEquals(mimeType, other.mimeType) && _deepEquals(extra, other.extra); + return _deepEquals(fromPackageName, other.fromPackageName) && + _deepEquals(action, other.action) && + _deepEquals(data, other.data) && + _deepEquals(categories, other.categories) && + _deepEquals(mimeType, other.mimeType) && + _deepEquals(extra, other.extra); } @override @@ -177,7 +187,6 @@ class Intent { } } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -185,7 +194,7 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is Intent) { + } else if (value is Intent) { buffer.putUint8(129); writeValue(buffer, value.encode()); } else { @@ -208,9 +217,13 @@ class IntentHost { /// Constructor for [IntentHost]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - IntentHost({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + IntentHost({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -222,7 +235,8 @@ class IntentHost { /// IntentEvents.setUp() was called (cold-start deep links). /// Returns null if no launch intent is pending. Future getInitialIntent() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.simple_intent_receiver.IntentHost.getInitialIntent$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.simple_intent_receiver.IntentHost.getInitialIntent$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -232,11 +246,10 @@ class IntentHost { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as Intent?; } } @@ -246,12 +259,20 @@ abstract class IntentEvents { void onIntentReceived(int sequence, Intent intent); - static void setUp(IntentEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + IntentEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.simple_intent_receiver.IntentEvents.onIntentReceived$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.simple_intent_receiver.IntentEvents.onIntentReceived$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -264,8 +285,10 @@ abstract class IntentEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -277,9 +300,13 @@ class IntentGatekeeperHostApi { /// Constructor for [IntentGatekeeperHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - IntentGatekeeperHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + IntentGatekeeperHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -289,21 +316,23 @@ class IntentGatekeeperHostApi { /// Replicates the blocked-packages policy to the native side so the /// [IntentReceiverActivity] can reject intents without launching Flutter. Future setConfig(bool enabled, List blockedPackages) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.setConfig$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.setConfig$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled, blockedPackages]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled, blockedPackages], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Replicates whether the Custom Tabs feature is enabled to the native side. @@ -311,42 +340,46 @@ class IntentGatekeeperHostApi { /// share-with-URL intents to the main browser instead of launching the /// stripped-down custom-tab activity. Defaults to enabled on the native side. Future setCustomTabsEnabled(bool enabled) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.setCustomTabsEnabled$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.setCustomTabsEnabled$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Resolves a package name to its user-visible application label via /// [PackageManager]. Returns `null` if the package is not installed or the /// label cannot be resolved. Future resolvePackageLabel(String packageName) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.resolvePackageLabel$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.resolvePackageLabel$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([packageName]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [packageName], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } @@ -356,7 +389,8 @@ class IntentGatekeeperHostApi { /// [ackPendingAlwaysAllows] after Flutter settings were updated /// successfully. Future> getPendingAlwaysAllows() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.getPendingAlwaysAllows$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.getPendingAlwaysAllows$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -366,31 +400,32 @@ class IntentGatekeeperHostApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return (pigeonVar_replyValue! as List).cast(); } /// Removes the given packages from the pending "Always allow" set after /// Flutter has successfully persisted them into its own policy store. Future ackPendingAlwaysAllows(List packageNames) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.ackPendingAlwaysAllows$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.simple_intent_receiver.IntentGatekeeperHostApi.ackPendingAlwaysAllows$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([packageNames]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [packageNames], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } diff --git a/packages/speech_to_text_dialog/lib/src/pigeons/speech_to_text.g.dart b/packages/speech_to_text_dialog/lib/src/pigeons/speech_to_text.g.dart index d7308fba..51e15003 100644 --- a/packages/speech_to_text_dialog/lib/src/pigeons/speech_to_text.g.dart +++ b/packages/speech_to_text_dialog/lib/src/pigeons/speech_to_text.g.dart @@ -10,9 +10,9 @@ import 'package:flutter/services.dart'; import 'package:meta/meta.dart' show immutable, protected, visibleForTesting; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -34,8 +34,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -45,7 +48,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -72,9 +74,13 @@ class SpeechToTextApi { /// Constructor for [SpeechToTextApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - SpeechToTextApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + SpeechToTextApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -89,21 +95,23 @@ class SpeechToTextApi { /// The [locale] parameter specifies the language locale for recognition /// (e.g., 'en-US', 'de-DE'). If null, uses the device default. Future showDialog({String? locale}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.speech_to_text_dialog.SpeechToTextApi.showDialog$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.speech_to_text_dialog.SpeechToTextApi.showDialog$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([locale]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [locale], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ); return pigeonVar_replyValue! as bool; } } @@ -118,12 +126,20 @@ abstract class SpeechToTextEvents { /// recognition failed or was cancelled. void onTextReceived(String text); - static void setUp(SpeechToTextEvents? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + SpeechToTextEvents? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.speech_to_text_dialog.SpeechToTextEvents.onTextReceived$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.speech_to_text_dialog.SpeechToTextEvents.onTextReceived$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -135,8 +151,10 @@ abstract class SpeechToTextEvents { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); }