diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/entities/import_bookmark_node.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/entities/import_bookmark_node.dart index 1b929d4c..47a5f9e0 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/entities/import_bookmark_node.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/entities/import_bookmark_node.dart @@ -30,6 +30,40 @@ /// dropped during parsing rather than modelled here. library; +/// What an import is doing right now. +enum BookmarkImportPhase { + /// Reading and parsing the file, off the UI isolate. + parsing, + + /// Emptying the existing roots, for a replacing import. + erasing, + + /// Writing the parsed tree into storage. + inserting, +} + +/// How far along an import is, for display while it runs. +class BookmarkImportProgress { + final BookmarkImportPhase phase; + + /// Bookmarks written so far. Zero outside [BookmarkImportPhase.inserting]. + final int inserted; + + /// Bookmarks the file is expected to yield, or 0 while still unknown — + /// during parsing there is nothing to count against yet. + final int total; + + const BookmarkImportProgress({ + required this.phase, + this.inserted = 0, + this.total = 0, + }); + + /// Fraction complete, or null when it cannot be known and the UI should show + /// an indeterminate indicator instead. + double? get fraction => total > 0 ? (inserted / total).clamp(0.0, 1.0) : null; +} + /// A single node of a parsed bookmark tree. sealed class ImportBookmarkNode { /// Creation time recorded in the imported file, or null if it had none. diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.dart index 901c0dce..e5477a5f 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/domain/repositories/bookmarks.dart @@ -21,6 +21,7 @@ import 'package:flutter_mozilla_components/flutter_mozilla_components.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:weblibre/core/logger.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/bookmark_item.dart'; +import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/import_bookmark_node.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/utils/bookmark_html_utils.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/utils/bookmark_import_isolate.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/utils/bookmark_importer.dart'; @@ -226,7 +227,12 @@ class BookmarksRepository extends _$BookmarksRepository { required String path, required BookmarkImportFormat format, bool replace = false, + void Function(BookmarkImportProgress)? onProgress, }) async { + onProgress?.call( + const BookmarkImportProgress(phase: BookmarkImportPhase.parsing), + ); + final tree = await parseBookmarkFile( path: path, format: format, @@ -237,7 +243,7 @@ class BookmarksRepository extends _$BookmarksRepository { final count = await BookmarkTreeImporter( _service, - ).import(tree, replace: replace); + ).import(tree, replace: replace, onProgress: onProgress); _notifyChanged(); return count; diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/presentation/dialogs/import_progress_dialog.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/presentation/dialogs/import_progress_dialog.dart new file mode 100644 index 00000000..1e7949e6 --- /dev/null +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/presentation/dialogs/import_progress_dialog.dart @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024-2026 Fabian Freund. + * + * This file is part of WebLibre + * (see https://weblibre.eu). + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/import_bookmark_node.dart'; + +/// Shows how far a running bookmark import has got. +/// +/// A large file takes long enough that the app would otherwise look frozen. +/// The dialog cannot be dismissed: storage work is already under way and there +/// is no way to call it back, so offering a cancel button would be a lie. +/// +/// [progress] is driven by the import itself; the dialog closes when the caller +/// pops it. +class ImportProgressDialog extends StatelessWidget { + final ValueListenable progress; + + const ImportProgressDialog({required this.progress, super.key}); + + @override + Widget build(BuildContext context) { + return PopScope( + canPop: false, + child: AlertDialog( + title: const Text('Importing bookmarks'), + content: ValueListenableBuilder( + valueListenable: progress, + builder: (context, value, child) { + return Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(switch (value.phase) { + BookmarkImportPhase.parsing => 'Reading the file…', + BookmarkImportPhase.erasing => 'Removing existing bookmarks…', + BookmarkImportPhase.inserting when value.total > 0 => + '${value.inserted} of ${value.total} bookmarks', + BookmarkImportPhase.inserting => 'Saving bookmarks…', + }), + const SizedBox(height: 16.0), + LinearProgressIndicator(value: value.fraction), + ], + ); + }, + ), + ), + ); + } +} diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/presentation/screens/bookmark_list.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/presentation/screens/bookmark_list.dart index 64788795..b8a2b5e1 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/presentation/screens/bookmark_list.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/presentation/screens/bookmark_list.dart @@ -35,6 +35,7 @@ import 'package:weblibre/features/geckoview/domain/repositories/tab.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/bookmark_item.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/bookmark_list_ui_state.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/bookmark_sort_type.dart'; +import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/import_bookmark_node.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/domain/providers/bookmark_list_ui_state.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/domain/providers/bookmarks.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/domain/repositories/bookmarks.dart'; @@ -42,6 +43,7 @@ import 'package:weblibre/features/geckoview/features/bookmarks/domain/utils/book import 'package:weblibre/features/geckoview/features/bookmarks/presentation/dialogs/delete_bookmark_dialog.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/presentation/dialogs/delete_folder_dialog.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/presentation/dialogs/import_bookmarks_dialog.dart'; +import 'package:weblibre/features/geckoview/features/bookmarks/presentation/dialogs/import_progress_dialog.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/presentation/dialogs/select_bookmark_folder_dialog.dart'; import 'package:weblibre/features/geckoview/features/bookmarks/utils/bookmark_import_isolate.dart'; import 'package:weblibre/features/geckoview/features/tabs/data/entities/tab_mode.dart'; @@ -1086,15 +1088,39 @@ class BookmarkListScreen extends HookConsumerWidget { final shouldReplace = await showImportBookmarksDialog(context); if (shouldReplace == null) return; // User cancelled dialog - // Reading and parsing happen in a background isolate, so a large file - // does not freeze the UI while it is being processed. - final count = await ref - .read(bookmarksRepositoryProvider.notifier) - .importFromFile( - path: file.path!, - format: format, - replace: shouldReplace, - ); + if (!context.mounted) return; + + // Writing tens of thousands of bookmarks takes long enough that the app + // would look frozen without something to watch. + final progress = ValueNotifier( + const BookmarkImportProgress(phase: BookmarkImportPhase.parsing), + ); + + final progressDialog = showDialog( + context: context, + barrierDismissible: false, + builder: (context) => ImportProgressDialog(progress: progress), + ); + + final int count; + try { + // Reading and parsing happen in a background isolate, so a large file + // does not freeze the UI while it is being processed. + count = await ref + .read(bookmarksRepositoryProvider.notifier) + .importFromFile( + path: file.path!, + format: format, + replace: shouldReplace, + onProgress: (value) => progress.value = value, + ); + } finally { + if (context.mounted) { + Navigator.of(context, rootNavigator: true).pop(); + await progressDialog; + } + progress.dispose(); + } if (context.mounted) { showInfoMessage(context, 'Imported $count bookmarks successfully'); diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_html_utils.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_html_utils.dart index 8108ca27..1c9db228 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_html_utils.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_html_utils.dart @@ -105,6 +105,15 @@ class _PendingItem { _PendingItem({required this.url, this.dateAdded, this.lastModified}); } +/// One level of the document walk: a node and how far through its children the +/// walk has got. +class _WalkFrame { + final dom.Node node; + int index = 0; + + _WalkFrame(this.node); +} + class _Frame { final _ParsedFolder folder; int containerNesting = 0; @@ -148,49 +157,47 @@ class _BookmarkHtmlParser { return _buildTree(); } - dom.Node? _nextSibling(dom.Node node) { - final parent = node.parent; - if (parent == null) return null; - - final siblings = parent.nodes; - final index = siblings.indexOf(node); - - if (index != -1 && index + 1 < siblings.length) { - return siblings[index + 1]; - } - - return null; - } - + /// Walks the document depth-first, opening each node on the way down and + /// closing it on the way back up. + /// + /// Keeps its own cursor into every level rather than asking a node for its + /// next sibling. Locating a sibling means searching the parent's child list, + /// which is linear, so doing it per step made the walk quadratic in the + /// number of siblings at a level. A flat bookmark file puts every entry under + /// a single list, which turned a 25k-bookmark import into hundreds of + /// millions of comparisons and minutes of parsing. void _walkTreeForImport(dom.Node? node) { if (node == null) return; - dom.Node? current = node; - dom.Node? next; + final stack = <_WalkFrame>[_WalkFrame(node)]; + _enterNode(node); - for (;;) { - if (current?.nodeType == dom.Node.ELEMENT_NODE) { - _openContainer(current! as dom.Element); - } else if (current?.nodeType == dom.Node.TEXT_NODE) { - _appendText(current!.text ?? ''); - } + while (stack.isNotEmpty) { + final frame = stack.last; + final children = frame.node.nodes; - if ((next = current?.firstChild) != null) { - current = next; - continue; + if (frame.index < children.length) { + final child = children[frame.index++]; + _enterNode(child); + stack.add(_WalkFrame(child)); + } else { + _leaveNode(frame.node); + stack.removeLast(); } + } + } - for (;;) { - if (current?.nodeType == dom.Node.ELEMENT_NODE) { - _closeContainer(current! as dom.Element); - } - if (current == node) return; - if ((next = _nextSibling(current!)) != null) { - current = next; - break; - } - current = current.parentNode; - } + void _enterNode(dom.Node node) { + if (node.nodeType == dom.Node.ELEMENT_NODE) { + _openContainer(node as dom.Element); + } else if (node.nodeType == dom.Node.TEXT_NODE) { + _appendText(node.text ?? ''); + } + } + + void _leaveNode(dom.Node node) { + if (node.nodeType == dom.Node.ELEMENT_NODE) { + _closeContainer(node as dom.Element); } } diff --git a/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_importer.dart b/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_importer.dart index 75059252..a73f1407 100644 --- a/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_importer.dart +++ b/apps/weblibre/lib/features/geckoview/features/bookmarks/utils/bookmark_importer.dart @@ -38,10 +38,20 @@ class BookmarkTreeImporter { /// first; the root itself is never deleted. A tree that parsed to nothing /// erases nothing either, so a malformed or empty file cannot wipe the /// user's bookmarks and leave them with an empty library. - Future import(ImportBookmarkTree tree, {required bool replace}) async { + Future import( + ImportBookmarkTree tree, { + required bool replace, + void Function(BookmarkImportProgress)? onProgress, + }) async { if (tree.isEmpty) return 0; + final total = tree.stats.bookmarkCount; + if (replace) { + onProgress?.call( + const BookmarkImportProgress(phase: BookmarkImportPhase.erasing), + ); + for (final root in BookmarkRoot.values) { if (root != BookmarkRoot.root) { await _service.eraseEverything(root); @@ -51,20 +61,45 @@ class BookmarkTreeImporter { var importedCount = 0; - for (final section in tree.sections.entries) { - if (section.value.isEmpty) continue; - - final result = await _service.insertTree( - section.key, - section.value.map(toPigeonImportNode).toList(), + // Native reports progress per insertion, counted from the start of that + // call, so completed sections have to be added back on. + void report(int insertedInSection) { + onProgress?.call( + BookmarkImportProgress( + phase: BookmarkImportPhase.inserting, + inserted: importedCount + insertedInSection, + total: total, + ), ); + } - importedCount += result.insertedItemCount; + if (onProgress != null) { + GeckoBookmarksEvents.setUp(_ImportProgressReceiver(report)); + } - if (result.failedNodeCount > 0) { - logger.e( - 'Failed to import ${result.failedNodeCount} top-level nodes into ${section.key}', + try { + report(0); + + for (final section in tree.sections.entries) { + if (section.value.isEmpty) continue; + + final result = await _service.insertTree( + section.key, + section.value.map(toPigeonImportNode).toList(), ); + + importedCount += result.insertedItemCount; + report(0); + + if (result.failedNodeCount > 0) { + logger.e( + 'Failed to import ${result.failedNodeCount} top-level nodes into ${section.key}', + ); + } + } + } finally { + if (onProgress != null) { + GeckoBookmarksEvents.setUp(null); } } @@ -72,6 +107,16 @@ class BookmarkTreeImporter { } } +class _ImportProgressReceiver extends GeckoBookmarksEvents { + _ImportProgressReceiver(this._onProgress); + + final void Function(int insertedItemCount) _onProgress; + + @override + void onImportProgress(int insertedItemCount) => + _onProgress(insertedItemCount); +} + /// Converts a parsed node into the Pigeon transport type. /// /// Timestamps become milliseconds since epoch, with 0 standing in for "the file diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/FlutterMozillaComponentsPlugin.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/FlutterMozillaComponentsPlugin.kt index 208bdd30..6b5b52f4 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/FlutterMozillaComponentsPlugin.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/FlutterMozillaComponentsPlugin.kt @@ -53,6 +53,10 @@ class FlutterMozillaComponentsPlugin: FlutterPlugin, ActivityAware { // The UnifiedPush receiver outlives the Flutter engine; without this it would keep dispatching // onto a dead messenger. Failures are still retained on Push.lastError. GlobalComponents.pushEvents = null + // An import in flight keeps reporting after detach, and would otherwise hold + // the old messenger across an engine restart. Progress is advisory, so + // dropping the sink only costs the percentage, never the import itself. + GlobalComponents.bookmarksEvents = null } override fun onAttachedToActivity(binding: ActivityPluginBinding) { diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/GlobalComponents.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/GlobalComponents.kt index 28a5a3e1..3de333dd 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/GlobalComponents.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/GlobalComponents.kt @@ -18,6 +18,7 @@ import eu.weblibre.flutter_mozilla_components.pigeons.GeckoAddonEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoEngineSettings import eu.weblibre.flutter_mozilla_components.pigeons.GeckoAppLinkEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoGestureEvents +import eu.weblibre.flutter_mozilla_components.pigeons.GeckoBookmarksEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoHistoryEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoPushEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoSelectionActionEvents @@ -146,6 +147,11 @@ object GlobalComponents { // container contextIds but skips Dart relation emits. var historyEvents: GeckoHistoryEvents? = null + // Native -> Dart progress for a running bookmark import. Null whenever no + // import is in flight or Flutter is detached; progress is purely advisory, + // so a missing sink only means the UI shows no percentage. + var bookmarksEvents: GeckoBookmarksEvents? = null + // Native -> Dart UnifiedPush registration lifecycle. Null when push events // arrive with no Flutter engine attached (the UnifiedPushReceiver cold-start // path), in which case failures are logged natively only. diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBookmarksApiImpl.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBookmarksApiImpl.kt index d3f289bb..e471fccf 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBookmarksApiImpl.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBookmarksApiImpl.kt @@ -26,6 +26,17 @@ class GeckoBookmarksApiImpl() : GeckoBookmarksApi { * during an import. Only visible if an import is interrupted partway. */ private const val SCRATCH_FOLDER_TITLE = "Importing bookmarks…" + + /** Bookmarks written between progress reports. */ + private const val PROGRESS_STEP = 64L + + /** + * Largest subtree handed to storage as a single insertion. + * + * Bounds how long the import can run without reporting anything. Raise + * it for fewer, larger writes; lower it for a smoother progress bar. + */ + private const val BULK_INSERT_THRESHOLD = 1000L } private val components by lazy { @@ -259,54 +270,233 @@ class GeckoBookmarksApiImpl() : GeckoBookmarksApi { } /** - * Appends [nodes] underneath [parentGuid], handing every top-level folder to - * storage as a single tree insertion. + * Appends [nodes] underneath [parentGuid]. * * `insertTree` is the only storage call that carries timestamps, and it can - * only create a *folder*. Loose top-level items and separators would - * therefore lose their `ADD_DATE` if inserted with `addItem`/`addSeparator`, - * which have no timestamp parameters — so they are staged inside a scratch - * folder and reparented instead. See [stageLooseNodes]. + * only create a *folder*. Loose items and separators would therefore lose + * their `ADD_DATE` if inserted with `addItem`/`addSeparator`, which have no + * timestamp parameters — so they pass through a scratch folder instead. See + * [insertLooseChunk]. * - * A failing top-level node is counted and skipped rather than aborting the - * whole import, matching the per-node importer this replaced. Deliberately - * does not emit `bookmarks.onCreated`: one event per imported node would - * flood every installed WebExtension. + * A failing node is counted and skipped rather than aborting the whole + * import, matching the per-node importer this replaced. Deliberately does + * not emit `bookmarks.onCreated`: one event per imported node would flood + * every installed WebExtension. */ private suspend fun insertImportNodes( parentGuid: String, nodes: List ): BookmarkInsertTreeResult { - val storage = components.core.bookmarksStorage + val state = InsertState(ImportProgressReporter()) + + insertChildren(parentGuid, nodes, state) + + state.progress.reportFinal(state.insertedItemCount) + + return BookmarkInsertTreeResult(state.insertedItemCount, state.failedNodeCount) + } + + /** Running totals for one import, shared across the recursion. */ + private class InsertState(val progress: ImportProgressReporter) { var insertedItemCount = 0L var failedNodeCount = 0L + } - val staged = stageLooseNodes(parentGuid, nodes) + /** + * Writes [nodes] underneath [parentGuid], in order. + * + * Folders are written one at a time; runs of consecutive loose nodes are + * written in chunks. Every write appends, so walking the nodes strictly in + * order reproduces the file's order, and merging into a folder that already + * has children leaves those in place. + */ + private suspend fun insertChildren( + parentGuid: String, + nodes: List, + state: InsertState + ) { + var index = 0 - for (node in nodes) { - // Every branch appends (position = null). Walking the nodes in order - // therefore reproduces the file's order, and merging into a folder - // that already has children leaves those in place. - val outcome: Result = when (node.type) { - BookmarkNodeType.FOLDER -> { - val folder = node.toInsertableFolder(position = null) - storage.insertTree(InsertableBookmarkTreeRoot(parentGuid, folder)) - .map { folder.itemCount() } - } - - // Already written by stageLooseNodes; only the move is left. - else -> staged.reparent(node, parentGuid) + while (index < nodes.size) { + if (nodes[index].type == BookmarkNodeType.FOLDER) { + insertFolder(parentGuid, nodes[index], state).fold( + { count -> state.insertedItemCount += count }, + { state.failedNodeCount += 1 } + ) + state.progress.report(state.insertedItemCount) + index++ + continue } - outcome.fold( - { count -> insertedItemCount += count }, - { failedNodeCount += 1 } - ) + // Take the whole run of loose nodes so they keep their place + // relative to the folders around them. + var end = index + while (end < nodes.size && nodes[end].type != BookmarkNodeType.FOLDER) { + end++ + } + + for (chunk in nodes.subList(index, end).chunked(BULK_INSERT_THRESHOLD.toInt())) { + insertLooseChunk(parentGuid, chunk, state) + } + + index = end + } + } + + /** + * Writes a chunk of loose items and separators, then moves them into place. + * + * `insertTree` is the only call that carries timestamps and it can only + * create a folder, so loose nodes are written into a scratch folder and + * reparented out of it. Doing that for the whole file at once left the + * progress bar at zero for the entire bulk write, so it happens a chunk at + * a time and the moves report as they go. + */ + private suspend fun insertLooseChunk( + parentGuid: String, + chunk: List, + state: InsertState + ) { + val storage = components.core.bookmarksStorage + + val staged = ArrayList(chunk.size) + val insertable = ArrayList(chunk.size) + for (node in chunk) { + // Positions come from the surviving order so dropping an unusable + // node leaves no gap. + val converted = node.toInsertableNode(insertable.size.toUInt()) + if (converted == null) { + state.failedNodeCount += 1 + continue + } + insertable.add(converted) + staged.add(node) } - staged.discardScratchFolder() + if (staged.isEmpty()) return - return BookmarkInsertTreeResult(insertedItemCount, failedNodeCount) + val scratch = InsertableBookmarkTreeNode.Folder( + title = SCRATCH_FOLDER_TITLE, + dateAddedTimestamp = 0L, + lastModifiedTimestamp = 0L, + position = null, + children = insertable + ) + + val scratchGuid = storage.insertTree(InsertableBookmarkTreeRoot(parentGuid, scratch)) + .getOrElse { + state.failedNodeCount += staged.size + return + } + + // Read the assigned guids back in position order, which is the order + // the nodes were handed to insertTree. + val written = storage.getTree(scratchGuid, false).getOrNull()?.children.orEmpty() + + for ((position, node) in staged.withIndex()) { + val guid = written.getOrNull(position)?.guid + if (guid == null) { + state.failedNodeCount += 1 + continue + } + + // A null field means "leave unchanged"; appending (null position) + // keeps the file's order as the caller walks the level. + val move = MozillaBookmarkInfo( + parentGuid = parentGuid, + position = null, + title = null, + url = null + ) + + storage.updateNode(guid, move).fold( + { + if (node.type == BookmarkNodeType.ITEM) { + state.insertedItemCount += 1 + } + }, + { state.failedNodeCount += 1 } + ) + + state.progress.report(state.insertedItemCount) + } + + // Deleting cascades to children, so anything that failed to move is + // left behind in a visible folder rather than being silently destroyed. + val remaining = storage.getTree(scratchGuid, false).getOrNull()?.children + if (remaining.isNullOrEmpty()) { + storage.deleteNode(scratchGuid) + } + } + + /** + * Writes one folder and everything under it. + * + * Storage inserts a tree as a single indivisible operation with no way to + * observe it, so a whole import handed over in one call reports nothing + * until it has finished — a bookmark file whose top level is a single + * folder, which is what Firefox exports look like, would leave the progress + * bar at zero for the entire run. + * + * Subtrees up to [BULK_INSERT_THRESHOLD] items therefore go in whole, which + * is the fast path, while anything larger is split: the folder itself is + * created empty — keeping its own timestamps — and its children are written + * one level down. That trades some batching for a progress bar that moves. + */ + private suspend fun insertFolder( + parentGuid: String, + node: BookmarkImportNode, + state: InsertState + ): Result { + val storage = components.core.bookmarksStorage + val folder = node.toInsertableFolder(position = null) + val itemCount = folder.itemCount() + + if (itemCount <= BULK_INSERT_THRESHOLD) { + return storage.insertTree(InsertableBookmarkTreeRoot(parentGuid, folder)) + .map { itemCount } + } + + val shell = folder.copy(children = emptyList()) + val guid = storage.insertTree(InsertableBookmarkTreeRoot(parentGuid, shell)) + .getOrElse { return Result.failure(it) } + + insertChildren(guid, node.children, state) + + // The recursion already counted everything it wrote. + return Result.success(0L) + } + + /** + * Forwards insertion progress to Dart, throttled. + * + * A flat bookmark file has every entry as a top-level node, so the caller + * ticks once per bookmark — tens of thousands of times. Only every + * [PROGRESS_STEP]th tick crosses the channel, plus a final exact figure, so + * the reporting cannot itself become the bottleneck. + */ + private inner class ImportProgressReporter { + private var lastReported = 0L + + fun report(insertedItemCount: Long) { + if (insertedItemCount - lastReported < PROGRESS_STEP) return + lastReported = insertedItemCount + emit(insertedItemCount) + } + + fun reportFinal(insertedItemCount: Long) { + if (insertedItemCount == lastReported) return + lastReported = insertedItemCount + emit(insertedItemCount) + } + + private fun emit(insertedItemCount: Long) { + val events = GlobalComponents.bookmarksEvents ?: return + // Pigeon callbacks must be dispatched from the platform thread. + coroutineScope.launch { + events.onImportProgress(insertedItemCount) {} + } + } } override fun countBookmarksInTrees( @@ -323,131 +513,6 @@ class GeckoBookmarksApiImpl() : GeckoBookmarksApi { } } - /** - * Loose top-level nodes written into a scratch folder, waiting to be moved - * to their real parent. - * - * The scratch folder is created under the import destination and holds the - * loose nodes in file order; [reparent] hands them out one at a time as the - * caller walks the top level, and [discardScratchFolder] removes the folder - * once it has been emptied. - */ - private inner class StagedLooseNodes( - private val scratchGuid: String?, - /** The loose nodes that made it into the scratch folder, in order. */ - private val staged: List, - /** Guid assigned to each entry of [staged], by index. */ - private val guids: List, - private val failure: Throwable? - ) { - private var next = 0 - - /** - * Moves the next staged node under [parentGuid]. - * - * Reparenting preserves `dateAdded`, which is what bookmark ordering and - * "recently added" depend on. It does refresh `lastModified` — the pair - * cannot both survive, because the only storage call that accepts - * timestamps creates a folder. - */ - suspend fun reparent(node: BookmarkImportNode, parentGuid: String): Result { - failure?.let { return Result.failure(it) } - - // Nodes dropped while converting (an item with no usable url) were - // never staged, so the cursor must not advance past them. - if (staged.getOrNull(next) !== node) { - return Result.failure( - IllegalArgumentException("Unusable bookmark node of type ${node.type}") - ) - } - - val guid = guids.getOrNull(next) - ?: return Result.failure( - IllegalStateException("Storage did not report a guid for ${node.type}") - ) - next++ - - // A null field means "leave unchanged"; appending (null position) - // keeps the file's order as the caller walks the top level. - val move = MozillaBookmarkInfo( - parentGuid = parentGuid, - position = null, - title = null, - url = null - ) - - return components.core.bookmarksStorage - .updateNode(guid, move) - .map { if (node.type == BookmarkNodeType.ITEM) 1L else 0L } - } - - /** - * Deletes the scratch folder, but only once it is empty. - * - * Deleting cascades to children, so anything that failed to move is left - * behind in a visible folder rather than being silently destroyed. - */ - suspend fun discardScratchFolder() { - val guid = scratchGuid ?: return - val storage = components.core.bookmarksStorage - - val remaining = storage.getTree(guid, false).getOrNull()?.children - if (remaining.isNullOrEmpty()) { - storage.deleteNode(guid) - } - } - } - - /** - * Writes every loose top-level node of [nodes] into a scratch folder under - * [parentGuid] in a single tree insertion, so their timestamps survive. - * - * Returns an empty staging area when the import has no loose top-level - * nodes, which is the common case for Firefox exports and costs nothing. - */ - private suspend fun stageLooseNodes( - parentGuid: String, - nodes: List - ): StagedLooseNodes { - val empty = StagedLooseNodes(null, emptyList(), emptyList(), null) - - val staged = ArrayList() - val insertable = ArrayList() - for (node in nodes) { - if (node.type == BookmarkNodeType.FOLDER) continue - val converted = node.toInsertableNode(insertable.size.toUInt()) ?: continue - insertable.add(converted) - staged.add(node) - } - - if (staged.isEmpty()) return empty - - val scratch = InsertableBookmarkTreeNode.Folder( - title = SCRATCH_FOLDER_TITLE, - dateAddedTimestamp = 0L, - lastModifiedTimestamp = 0L, - position = null, - children = insertable - ) - - val storage = components.core.bookmarksStorage - - return storage.insertTree(InsertableBookmarkTreeRoot(parentGuid, scratch)).fold( - { scratchGuid -> - // Read the assigned guids back in position order, which is the - // order the nodes were handed to insertTree. - val children = storage.getTree(scratchGuid, false).getOrNull()?.children - StagedLooseNodes( - scratchGuid = scratchGuid, - staged = staged, - guids = children.orEmpty().map { it.guid }, - failure = null - ) - }, - { error -> StagedLooseNodes(null, staged, emptyList(), error) } - ) - } - private fun BookmarkImportNode.toInsertableFolder(position: UInt?) = InsertableBookmarkTreeNode.Folder( title = this.title, diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBrowserApiImpl.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBrowserApiImpl.kt index cfbde531..0b1e3a8a 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBrowserApiImpl.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/api/GeckoBrowserApiImpl.kt @@ -52,6 +52,7 @@ import eu.weblibre.flutter_mozilla_components.pigeons.GeckoPushEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoPwaApi import eu.weblibre.flutter_mozilla_components.pigeons.GeckoSelectionActionController import eu.weblibre.flutter_mozilla_components.pigeons.GeckoAppLinkEvents +import eu.weblibre.flutter_mozilla_components.pigeons.GeckoBookmarksEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoHistoryEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoSelectionActionEvents import eu.weblibre.flutter_mozilla_components.pigeons.GeckoSessionApi @@ -281,6 +282,10 @@ class GeckoBrowserApiImpl : GeckoBrowserApi { GlobalComponents.historyEvents = GeckoHistoryEvents(_flutterPluginBinding.binaryMessenger) + // Progress sink for long-running bookmark imports. + GlobalComponents.bookmarksEvents = + GeckoBookmarksEvents(_flutterPluginBinding.binaryMessenger) + // Availability signal for pending app-link prompts (Flutter-owned prompts). GlobalComponents.appLinkEvents = GeckoAppLinkEvents(_flutterPluginBinding.binaryMessenger) diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/pigeons/Gecko.g.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/pigeons/Gecko.g.kt index 1c40a3bf..708d6382 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/pigeons/Gecko.g.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/pigeons/Gecko.g.kt @@ -12151,6 +12151,46 @@ interface GeckoFetchApi { } } } +/** + * Native -> Dart progress for a bulk bookmark insertion. + * + * A large import is a single [GeckoBookmarksApi.insertTree] call that can run + * for a long time, so it reports how far along it is rather than leaving the + * app with nothing to show. Emission is throttled natively, so this fires + * far less often than once per bookmark. + * + * Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. + */ +class GeckoBookmarksEvents(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { + companion object { + /** The codec used by GeckoBookmarksEvents. */ + val codec: MessageCodec by lazy { + GeckoPigeonCodec() + } + } + /** + * [insertedItemCount] is the running number of bookmark items written by the + * insertion currently in progress, counted from the start of that one call. + * Dart adds the offset of any earlier calls to get an overall figure. + */ + fun onImportProgress(insertedItemCountArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksEvents.onImportProgress$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(insertedItemCountArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(GeckoPigeonUtils.createConnectionError(channelName))) + } + } + } +} /** * Controls GeckoView's viewport behavior for dynamic toolbar and keyboard handling. * diff --git a/packages/flutter_mozilla_components/lib/flutter_mozilla_components.dart b/packages/flutter_mozilla_components/lib/flutter_mozilla_components.dart index 9d13f76c..756c6407 100644 --- a/packages/flutter_mozilla_components/lib/flutter_mozilla_components.dart +++ b/packages/flutter_mozilla_components/lib/flutter_mozilla_components.dart @@ -79,6 +79,7 @@ export 'src/pigeons/gecko.g.dart' EmailHitResult, FrecencyThresholdOption, GeckoAppLinkEvents, + GeckoBookmarksEvents, GeckoDeleteBrowsingDataController, GeckoEngineSettings, GeckoFetchResponse, 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 6d7cbb79..67d86211 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,11 +34,8 @@ 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 []; } @@ -47,7 +44,6 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -60,9 +56,8 @@ 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) { @@ -111,14 +106,13 @@ 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, } @@ -139,71 +133,80 @@ 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, @@ -214,7 +217,11 @@ enum AddonDisabledReason { softBlocked, } -enum AddonIncognito { spanning, split, notAllowed } +enum AddonIncognito { + spanning, + split, + notAllowed, +} enum AddonUpdateStatus { notInstalled, @@ -223,47 +230,74 @@ 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, } @@ -280,19 +314,15 @@ 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, } @@ -301,77 +331,108 @@ 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, } @@ -380,39 +441,42 @@ 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, @@ -423,21 +487,26 @@ 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 @@ -464,19 +533,24 @@ 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; @@ -495,8 +569,7 @@ 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 @@ -532,8 +605,7 @@ class TranslationDetectedLanguages { } Object encode() { - return _toList(); - } + return _toList(); } static TranslationDetectedLanguages decode(Object result) { result as List; @@ -547,16 +619,13 @@ 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 @@ -571,19 +640,24 @@ 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; @@ -602,8 +676,7 @@ 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 @@ -631,19 +704,21 @@ 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(), ); } @@ -651,16 +726,13 @@ 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 @@ -728,8 +800,7 @@ class TabTranslationStateData { } Object encode() { - return _toList(); - } + return _toList(); } static TabTranslationStateData decode(Object result) { result as List; @@ -757,20 +828,7 @@ 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 @@ -833,8 +891,7 @@ class ReaderState { } Object encode() { - return _toList(); - } + return _toList(); } static ReaderState decode(Object result) { result as List; @@ -858,13 +915,7 @@ 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 @@ -924,8 +975,7 @@ class AddTabParams { } Object encode() { - return _toList(); - } + return _toList(); } static AddTabParams decode(Object result) { result as List; @@ -938,8 +988,7 @@ 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(), ); } @@ -952,15 +1001,7 @@ 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 @@ -1000,12 +1041,15 @@ 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; @@ -1025,9 +1069,7 @@ 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 @@ -1045,7 +1087,11 @@ 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; @@ -1060,12 +1106,15 @@ 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; @@ -1085,9 +1134,7 @@ 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 @@ -1101,21 +1148,26 @@ 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 @@ -1142,7 +1194,10 @@ 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; @@ -1151,12 +1206,14 @@ 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; @@ -1175,8 +1232,7 @@ 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 @@ -1190,21 +1246,26 @@ 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 @@ -1230,19 +1291,24 @@ 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; @@ -1366,8 +1432,7 @@ class TabState { } Object encode() { - return _toList(); - } + return _toList(); } static TabState decode(Object result) { result as List; @@ -1399,21 +1464,7 @@ 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 @@ -1428,7 +1479,10 @@ 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; @@ -1437,12 +1491,14 @@ 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; @@ -1461,8 +1517,7 @@ 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 @@ -1499,12 +1554,18 @@ 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; @@ -1527,12 +1588,7 @@ 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 @@ -1546,23 +1602,31 @@ 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 @@ -1608,12 +1672,17 @@ 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; @@ -1635,11 +1704,7 @@ 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 @@ -1674,12 +1739,16 @@ 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; @@ -1700,10 +1769,7 @@ 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 @@ -1717,21 +1783,26 @@ 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 @@ -1818,8 +1889,7 @@ class Cookie { } Object encode() { - return _toList(); - } + return _toList(); } static Cookie decode(Object result) { result as List; @@ -1849,19 +1919,7 @@ 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 @@ -1912,8 +1970,7 @@ class VisitInfo { } Object encode() { - return _toList(); - } + return _toList(); } static VisitInfo decode(Object result) { result as List; @@ -1937,13 +1994,7 @@ 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 @@ -1957,19 +2008,24 @@ 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; @@ -1988,8 +2044,7 @@ 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 @@ -2022,12 +2077,17 @@ 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; @@ -2049,11 +2109,7 @@ 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 @@ -2067,19 +2123,24 @@ 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; @@ -2155,8 +2216,7 @@ class HistoryMetadata { } Object encode() { - return _toList(); - } + return _toList(); } static HistoryMetadata decode(Object result) { result as List; @@ -2180,13 +2240,7 @@ 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 @@ -2201,7 +2255,11 @@ 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; @@ -2212,12 +2270,15 @@ 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; @@ -2237,9 +2298,7 @@ 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 @@ -2254,19 +2313,24 @@ 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; @@ -2285,8 +2349,7 @@ 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 @@ -2300,23 +2363,31 @@ 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 @@ -2358,12 +2429,16 @@ 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; @@ -2384,10 +2459,7 @@ 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 @@ -2401,7 +2473,10 @@ 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. @@ -2411,12 +2486,14 @@ 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; @@ -2435,8 +2512,7 @@ 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 @@ -2463,12 +2539,15 @@ 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; @@ -2488,9 +2567,7 @@ 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 @@ -2553,8 +2630,7 @@ class TabContentState { } Object encode() { - return _toList(); - } + return _toList(); } static TabContentState decode(Object result) { result as List; @@ -2581,16 +2657,7 @@ 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 @@ -2617,12 +2684,15 @@ 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; @@ -2642,9 +2712,7 @@ 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 @@ -2658,7 +2726,11 @@ class FindResultState { } class CustomSelectionAction { - CustomSelectionAction({required this.id, required this.title, this.pattern}); + CustomSelectionAction({ + required this.id, + required this.title, + this.pattern, + }); String id; @@ -2667,12 +2739,15 @@ 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; @@ -2692,9 +2767,7 @@ 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 @@ -2741,8 +2814,7 @@ class WebExtensionData { } Object encode() { - return _toList(); - } + return _toList(); } static WebExtensionData decode(Object result) { result as List; @@ -2765,12 +2837,7 @@ 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 @@ -2909,8 +2976,7 @@ class AddonInfo { } Object encode() { - return _toList(); - } + return _toList(); } static AddonInfo decode(Object result) { result as List; @@ -2923,8 +2989,7 @@ 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, @@ -2957,41 +3022,7 @@ 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 @@ -3018,12 +3049,15 @@ 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; @@ -3043,9 +3077,7 @@ 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 @@ -3188,8 +3220,7 @@ class AddonListing { } Object encode() { - return _toList(); - } + return _toList(); } static AddonListing decode(Object result) { result as List; @@ -3236,39 +3267,7 @@ 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 @@ -3335,8 +3334,7 @@ class AddonStoreInfo { } Object encode() { - return _toList(); - } + return _toList(); } static AddonStoreInfo decode(Object result) { result as List; @@ -3364,17 +3362,7 @@ 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 @@ -3404,12 +3392,16 @@ 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; @@ -3430,13 +3422,7 @@ 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 @@ -3475,12 +3461,19 @@ 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; @@ -3504,13 +3497,7 @@ 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 @@ -3557,8 +3544,7 @@ class TabContent { } Object encode() { - return _toList(); - } + return _toList(); } static TabContent decode(Object result) { result as List; @@ -3581,12 +3567,7 @@ 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 @@ -3625,8 +3606,7 @@ class ContentBlocking { } Object encode() { - return _toList(); - } + return _toList(); } static ContentBlocking decode(Object result) { result as List; @@ -3647,22 +3627,7 @@ 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 @@ -3701,8 +3666,7 @@ class DohSettings { } Object encode() { - return _toList(); - } + return _toList(); } static DohSettings decode(Object result) { result as List; @@ -3723,10 +3687,7 @@ 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 @@ -3940,8 +3901,7 @@ class GeckoEngineSettings { } Object encode() { - return _toList(); - } + return _toList(); } static GeckoEngineSettings decode(Object result) { result as List; @@ -3952,8 +3912,7 @@ 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?, @@ -4003,83 +3962,7 @@ 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(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(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 @@ -4112,12 +3995,17 @@ 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; @@ -4139,11 +4027,7 @@ 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 @@ -4158,23 +4042,29 @@ 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; @@ -4208,19 +4098,24 @@ 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; @@ -4254,19 +4149,24 @@ 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; @@ -4300,19 +4200,24 @@ 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; @@ -4346,19 +4251,24 @@ 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; @@ -4392,21 +4302,26 @@ 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 @@ -4433,21 +4348,26 @@ 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 @@ -4474,21 +4394,26 @@ 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 @@ -4591,8 +4516,7 @@ class DownloadState { } Object encode() { - return _toList(); - } + return _toList(); } static DownloadState decode(Object result) { result as List; @@ -4626,23 +4550,7 @@ 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 @@ -4672,12 +4580,16 @@ 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; @@ -4692,17 +4604,13 @@ 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 @@ -4729,12 +4637,15 @@ 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; @@ -4754,9 +4665,7 @@ 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 @@ -4770,19 +4679,24 @@ 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; @@ -4801,8 +4715,7 @@ 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 @@ -4853,8 +4766,7 @@ class SyncAccountInfo { } Object encode() { - return _toList(); - } + return _toList(); } static SyncAccountInfo decode(Object result) { result as List; @@ -4878,13 +4790,7 @@ 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 @@ -4914,12 +4820,16 @@ 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; @@ -4940,10 +4850,7 @@ 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 @@ -4973,12 +4880,16 @@ 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; @@ -4999,10 +4910,7 @@ 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 @@ -5035,12 +4943,17 @@ 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; @@ -5062,11 +4975,7 @@ 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 @@ -5093,12 +5002,15 @@ 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; @@ -5118,9 +5030,7 @@ 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 @@ -5153,12 +5063,17 @@ 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; @@ -5180,11 +5095,7 @@ 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 @@ -5258,8 +5169,7 @@ class MlProgressData { } Object encode() { - return _toList(); - } + return _toList(); } static MlProgressData decode(Object result) { result as List; @@ -5286,16 +5196,7 @@ 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 @@ -5354,8 +5255,7 @@ class GeckoProxySettings { } Object encode() { - return _toList(); - } + return _toList(); } static GeckoProxySettings decode(Object result) { result as List; @@ -5381,15 +5281,7 @@ 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 @@ -5429,12 +5321,18 @@ 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; @@ -5457,12 +5355,7 @@ 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 @@ -5492,12 +5385,16 @@ 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; @@ -5518,10 +5415,7 @@ 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 @@ -5535,23 +5429,31 @@ 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 @@ -5638,8 +5540,7 @@ class GeckoFetchRequest { } Object encode() { - return _toList(); - } + return _toList(); } static GeckoFetchRequest decode(Object result) { result as List; @@ -5669,19 +5570,7 @@ 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 @@ -5711,12 +5600,16 @@ 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; @@ -5737,10 +5630,7 @@ 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 @@ -5799,8 +5689,7 @@ class BookmarkNode { } Object encode() { - return _toList(); - } + return _toList(); } static BookmarkNode decode(Object result) { result as List; @@ -5826,15 +5715,7 @@ 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 @@ -5881,12 +5762,18 @@ 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; @@ -5909,12 +5796,7 @@ 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 @@ -5944,12 +5826,14 @@ 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; @@ -5962,15 +5846,13 @@ 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 @@ -5985,7 +5867,12 @@ 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; @@ -5996,12 +5883,16 @@ 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; @@ -6022,10 +5913,7 @@ 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 @@ -6101,8 +5989,7 @@ class SitePermissions { } Object encode() { - return _toList(); - } + return _toList(); } static SitePermissions decode(Object result) { result as List; @@ -6132,19 +6019,7 @@ 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 @@ -6162,28 +6037,32 @@ 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)) { @@ -6253,8 +6132,7 @@ class AppLinkTarget { } Object encode() { - return _toList(); - } + return _toList(); } static AppLinkTarget decode(Object result) { result as List; @@ -6279,14 +6157,7 @@ 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 @@ -6320,12 +6191,16 @@ 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; @@ -6346,10 +6221,7 @@ 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 @@ -6378,12 +6250,15 @@ 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; @@ -6403,9 +6278,7 @@ 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 @@ -6423,7 +6296,10 @@ 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; @@ -6431,27 +6307,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)) { @@ -6522,23 +6398,19 @@ 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(), ); } @@ -6551,17 +6423,7 @@ 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 @@ -6634,8 +6496,7 @@ class AppLinkPromptRequest { } Object encode() { - return _toList(); - } + return _toList(); } static AppLinkPromptRequest decode(Object result) { result as List; @@ -6663,17 +6524,7 @@ 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 @@ -6702,12 +6553,15 @@ 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; @@ -6727,9 +6581,7 @@ 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 @@ -6744,7 +6596,11 @@ 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; @@ -6753,12 +6609,15 @@ 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; @@ -6778,9 +6637,7 @@ 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 @@ -6795,19 +6652,24 @@ 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; @@ -6841,7 +6703,12 @@ 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; @@ -6852,12 +6719,16 @@ 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; @@ -6878,10 +6749,7 @@ 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 @@ -6896,7 +6764,12 @@ 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; @@ -6907,12 +6780,16 @@ 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; @@ -6933,10 +6810,7 @@ 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 @@ -6967,12 +6841,16 @@ 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; @@ -6987,17 +6865,13 @@ 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 @@ -7107,8 +6981,7 @@ class PwaManifest { } Object encode() { - return _toList(); - } + return _toList(); } static PwaManifest decode(Object result) { result as List; @@ -7125,8 +6998,7 @@ 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, @@ -7144,27 +7016,7 @@ 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 @@ -7207,12 +7059,17 @@ 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; @@ -7234,11 +7091,7 @@ 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 @@ -7305,8 +7158,7 @@ class GestureConfig { } Object encode() { - return _toList(); - } + return _toList(); } static GestureConfig decode(Object result) { result as List; @@ -7329,12 +7181,7 @@ 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 @@ -7348,7 +7195,10 @@ class GestureConfig { } class PushDistributor { - PushDistributor({required this.packageName, this.label}); + PushDistributor({ + required this.packageName, + this.label, + }); String packageName; @@ -7356,12 +7206,14 @@ 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; @@ -7380,8 +7232,7 @@ 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 @@ -7416,12 +7267,16 @@ 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; @@ -7442,10 +7297,7 @@ 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 @@ -7459,7 +7311,10 @@ 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; @@ -7468,12 +7323,14 @@ 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; @@ -7492,8 +7349,7 @@ 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 @@ -7506,6 +7362,7 @@ class PushSubscription { } } + // ignore: camel_case_types class _PigeonCodecOverflow { _PigeonCodecOverflow({required this.type, required this.wrapped}); @@ -7519,7 +7376,10 @@ 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() { @@ -7568,480 +7428,438 @@ 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 { @@ -8111,9 +7929,7 @@ 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]; @@ -8350,9 +8166,7 @@ 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); @@ -8364,13 +8178,9 @@ 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(); @@ -8378,8 +8188,7 @@ 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, @@ -8389,55 +8198,34 @@ 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, @@ -8447,60 +8235,52 @@ 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, @@ -8510,16 +8290,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, @@ -8529,15 +8309,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, @@ -8547,10 +8327,11 @@ class GeckoBrowserApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } } @@ -8558,13 +8339,9 @@ 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(); @@ -8572,8 +8349,7 @@ 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, @@ -8583,16 +8359,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, @@ -8602,35 +8378,33 @@ 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, @@ -8640,15 +8414,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, @@ -8658,35 +8432,33 @@ 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, @@ -8696,16 +8468,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, @@ -8715,42 +8487,35 @@ 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, @@ -8760,15 +8525,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, @@ -8778,15 +8543,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, @@ -8796,16 +8561,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, @@ -8815,31 +8580,30 @@ 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; } } @@ -8848,13 +8612,9 @@ 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(); @@ -8862,110 +8622,99 @@ 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, @@ -8975,10 +8724,11 @@ 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; } @@ -8990,27 +8740,22 @@ 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 @@ -9018,23 +8763,21 @@ 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 @@ -9042,23 +8785,21 @@ 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, + ) + ; } } @@ -9066,332 +8807,269 @@ 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, @@ -9401,74 +9079,66 @@ 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, + ) + ; } } @@ -9476,219 +9146,145 @@ 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, @@ -9698,15 +9294,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, @@ -9716,15 +9312,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, @@ -9734,160 +9330,125 @@ 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; } } @@ -9896,13 +9457,9 @@ 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(); @@ -9910,63 +9467,57 @@ 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, + ) + ; } } @@ -9974,13 +9525,9 @@ 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(); @@ -9988,23 +9535,21 @@ 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; } } @@ -10013,13 +9558,9 @@ 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(); @@ -10027,72 +9568,63 @@ 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, @@ -10102,15 +9634,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, @@ -10120,50 +9652,47 @@ 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, + ) + ; } } @@ -10171,13 +9700,9 @@ 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(); @@ -10185,52 +9710,45 @@ 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, @@ -10240,10 +9758,11 @@ class GeckoMlApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } } @@ -10251,13 +9770,9 @@ 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(); @@ -10265,23 +9780,21 @@ 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(); } } @@ -10290,13 +9803,9 @@ 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(); @@ -10304,209 +9813,183 @@ 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 @@ -10517,28 +10000,25 @@ 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, @@ -10548,10 +10028,11 @@ 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; } } @@ -10560,143 +10041,87 @@ 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, + ) + ; } } @@ -10725,11 +10150,7 @@ 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); @@ -10751,27 +10172,16 @@ 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 { @@ -10784,20 +10194,16 @@ 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 { @@ -10810,20 +10216,16 @@ 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 { @@ -10837,20 +10239,16 @@ 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 { @@ -10863,47 +10261,38 @@ 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 { @@ -10916,20 +10305,16 @@ 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 { @@ -10942,20 +10327,16 @@ 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 { @@ -10968,20 +10349,16 @@ 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 { @@ -10995,20 +10372,16 @@ 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 { @@ -11022,20 +10395,16 @@ 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 { @@ -11049,20 +10418,16 @@ 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 { @@ -11076,20 +10441,16 @@ 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 { @@ -11103,20 +10464,16 @@ 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 { @@ -11124,27 +10481,22 @@ 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 { @@ -11158,20 +10510,16 @@ 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 { @@ -11184,47 +10532,38 @@ 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 { @@ -11237,20 +10576,16 @@ 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 { @@ -11263,20 +10598,16 @@ 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 { @@ -11289,20 +10620,16 @@ 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 { @@ -11316,64 +10643,52 @@ 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())); } }); } @@ -11392,20 +10707,12 @@ 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 { @@ -11418,20 +10725,16 @@ 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 { @@ -11443,20 +10746,16 @@ 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 { @@ -11468,20 +10767,16 @@ 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 { @@ -11494,10 +10789,8 @@ 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())); } }); } @@ -11510,20 +10803,12 @@ 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 { @@ -11536,10 +10821,8 @@ 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())); } }); } @@ -11551,13 +10834,9 @@ 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(); @@ -11565,28 +10844,25 @@ 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, @@ -11596,10 +10872,11 @@ class ReaderViewEvents { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } } @@ -11608,20 +10885,12 @@ 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 { @@ -11634,10 +10903,8 @@ 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())); } }); } @@ -11649,13 +10916,9 @@ 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(); @@ -11663,23 +10926,21 @@ 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, + ) + ; } } @@ -11688,20 +10949,12 @@ 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 { @@ -11714,10 +10967,8 @@ 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())); } }); } @@ -11729,13 +10980,9 @@ 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(); @@ -11743,275 +10990,233 @@ 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, @@ -12021,58 +11226,52 @@ 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, @@ -12082,75 +11281,52 @@ 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 { @@ -12158,34 +11334,23 @@ 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 { @@ -12193,31 +11358,22 @@ 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 { @@ -12225,33 +11381,23 @@ 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 { @@ -12260,27 +11406,20 @@ 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 { @@ -12292,10 +11431,8 @@ 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())); } }); } @@ -12307,13 +11444,9 @@ 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(); @@ -12321,96 +11454,69 @@ 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())); } }); } @@ -12423,20 +11529,12 @@ 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 { @@ -12449,10 +11547,8 @@ 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())); } }); } @@ -12464,13 +11560,9 @@ 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(); @@ -12478,8 +11570,7 @@ 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, @@ -12489,15 +11580,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, @@ -12507,15 +11598,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, @@ -12525,15 +11616,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, @@ -12543,15 +11634,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, @@ -12561,15 +11652,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, @@ -12579,54 +11670,48 @@ 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, + ) + ; } } @@ -12644,20 +11729,12 @@ 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 { @@ -12671,10 +11748,8 @@ 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())); } }); } @@ -12686,197 +11761,163 @@ 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?; } @@ -12884,227 +11925,191 @@ 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, @@ -13114,31 +12119,30 @@ 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, + ) + ; } } @@ -13146,13 +12150,9 @@ 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(); @@ -13160,93 +12160,75 @@ 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; } } @@ -13256,20 +12238,12 @@ 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 { @@ -13282,10 +12256,8 @@ 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())); } }); } @@ -13297,13 +12269,9 @@ 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(); @@ -13311,27 +12279,65 @@ 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; } } +/// Native -> Dart progress for a bulk bookmark insertion. +/// +/// A large import is a single [GeckoBookmarksApi.insertTree] call that can run +/// for a long time, so it reports how far along it is rather than leaving the +/// app with nothing to show. Emission is throttled natively, so this fires +/// far less often than once per bookmark. +abstract class GeckoBookmarksEvents { + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// [insertedItemCount] is the running number of bookmark items written by the + /// insertion currently in progress, counted from the start of that one call. + /// 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' : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.flutter_mozilla_components.GeckoBookmarksEvents.onImportProgress$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_insertedItemCount = args[0]! as int; + try { + api.onImportProgress(arg_insertedItemCount); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} + /// Controls GeckoView's viewport behavior for dynamic toolbar and keyboard handling. /// /// This API allows Flutter to control how GeckoView adjusts its internal viewport @@ -13345,13 +12351,9 @@ 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(); @@ -13368,23 +12370,21 @@ 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. @@ -13397,23 +12397,21 @@ 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, + ) + ; } } @@ -13433,12 +12431,7 @@ 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. /// @@ -13448,20 +12441,12 @@ 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 { @@ -13472,29 +12457,20 @@ 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 { @@ -13507,10 +12483,8 @@ 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())); } }); } @@ -13522,13 +12496,9 @@ 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(); @@ -13541,23 +12511,21 @@ 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?; } @@ -13566,23 +12534,21 @@ 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?; } @@ -13591,23 +12557,21 @@ 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(); } @@ -13617,28 +12581,22 @@ 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(); } @@ -13648,23 +12606,21 @@ 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(); } @@ -13677,29 +12633,22 @@ 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; } @@ -13711,28 +12660,22 @@ 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; } @@ -13743,23 +12686,21 @@ 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. @@ -13768,23 +12709,21 @@ 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; } @@ -13810,27 +12749,22 @@ 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; } @@ -13843,23 +12777,21 @@ 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; } } @@ -13869,13 +12801,9 @@ 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(); @@ -13883,73 +12811,61 @@ 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, + ) + ; } } @@ -13958,13 +12874,9 @@ 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(); @@ -13974,23 +12886,21 @@ 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; } } @@ -14004,13 +12914,9 @@ 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(); @@ -14022,23 +12928,21 @@ 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; } @@ -14047,23 +12951,21 @@ 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) @@ -14071,23 +12973,21 @@ 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 @@ -14095,31 +12995,28 @@ 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, @@ -14129,20 +13026,19 @@ 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, @@ -14152,10 +13048,11 @@ class GeckoTrackingProtectionApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } } @@ -14168,13 +13065,9 @@ 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(); @@ -14184,76 +13077,64 @@ 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; } @@ -14265,27 +13146,22 @@ 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?; } @@ -14295,23 +13171,21 @@ 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; } } @@ -14326,20 +13200,12 @@ 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 { @@ -14352,10 +13218,8 @@ 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())); } }); } @@ -14371,13 +13235,9 @@ 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(); @@ -14395,36 +13255,28 @@ 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, @@ -14434,10 +13286,11 @@ 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(); } @@ -14452,29 +13305,22 @@ 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; } } @@ -14485,13 +13331,9 @@ 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(); @@ -14502,65 +13344,59 @@ 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, + ) + ; } } @@ -14580,27 +13416,14 @@ 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 { @@ -14610,28 +13433,20 @@ 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 { @@ -14642,19 +13457,12 @@ 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())); } }); } @@ -14667,13 +13475,9 @@ 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(); @@ -14681,23 +13485,21 @@ 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, + ) + ; } } @@ -14724,20 +13526,12 @@ 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 { @@ -14750,20 +13544,16 @@ 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 { @@ -14776,20 +13566,16 @@ 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 { @@ -14801,10 +13587,8 @@ 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())); } }); } @@ -14817,13 +13601,9 @@ 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(); @@ -14831,8 +13611,7 @@ 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, @@ -14842,10 +13621,11 @@ 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; } @@ -14854,29 +13634,26 @@ 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, @@ -14886,15 +13663,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, @@ -14904,41 +13681,39 @@ 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, @@ -14948,10 +13723,11 @@ 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(); } } @@ -14967,20 +13743,12 @@ 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 { @@ -14993,10 +13761,8 @@ 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 bc744745..d5a546a9 100644 --- a/packages/flutter_mozilla_components/pigeons/gecko.dart +++ b/packages/flutter_mozilla_components/pigeons/gecko.dart @@ -2512,6 +2512,20 @@ class BookmarkInsertTreeResult { }); } +/// Native -> Dart progress for a bulk bookmark insertion. +/// +/// A large import is a single [GeckoBookmarksApi.insertTree] call that can run +/// for a long time, so it reports how far along it is rather than leaving the +/// app with nothing to show. Emission is throttled natively, so this fires +/// far less often than once per bookmark. +@FlutterApi() +abstract class GeckoBookmarksEvents { + /// [insertedItemCount] is the running number of bookmark items written by the + /// insertion currently in progress, counted from the start of that one call. + /// Dart adds the offset of any earlier calls to get an overall figure. + void onImportProgress(int insertedItemCount); +} + /// Class for making alterations to any bookmark node class BookmarkInfo { final String? parentGuid;