From fab21071a83f825c08b88fe4c8e3b9ca9984105a Mon Sep 17 00:00:00 2001 From: Sunita Prajapati Date: Fri, 24 Apr 2026 10:10:29 +0530 Subject: [PATCH 1/5] fix: idfa not population for initial events --- example/pubspec.lock | 94 ++++++++++++------- .../ios/Classes/PluginIdfaPlugin.swift | 4 +- .../plugins/plugin_idfa/lib/plugin_idfa.dart | 16 +++- 3 files changed, 75 insertions(+), 39 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 7c1563e..800958a 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -21,26 +21,26 @@ packages: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.4.1" clock: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" collection: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.19.1" crypto: dependency: transitive description: @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.3" ffi: dependency: transitive description: @@ -128,14 +128,6 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.2" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" json_annotation: dependency: transitive description: @@ -144,6 +136,30 @@ packages: url: "https://pub.dev" source: hosted version: "4.8.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" lints: dependency: transitive description: @@ -164,34 +180,34 @@ packages: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.19" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.13.0" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.17.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.1" path_provider: dependency: transitive description: @@ -324,7 +340,7 @@ packages: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: @@ -345,10 +361,10 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.12.1" state_notifier: dependency: transitive description: @@ -361,10 +377,10 @@ packages: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.4" string_scanner: dependency: transitive description: @@ -385,10 +401,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.7.10" typed_data: dependency: transitive description: @@ -409,10 +425,18 @@ packages: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "046d3928e16fa4dc46e8350415661755ab759d9fc97fc21b5ab295f71e4f0499" + url: "https://pub.dev" + source: hosted + version: "15.1.0" win32: dependency: transitive description: @@ -430,5 +454,5 @@ packages: source: hosted version: "1.0.4" sdks: - dart: ">=3.0.0 <4.0.0" - flutter: ">=3.10.0" + dart: ">=3.9.0-0 <4.0.0" + flutter: ">=3.18.0-18.0.pre.54" diff --git a/packages/plugins/plugin_idfa/ios/Classes/PluginIdfaPlugin.swift b/packages/plugins/plugin_idfa/ios/Classes/PluginIdfaPlugin.swift index 3ae041b..de9380b 100644 --- a/packages/plugins/plugin_idfa/ios/Classes/PluginIdfaPlugin.swift +++ b/packages/plugins/plugin_idfa/ios/Classes/PluginIdfaPlugin.swift @@ -7,11 +7,11 @@ public class PluginIdfaPlugin: NSObject, FlutterPlugin, NativeIdfaApi { func getTrackingAuthorizationStatus(completion: @escaping (Result) -> Void) { if #available(iOS 14, *) { ATTrackingManager.requestTrackingAuthorization { status in - let idfa = status == .authorized ? ASIdentifierManager.shared().advertisingIdentifier.uuidString : self.fallbackValue + let idfa = status == .authorized ? ASIdentifierManager.shared().advertisingIdentifier.uuidString : "00000000-0000-0000-0000-000000000000" completion(.success(NativeIdfaData( adTrackingEnabled: status == .authorized, - advertisingId: idfa!, + advertisingId: idfa, trackingStatus: status == .authorized ? TrackingStatus.authorized : status == .denied ? TrackingStatus.denied : status == .notDetermined ? TrackingStatus.notDetermined : status == .restricted ? TrackingStatus.restricted : TrackingStatus.unknown //self.statusToString(status) ))); } diff --git a/packages/plugins/plugin_idfa/lib/plugin_idfa.dart b/packages/plugins/plugin_idfa/lib/plugin_idfa.dart index a439330..cb7313a 100644 --- a/packages/plugins/plugin_idfa/lib/plugin_idfa.dart +++ b/packages/plugins/plugin_idfa/lib/plugin_idfa.dart @@ -1,5 +1,6 @@ import 'dart:io'; +import 'package:segment_analytics/event.dart'; import 'package:segment_analytics/plugin.dart'; import 'package:segment_analytics_plugin_idfa/native_idfa.dart'; @@ -15,6 +16,8 @@ class IdfaData { } class PluginIdfa extends Plugin { + Future? _trackingStatusFuture; + PluginIdfa({bool shouldAskPermission = true}) : super(PluginType.enrichment) { if (kIsWeb) { return; @@ -23,15 +26,24 @@ class PluginIdfa extends Plugin { return; } if (shouldAskPermission) { - getTrackingStatus(); + _trackingStatusFuture = getTrackingStatus(); } } + @override + Future execute(RawEvent event) async { + // Wait for the initial IDFA fetch to complete before allowing events through, + // so that Application Installed / Application Opened are stamped with IDFA data. + await _trackingStatusFuture; + return event; + } + /// `requestTrackingPermission()` will prompt the user for /// tracking permission and returns a promise you can use to /// make additional tracking decisions based on the user response Future requestTrackingPermission() async { - final idfaData = await getTrackingStatus(); + _trackingStatusFuture = getTrackingStatus(); + final idfaData = await _trackingStatusFuture!; return idfaData.adTrackingEnabled; } From 191ceadaf3baa5283fc40435b0c63421669a7a01 Mon Sep 17 00:00:00 2001 From: Sunita Prajapati Date: Fri, 24 Apr 2026 16:52:34 +0530 Subject: [PATCH 2/5] fix: regenerate mocks file to fix failed test --- packages/core/test/mocks/mocks.mocks.dart | 1047 +++++++++++++-------- 1 file changed, 640 insertions(+), 407 deletions(-) diff --git a/packages/core/test/mocks/mocks.mocks.dart b/packages/core/test/mocks/mocks.mocks.dart index 2566cda..72ffd04 100644 --- a/packages/core/test/mocks/mocks.mocks.dart +++ b/packages/core/test/mocks/mocks.mocks.dart @@ -1,36 +1,37 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.6 from annotations // in segment_analytics/test/mocks/mocks.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; import 'dart:convert' as _i2; -import 'dart:developer' as _i27; -import 'dart:typed_data' as _i15; -import 'dart:ui' as _i9; - -import 'package:flutter/foundation.dart' as _i8; -import 'package:flutter/gestures.dart' as _i11; -import 'package:flutter/rendering.dart' as _i12; -import 'package:flutter/scheduler.dart' as _i26; -import 'package:flutter/services.dart' as _i10; -import 'package:flutter/src/widgets/binding.dart' as _i25; -import 'package:flutter/src/widgets/focus_manager.dart' as _i7; -import 'package:flutter/src/widgets/framework.dart' as _i13; +import 'dart:developer' as _i28; +import 'dart:typed_data' as _i16; +import 'dart:ui' as _i10; + +import 'package:flutter/foundation.dart' as _i7; +import 'package:flutter/gestures.dart' as _i12; +import 'package:flutter/rendering.dart' as _i13; +import 'package:flutter/scheduler.dart' as _i27; +import 'package:flutter/services.dart' as _i11; +import 'package:flutter/src/widgets/_window.dart' as _i9; +import 'package:flutter/src/widgets/binding.dart' as _i26; +import 'package:flutter/src/widgets/focus_manager.dart' as _i8; +import 'package:flutter/src/widgets/framework.dart' as _i14; import 'package:flutter/src/widgets/platform_menu_bar.dart' as _i6; import 'package:http/http.dart' as _i3; -import 'package:http/src/byte_stream.dart' as _i17; -import 'package:logger/logger.dart' as _i24; +import 'package:http/src/byte_stream.dart' as _i18; +import 'package:logger/logger.dart' as _i25; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i16; -import 'package:segment_analytics/event.dart' as _i19; -import 'package:segment_analytics/flush_policies/flush_policy.dart' as _i22; -import 'package:segment_analytics/logger.dart' as _i14; +import 'package:mockito/src/dummies.dart' as _i17; +import 'package:segment_analytics/event.dart' as _i20; +import 'package:segment_analytics/flush_policies/flush_policy.dart' as _i23; +import 'package:segment_analytics/logger.dart' as _i15; import 'package:segment_analytics/native_context.dart' as _i5; -import 'package:segment_analytics/state.dart' as _i20; -import 'package:segment_analytics/utils/http_client.dart' as _i18; -import 'package:segment_analytics/utils/store/store.dart' as _i21; -import 'package:state_notifier/state_notifier.dart' as _i23; +import 'package:segment_analytics/state.dart' as _i21; +import 'package:segment_analytics/utils/http_client.dart' as _i19; +import 'package:segment_analytics/utils/store/store.dart' as _i22; +import 'package:state_notifier/state_notifier.dart' as _i24; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -40,6 +41,7 @@ import 'package:state_notifier/state_notifier.dart' as _i23; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -107,34 +109,34 @@ class _FakePlatformMenuDelegate_5 extends _i1.SmartFake ); } -class _FakeFocusManager_6 extends _i1.SmartFake implements _i7.FocusManager { - _FakeFocusManager_6( +class _FakeValueNotifier_6 extends _i1.SmartFake + implements _i7.ValueNotifier { + _FakeValueNotifier_6( Object parent, Invocation parentInvocation, ) : super( parent, parentInvocation, ); - - @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => - super.toString(); } -class _FakeSingletonFlutterWindow_7 extends _i1.SmartFake - implements _i9.SingletonFlutterWindow { - _FakeSingletonFlutterWindow_7( +class _FakeFocusManager_7 extends _i1.SmartFake implements _i8.FocusManager { + _FakeFocusManager_7( Object parent, Invocation parentInvocation, ) : super( parent, parentInvocation, ); + + @override + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => + super.toString(); } -class _FakePlatformDispatcher_8 extends _i1.SmartFake - implements _i9.PlatformDispatcher { - _FakePlatformDispatcher_8( +class _FakeWindowingOwner_8 extends _i1.SmartFake + implements _i9.WindowingOwner { + _FakeWindowingOwner_8( Object parent, Invocation parentInvocation, ) : super( @@ -143,9 +145,9 @@ class _FakePlatformDispatcher_8 extends _i1.SmartFake ); } -class _FakeValueNotifier_9 extends _i1.SmartFake - implements _i8.ValueNotifier { - _FakeValueNotifier_9( +class _FakeSingletonFlutterWindow_9 extends _i1.SmartFake + implements _i10.SingletonFlutterWindow { + _FakeSingletonFlutterWindow_9( Object parent, Invocation parentInvocation, ) : super( @@ -154,9 +156,9 @@ class _FakeValueNotifier_9 extends _i1.SmartFake ); } -class _FakeHardwareKeyboard_10 extends _i1.SmartFake - implements _i10.HardwareKeyboard { - _FakeHardwareKeyboard_10( +class _FakePlatformDispatcher_10 extends _i1.SmartFake + implements _i10.PlatformDispatcher { + _FakePlatformDispatcher_10( Object parent, Invocation parentInvocation, ) : super( @@ -165,9 +167,9 @@ class _FakeHardwareKeyboard_10 extends _i1.SmartFake ); } -class _FakeKeyEventManager_11 extends _i1.SmartFake - implements _i10.KeyEventManager { - _FakeKeyEventManager_11( +class _FakeHardwareKeyboard_11 extends _i1.SmartFake + implements _i11.HardwareKeyboard { + _FakeHardwareKeyboard_11( Object parent, Invocation parentInvocation, ) : super( @@ -176,9 +178,9 @@ class _FakeKeyEventManager_11 extends _i1.SmartFake ); } -class _FakeBinaryMessenger_12 extends _i1.SmartFake - implements _i10.BinaryMessenger { - _FakeBinaryMessenger_12( +class _FakeKeyEventManager_12 extends _i1.SmartFake + implements _i11.KeyEventManager { + _FakeKeyEventManager_12( Object parent, Invocation parentInvocation, ) : super( @@ -187,9 +189,9 @@ class _FakeBinaryMessenger_12 extends _i1.SmartFake ); } -class _FakeChannelBuffers_13 extends _i1.SmartFake - implements _i9.ChannelBuffers { - _FakeChannelBuffers_13( +class _FakeBinaryMessenger_13 extends _i1.SmartFake + implements _i11.BinaryMessenger { + _FakeBinaryMessenger_13( Object parent, Invocation parentInvocation, ) : super( @@ -198,9 +200,9 @@ class _FakeChannelBuffers_13 extends _i1.SmartFake ); } -class _FakeRestorationManager_14 extends _i1.SmartFake - implements _i10.RestorationManager { - _FakeRestorationManager_14( +class _FakeChannelBuffers_14 extends _i1.SmartFake + implements _i10.ChannelBuffers { + _FakeChannelBuffers_14( Object parent, Invocation parentInvocation, ) : super( @@ -209,8 +211,9 @@ class _FakeRestorationManager_14 extends _i1.SmartFake ); } -class _FakeDuration_15 extends _i1.SmartFake implements Duration { - _FakeDuration_15( +class _FakeRestorationManager_15 extends _i1.SmartFake + implements _i11.RestorationManager { + _FakeRestorationManager_15( Object parent, Invocation parentInvocation, ) : super( @@ -219,9 +222,8 @@ class _FakeDuration_15 extends _i1.SmartFake implements Duration { ); } -class _FakePointerRouter_16 extends _i1.SmartFake - implements _i11.PointerRouter { - _FakePointerRouter_16( +class _FakeDuration_16 extends _i1.SmartFake implements Duration { + _FakeDuration_16( Object parent, Invocation parentInvocation, ) : super( @@ -230,9 +232,9 @@ class _FakePointerRouter_16 extends _i1.SmartFake ); } -class _FakeGestureArenaManager_17 extends _i1.SmartFake - implements _i11.GestureArenaManager { - _FakeGestureArenaManager_17( +class _FakePointerRouter_17 extends _i1.SmartFake + implements _i12.PointerRouter { + _FakePointerRouter_17( Object parent, Invocation parentInvocation, ) : super( @@ -241,9 +243,9 @@ class _FakeGestureArenaManager_17 extends _i1.SmartFake ); } -class _FakePointerSignalResolver_18 extends _i1.SmartFake - implements _i11.PointerSignalResolver { - _FakePointerSignalResolver_18( +class _FakeGestureArenaManager_18 extends _i1.SmartFake + implements _i12.GestureArenaManager { + _FakeGestureArenaManager_18( Object parent, Invocation parentInvocation, ) : super( @@ -252,9 +254,9 @@ class _FakePointerSignalResolver_18 extends _i1.SmartFake ); } -class _FakeSamplingClock_19 extends _i1.SmartFake - implements _i11.SamplingClock { - _FakeSamplingClock_19( +class _FakePointerSignalResolver_19 extends _i1.SmartFake + implements _i12.PointerSignalResolver { + _FakePointerSignalResolver_19( Object parent, Invocation parentInvocation, ) : super( @@ -263,22 +265,18 @@ class _FakeSamplingClock_19 extends _i1.SmartFake ); } -class _FakePipelineOwner_20 extends _i1.SmartFake - implements _i12.PipelineOwner { - _FakePipelineOwner_20( +class _FakeSamplingClock_20 extends _i1.SmartFake + implements _i12.SamplingClock { + _FakeSamplingClock_20( Object parent, Invocation parentInvocation, ) : super( parent, parentInvocation, ); - - @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => - super.toString(); } -class _FakeRenderView_21 extends _i1.SmartFake implements _i12.RenderView { +class _FakeRenderView_21 extends _i1.SmartFake implements _i13.RenderView { _FakeRenderView_21( Object parent, Invocation parentInvocation, @@ -288,11 +286,11 @@ class _FakeRenderView_21 extends _i1.SmartFake implements _i12.RenderView { ); @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } -class _FakeMouseTracker_22 extends _i1.SmartFake implements _i12.MouseTracker { +class _FakeMouseTracker_22 extends _i1.SmartFake implements _i13.MouseTracker { _FakeMouseTracker_22( Object parent, Invocation parentInvocation, @@ -303,7 +301,7 @@ class _FakeMouseTracker_22 extends _i1.SmartFake implements _i12.MouseTracker { } class _FakeAccessibilityFeatures_23 extends _i1.SmartFake - implements _i9.AccessibilityFeatures { + implements _i10.AccessibilityFeatures { _FakeAccessibilityFeatures_23( Object parent, Invocation parentInvocation, @@ -313,7 +311,7 @@ class _FakeAccessibilityFeatures_23 extends _i1.SmartFake ); } -class _FakeWidget_24 extends _i1.SmartFake implements _i13.Widget { +class _FakeWidget_24 extends _i1.SmartFake implements _i14.Widget { _FakeWidget_24( Object parent, Invocation parentInvocation, @@ -323,12 +321,12 @@ class _FakeWidget_24 extends _i1.SmartFake implements _i13.Widget { ); @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } class _FakeViewConfiguration_25 extends _i1.SmartFake - implements _i12.ViewConfiguration { + implements _i13.ViewConfiguration { _FakeViewConfiguration_25( Object parent, Invocation parentInvocation, @@ -338,9 +336,29 @@ class _FakeViewConfiguration_25 extends _i1.SmartFake ); } -class _FakeSemanticsHandle_26 extends _i1.SmartFake - implements _i12.SemanticsHandle { - _FakeSemanticsHandle_26( +class _FakeSceneBuilder_26 extends _i1.SmartFake implements _i10.SceneBuilder { + _FakeSceneBuilder_26( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakePictureRecorder_27 extends _i1.SmartFake + implements _i10.PictureRecorder { + _FakePictureRecorder_27( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCanvas_28 extends _i1.SmartFake implements _i10.Canvas { + _FakeCanvas_28( Object parent, Invocation parentInvocation, ) : super( @@ -349,9 +367,20 @@ class _FakeSemanticsHandle_26 extends _i1.SmartFake ); } -class _FakeSemanticsUpdateBuilder_27 extends _i1.SmartFake - implements _i9.SemanticsUpdateBuilder { - _FakeSemanticsUpdateBuilder_27( +class _FakeSemanticsHandle_29 extends _i1.SmartFake + implements _i13.SemanticsHandle { + _FakeSemanticsHandle_29( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeSemanticsUpdateBuilder_30 extends _i1.SmartFake + implements _i10.SemanticsUpdateBuilder { + _FakeSemanticsUpdateBuilder_30( Object parent, Invocation parentInvocation, ) : super( @@ -363,9 +392,9 @@ class _FakeSemanticsUpdateBuilder_27 extends _i1.SmartFake /// A class which mocks [LogTarget]. /// /// See the documentation for Mockito's code generation for more information. -class MockLogTarget extends _i1.Mock implements _i14.LogTarget { +class MockLogTarget extends _i1.Mock implements _i15.LogTarget { @override - void parseLog(_i14.LogMessage? log) => super.noSuchMethod( + void parseLog(_i15.LogMessage? log) => super.noSuchMethod( Invocation.method( #parseLog, [log], @@ -385,15 +414,6 @@ class MockRequest extends _i1.Mock implements _i3.Request { returnValueForMissingStub: 0, ) as int); - @override - set contentLength(int? value) => super.noSuchMethod( - Invocation.setter( - #contentLength, - value, - ), - returnValueForMissingStub: null, - ); - @override _i2.Encoding get encoding => (super.noSuchMethod( Invocation.getter(#encoding), @@ -408,20 +428,49 @@ class MockRequest extends _i1.Mock implements _i3.Request { ) as _i2.Encoding); @override - set encoding(_i2.Encoding? value) => super.noSuchMethod( + _i16.Uint8List get bodyBytes => (super.noSuchMethod( + Invocation.getter(#bodyBytes), + returnValue: _i16.Uint8List(0), + returnValueForMissingStub: _i16.Uint8List(0), + ) as _i16.Uint8List); + + @override + String get body => (super.noSuchMethod( + Invocation.getter(#body), + returnValue: _i17.dummyValue( + this, + Invocation.getter(#body), + ), + returnValueForMissingStub: _i17.dummyValue( + this, + Invocation.getter(#body), + ), + ) as String); + + @override + Map get bodyFields => (super.noSuchMethod( + Invocation.getter(#bodyFields), + returnValue: {}, + returnValueForMissingStub: {}, + ) as Map); + + @override + set contentLength(int? value) => super.noSuchMethod( Invocation.setter( - #encoding, + #contentLength, value, ), returnValueForMissingStub: null, ); @override - _i15.Uint8List get bodyBytes => (super.noSuchMethod( - Invocation.getter(#bodyBytes), - returnValue: _i15.Uint8List(0), - returnValueForMissingStub: _i15.Uint8List(0), - ) as _i15.Uint8List); + set encoding(_i2.Encoding? value) => super.noSuchMethod( + Invocation.setter( + #encoding, + value, + ), + returnValueForMissingStub: null, + ); @override set bodyBytes(List? value) => super.noSuchMethod( @@ -432,19 +481,6 @@ class MockRequest extends _i1.Mock implements _i3.Request { returnValueForMissingStub: null, ); - @override - String get body => (super.noSuchMethod( - Invocation.getter(#body), - returnValue: _i16.dummyValue( - this, - Invocation.getter(#body), - ), - returnValueForMissingStub: _i16.dummyValue( - this, - Invocation.getter(#body), - ), - ) as String); - @override set body(String? value) => super.noSuchMethod( Invocation.setter( @@ -454,13 +490,6 @@ class MockRequest extends _i1.Mock implements _i3.Request { returnValueForMissingStub: null, ); - @override - Map get bodyFields => (super.noSuchMethod( - Invocation.getter(#bodyFields), - returnValue: {}, - returnValueForMissingStub: {}, - ) as Map); - @override set bodyFields(Map? fields) => super.noSuchMethod( Invocation.setter( @@ -473,11 +502,11 @@ class MockRequest extends _i1.Mock implements _i3.Request { @override String get method => (super.noSuchMethod( Invocation.getter(#method), - returnValue: _i16.dummyValue( + returnValue: _i17.dummyValue( this, Invocation.getter(#method), ), - returnValueForMissingStub: _i16.dummyValue( + returnValueForMissingStub: _i17.dummyValue( this, Invocation.getter(#method), ), @@ -510,6 +539,27 @@ class MockRequest extends _i1.Mock implements _i3.Request { returnValueForMissingStub: false, ) as bool); + @override + bool get followRedirects => (super.noSuchMethod( + Invocation.getter(#followRedirects), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + int get maxRedirects => (super.noSuchMethod( + Invocation.getter(#maxRedirects), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + bool get finalized => (super.noSuchMethod( + Invocation.getter(#finalized), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override set persistentConnection(bool? value) => super.noSuchMethod( Invocation.setter( @@ -519,13 +569,6 @@ class MockRequest extends _i1.Mock implements _i3.Request { returnValueForMissingStub: null, ); - @override - bool get followRedirects => (super.noSuchMethod( - Invocation.getter(#followRedirects), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - @override set followRedirects(bool? value) => super.noSuchMethod( Invocation.setter( @@ -535,13 +578,6 @@ class MockRequest extends _i1.Mock implements _i3.Request { returnValueForMissingStub: null, ); - @override - int get maxRedirects => (super.noSuchMethod( - Invocation.getter(#maxRedirects), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - @override set maxRedirects(int? value) => super.noSuchMethod( Invocation.setter( @@ -552,33 +588,26 @@ class MockRequest extends _i1.Mock implements _i3.Request { ); @override - bool get finalized => (super.noSuchMethod( - Invocation.getter(#finalized), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - _i17.ByteStream finalize() => (super.noSuchMethod( + _i18.ByteStream finalize() => (super.noSuchMethod( Invocation.method( #finalize, [], ), - returnValue: _i16.dummyValue<_i17.ByteStream>( + returnValue: _i17.dummyValue<_i18.ByteStream>( this, Invocation.method( #finalize, [], ), ), - returnValueForMissingStub: _i16.dummyValue<_i17.ByteStream>( + returnValueForMissingStub: _i17.dummyValue<_i18.ByteStream>( this, Invocation.method( #finalize, [], ), ), - ) as _i17.ByteStream); + ) as _i18.ByteStream); @override _i4.Future<_i3.StreamedResponse> send() => (super.noSuchMethod( @@ -678,8 +707,8 @@ class MockStreamSubscription extends _i1.Mock #asFuture, [futureValue], ), - returnValue: _i16.ifNotNull( - _i16.dummyValueOrNull( + returnValue: _i17.ifNotNull( + _i17.dummyValueOrNull( this, Invocation.method( #asFuture, @@ -695,8 +724,8 @@ class MockStreamSubscription extends _i1.Mock [futureValue], ), ), - returnValueForMissingStub: _i16.ifNotNull( - _i16.dummyValueOrNull( + returnValueForMissingStub: _i17.ifNotNull( + _i17.dummyValueOrNull( this, Invocation.method( #asFuture, @@ -718,11 +747,11 @@ class MockStreamSubscription extends _i1.Mock /// A class which mocks [HTTPClient]. /// /// See the documentation for Mockito's code generation for more information. -class MockHTTPClient extends _i1.Mock implements _i18.HTTPClient { +class MockHTTPClient extends _i1.Mock implements _i19.HTTPClient { @override _i4.Future startBatchUpload( String? writeKey, - List<_i19.RawEvent>? batch, { + List<_i20.RawEvent>? batch, { String? host, }) => (super.noSuchMethod( @@ -739,21 +768,21 @@ class MockHTTPClient extends _i1.Mock implements _i18.HTTPClient { ) as _i4.Future); @override - _i4.Future<_i20.SegmentAPISettings?> settingsFor(String? writeKey) => + _i4.Future<_i21.SegmentAPISettings?> settingsFor(String? writeKey) => (super.noSuchMethod( Invocation.method( #settingsFor, [writeKey], ), - returnValue: _i4.Future<_i20.SegmentAPISettings?>.value(), - returnValueForMissingStub: _i4.Future<_i20.SegmentAPISettings?>.value(), - ) as _i4.Future<_i20.SegmentAPISettings?>); + returnValue: _i4.Future<_i21.SegmentAPISettings?>.value(), + returnValueForMissingStub: _i4.Future<_i21.SegmentAPISettings?>.value(), + ) as _i4.Future<_i21.SegmentAPISettings?>); } /// A class which mocks [Store]. /// /// See the documentation for Mockito's code generation for more information. -class MockStore extends _i1.Mock implements _i21.Store { +class MockStore extends _i1.Mock implements _i22.Store { @override _i4.Future get ready => (super.noSuchMethod( Invocation.getter(#ready), @@ -789,6 +818,16 @@ class MockStore extends _i1.Mock implements _i21.Store { returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override + _i4.Future deletePersisted(String? key) => (super.noSuchMethod( + Invocation.method( + #deletePersisted, + [key], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -802,7 +841,7 @@ class MockStore extends _i1.Mock implements _i21.Store { /// A class which mocks [FlushPolicy]. /// /// See the documentation for Mockito's code generation for more information. -class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { +class MockFlushPolicy extends _i1.Mock implements _i23.FlushPolicy { @override bool get shouldFlush => (super.noSuchMethod( Invocation.getter(#shouldFlush), @@ -819,15 +858,6 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { returnValueForMissingStub: null, ); - @override - set onError(_i23.ErrorListener? _onError) => super.noSuchMethod( - Invocation.setter( - #onError, - _onError, - ), - returnValueForMissingStub: null, - ); - @override bool get mounted => (super.noSuchMethod( Invocation.getter(#mounted), @@ -849,15 +879,6 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { returnValueForMissingStub: false, ) as bool); - @override - set state(bool? value) => super.noSuchMethod( - Invocation.setter( - #state, - value, - ), - returnValueForMissingStub: null, - ); - @override bool get debugState => (super.noSuchMethod( Invocation.getter(#debugState), @@ -872,6 +893,24 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { returnValueForMissingStub: false, ) as bool); + @override + set onError(_i24.ErrorListener? _onError) => super.noSuchMethod( + Invocation.setter( + #onError, + _onError, + ), + returnValueForMissingStub: null, + ); + + @override + set state(bool? value) => super.noSuchMethod( + Invocation.setter( + #state, + value, + ), + returnValueForMissingStub: null, + ); + @override void start() => super.noSuchMethod( Invocation.method( @@ -882,7 +921,7 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { ); @override - void onEvent(_i19.RawEvent? event) => super.noSuchMethod( + void onEvent(_i20.RawEvent? event) => super.noSuchMethod( Invocation.method( #onEvent, [event], @@ -917,8 +956,8 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { ) as bool); @override - _i23.RemoveListener addListener( - _i23.Listener? listener, { + _i24.RemoveListener addListener( + _i24.Listener? listener, { bool? fireImmediately = true, }) => (super.noSuchMethod( @@ -929,7 +968,7 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { ), returnValue: () {}, returnValueForMissingStub: () {}, - ) as _i23.RemoveListener); + ) as _i24.RemoveListener); @override void dispose() => super.noSuchMethod( @@ -944,7 +983,7 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { /// A class which mocks [Logger]. /// /// See the documentation for Mockito's code generation for more information. -class MockLogger extends _i1.Mock implements _i24.Logger { +class MockLogger extends _i1.Mock implements _i25.Logger { @override _i4.Future get init => (super.noSuchMethod( Invocation.getter(#init), @@ -1114,7 +1153,7 @@ class MockLogger extends _i1.Mock implements _i24.Logger { @override void log( - _i24.Level? level, + _i25.Level? level, dynamic message, { DateTime? time, Object? error, @@ -1189,7 +1228,7 @@ class MockNativeContextApi extends _i1.Mock implements _i5.NativeContextApi { /// A class which mocks [WidgetsBinding]. /// /// See the documentation for Mockito's code generation for more information. -class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { +class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { @override _i6.PlatformMenuDelegate get platformMenuDelegate => (super.noSuchMethod( Invocation.getter(#platformMenuDelegate), @@ -1203,16 +1242,6 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ), ) as _i6.PlatformMenuDelegate); - @override - set platformMenuDelegate(_i6.PlatformMenuDelegate? _platformMenuDelegate) => - super.noSuchMethod( - Invocation.setter( - #platformMenuDelegate, - _platformMenuDelegate, - ), - returnValueForMissingStub: null, - ); - @override bool get debugBuildingDirtyElements => (super.noSuchMethod( Invocation.getter(#debugBuildingDirtyElements), @@ -1221,27 +1250,59 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as bool); @override - set debugBuildingDirtyElements(bool? _debugBuildingDirtyElements) => - super.noSuchMethod( - Invocation.setter( - #debugBuildingDirtyElements, - _debugBuildingDirtyElements, + bool get debugShowWidgetInspectorOverride => (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverride), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + _i7.ValueNotifier get debugShowWidgetInspectorOverrideNotifier => + (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + returnValue: _FakeValueNotifier_6( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), ), - returnValueForMissingStub: null, - ); + returnValueForMissingStub: _FakeValueNotifier_6( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + ) as _i7.ValueNotifier); @override - _i7.FocusManager get focusManager => (super.noSuchMethod( + _i7.ValueNotifier get debugWidgetInspectorSelectionOnTapEnabled => + (super.noSuchMethod( + Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), + returnValue: _FakeValueNotifier_6( + this, + Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), + ), + returnValueForMissingStub: _FakeValueNotifier_6( + this, + Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), + ), + ) as _i7.ValueNotifier); + + @override + bool get debugExcludeRootWidgetInspector => (super.noSuchMethod( + Invocation.getter(#debugExcludeRootWidgetInspector), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + _i8.FocusManager get focusManager => (super.noSuchMethod( Invocation.getter(#focusManager), - returnValue: _FakeFocusManager_6( + returnValue: _FakeFocusManager_7( this, Invocation.getter(#focusManager), ), - returnValueForMissingStub: _FakeFocusManager_6( + returnValueForMissingStub: _FakeFocusManager_7( this, Invocation.getter(#focusManager), ), - ) as _i7.FocusManager); + ) as _i8.FocusManager); @override bool get firstFrameRasterized => (super.noSuchMethod( @@ -1279,30 +1340,90 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as bool); @override - _i9.SingletonFlutterWindow get window => (super.noSuchMethod( + _i9.WindowingOwner get windowingOwner => (super.noSuchMethod( + Invocation.getter(#windowingOwner), + returnValue: _FakeWindowingOwner_8( + this, + Invocation.getter(#windowingOwner), + ), + returnValueForMissingStub: _FakeWindowingOwner_8( + this, + Invocation.getter(#windowingOwner), + ), + ) as _i9.WindowingOwner); + + @override + set platformMenuDelegate(_i6.PlatformMenuDelegate? _platformMenuDelegate) => + super.noSuchMethod( + Invocation.setter( + #platformMenuDelegate, + _platformMenuDelegate, + ), + returnValueForMissingStub: null, + ); + + @override + set debugBuildingDirtyElements(bool? _debugBuildingDirtyElements) => + super.noSuchMethod( + Invocation.setter( + #debugBuildingDirtyElements, + _debugBuildingDirtyElements, + ), + returnValueForMissingStub: null, + ); + + @override + set debugShowWidgetInspectorOverride(bool? value) => super.noSuchMethod( + Invocation.setter( + #debugShowWidgetInspectorOverride, + value, + ), + returnValueForMissingStub: null, + ); + + @override + set debugExcludeRootWidgetInspector(bool? value) => super.noSuchMethod( + Invocation.setter( + #debugExcludeRootWidgetInspector, + value, + ), + returnValueForMissingStub: null, + ); + + @override + set windowingOwner(_i9.WindowingOwner? owner) => super.noSuchMethod( + Invocation.setter( + #windowingOwner, + owner, + ), + returnValueForMissingStub: null, + ); + + @override + _i10.SingletonFlutterWindow get window => (super.noSuchMethod( Invocation.getter(#window), - returnValue: _FakeSingletonFlutterWindow_7( + returnValue: _FakeSingletonFlutterWindow_9( this, Invocation.getter(#window), ), - returnValueForMissingStub: _FakeSingletonFlutterWindow_7( + returnValueForMissingStub: _FakeSingletonFlutterWindow_9( this, Invocation.getter(#window), ), - ) as _i9.SingletonFlutterWindow); + ) as _i10.SingletonFlutterWindow); @override - _i9.PlatformDispatcher get platformDispatcher => (super.noSuchMethod( + _i10.PlatformDispatcher get platformDispatcher => (super.noSuchMethod( Invocation.getter(#platformDispatcher), - returnValue: _FakePlatformDispatcher_8( + returnValue: _FakePlatformDispatcher_10( this, Invocation.getter(#platformDispatcher), ), - returnValueForMissingStub: _FakePlatformDispatcher_8( + returnValueForMissingStub: _FakePlatformDispatcher_10( this, Invocation.getter(#platformDispatcher), ), - ) as _i9.PlatformDispatcher); + ) as _i10.PlatformDispatcher); @override bool get locked => (super.noSuchMethod( @@ -1312,107 +1433,97 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as bool); @override - _i8.ValueNotifier get accessibilityFocus => (super.noSuchMethod( + _i7.ValueNotifier get accessibilityFocus => (super.noSuchMethod( Invocation.getter(#accessibilityFocus), - returnValue: _FakeValueNotifier_9( + returnValue: _FakeValueNotifier_6( this, Invocation.getter(#accessibilityFocus), ), - returnValueForMissingStub: _FakeValueNotifier_9( + returnValueForMissingStub: _FakeValueNotifier_6( this, Invocation.getter(#accessibilityFocus), ), - ) as _i8.ValueNotifier); + ) as _i7.ValueNotifier); @override - _i10.HardwareKeyboard get keyboard => (super.noSuchMethod( + _i11.HardwareKeyboard get keyboard => (super.noSuchMethod( Invocation.getter(#keyboard), - returnValue: _FakeHardwareKeyboard_10( + returnValue: _FakeHardwareKeyboard_11( this, Invocation.getter(#keyboard), ), - returnValueForMissingStub: _FakeHardwareKeyboard_10( + returnValueForMissingStub: _FakeHardwareKeyboard_11( this, Invocation.getter(#keyboard), ), - ) as _i10.HardwareKeyboard); + ) as _i11.HardwareKeyboard); @override - _i10.KeyEventManager get keyEventManager => (super.noSuchMethod( + _i11.KeyEventManager get keyEventManager => (super.noSuchMethod( Invocation.getter(#keyEventManager), - returnValue: _FakeKeyEventManager_11( + returnValue: _FakeKeyEventManager_12( this, Invocation.getter(#keyEventManager), ), - returnValueForMissingStub: _FakeKeyEventManager_11( + returnValueForMissingStub: _FakeKeyEventManager_12( this, Invocation.getter(#keyEventManager), ), - ) as _i10.KeyEventManager); + ) as _i11.KeyEventManager); @override - _i10.BinaryMessenger get defaultBinaryMessenger => (super.noSuchMethod( + _i11.BinaryMessenger get defaultBinaryMessenger => (super.noSuchMethod( Invocation.getter(#defaultBinaryMessenger), - returnValue: _FakeBinaryMessenger_12( + returnValue: _FakeBinaryMessenger_13( this, Invocation.getter(#defaultBinaryMessenger), ), - returnValueForMissingStub: _FakeBinaryMessenger_12( + returnValueForMissingStub: _FakeBinaryMessenger_13( this, Invocation.getter(#defaultBinaryMessenger), ), - ) as _i10.BinaryMessenger); + ) as _i11.BinaryMessenger); @override - _i9.ChannelBuffers get channelBuffers => (super.noSuchMethod( + _i10.ChannelBuffers get channelBuffers => (super.noSuchMethod( Invocation.getter(#channelBuffers), - returnValue: _FakeChannelBuffers_13( + returnValue: _FakeChannelBuffers_14( this, Invocation.getter(#channelBuffers), ), - returnValueForMissingStub: _FakeChannelBuffers_13( + returnValueForMissingStub: _FakeChannelBuffers_14( this, Invocation.getter(#channelBuffers), ), - ) as _i9.ChannelBuffers); + ) as _i10.ChannelBuffers); @override - _i10.RestorationManager get restorationManager => (super.noSuchMethod( + _i11.RestorationManager get restorationManager => (super.noSuchMethod( Invocation.getter(#restorationManager), - returnValue: _FakeRestorationManager_14( + returnValue: _FakeRestorationManager_15( this, Invocation.getter(#restorationManager), ), - returnValueForMissingStub: _FakeRestorationManager_14( + returnValueForMissingStub: _FakeRestorationManager_15( this, Invocation.getter(#restorationManager), ), - ) as _i10.RestorationManager); + ) as _i11.RestorationManager); @override - _i26.SchedulingStrategy get schedulingStrategy => (super.noSuchMethod( + _i27.SchedulingStrategy get schedulingStrategy => (super.noSuchMethod( Invocation.getter(#schedulingStrategy), returnValue: ({ required int priority, - required _i26.SchedulerBinding scheduler, + required _i27.SchedulerBinding scheduler, }) => false, returnValueForMissingStub: ({ required int priority, - required _i26.SchedulerBinding scheduler, + required _i27.SchedulerBinding scheduler, }) => false, - ) as _i26.SchedulingStrategy); - - @override - set schedulingStrategy(_i26.SchedulingStrategy? _schedulingStrategy) => - super.noSuchMethod( - Invocation.setter( - #schedulingStrategy, - _schedulingStrategy, - ), - returnValueForMissingStub: null, - ); + ) as _i27.SchedulingStrategy); @override int get transientCallbackCount => (super.noSuchMethod( @@ -1436,20 +1547,20 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as bool); @override - _i26.SchedulerPhase get schedulerPhase => (super.noSuchMethod( + _i27.SchedulerPhase get schedulerPhase => (super.noSuchMethod( Invocation.getter(#schedulerPhase), - returnValue: _i26.SchedulerPhase.idle, - returnValueForMissingStub: _i26.SchedulerPhase.idle, - ) as _i26.SchedulerPhase); + returnValue: _i27.SchedulerPhase.idle, + returnValueForMissingStub: _i27.SchedulerPhase.idle, + ) as _i27.SchedulerPhase); @override Duration get currentFrameTimeStamp => (super.noSuchMethod( Invocation.getter(#currentFrameTimeStamp), - returnValue: _FakeDuration_15( + returnValue: _FakeDuration_16( this, Invocation.getter(#currentFrameTimeStamp), ), - returnValueForMissingStub: _FakeDuration_15( + returnValueForMissingStub: _FakeDuration_16( this, Invocation.getter(#currentFrameTimeStamp), ), @@ -1458,54 +1569,64 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override Duration get currentSystemFrameTimeStamp => (super.noSuchMethod( Invocation.getter(#currentSystemFrameTimeStamp), - returnValue: _FakeDuration_15( + returnValue: _FakeDuration_16( this, Invocation.getter(#currentSystemFrameTimeStamp), ), - returnValueForMissingStub: _FakeDuration_15( + returnValueForMissingStub: _FakeDuration_16( this, Invocation.getter(#currentSystemFrameTimeStamp), ), ) as Duration); @override - _i11.PointerRouter get pointerRouter => (super.noSuchMethod( + set schedulingStrategy(_i27.SchedulingStrategy? _schedulingStrategy) => + super.noSuchMethod( + Invocation.setter( + #schedulingStrategy, + _schedulingStrategy, + ), + returnValueForMissingStub: null, + ); + + @override + _i12.PointerRouter get pointerRouter => (super.noSuchMethod( Invocation.getter(#pointerRouter), - returnValue: _FakePointerRouter_16( + returnValue: _FakePointerRouter_17( this, Invocation.getter(#pointerRouter), ), - returnValueForMissingStub: _FakePointerRouter_16( + returnValueForMissingStub: _FakePointerRouter_17( this, Invocation.getter(#pointerRouter), ), - ) as _i11.PointerRouter); + ) as _i12.PointerRouter); @override - _i11.GestureArenaManager get gestureArena => (super.noSuchMethod( + _i12.GestureArenaManager get gestureArena => (super.noSuchMethod( Invocation.getter(#gestureArena), - returnValue: _FakeGestureArenaManager_17( + returnValue: _FakeGestureArenaManager_18( this, Invocation.getter(#gestureArena), ), - returnValueForMissingStub: _FakeGestureArenaManager_17( + returnValueForMissingStub: _FakeGestureArenaManager_18( this, Invocation.getter(#gestureArena), ), - ) as _i11.GestureArenaManager); + ) as _i12.GestureArenaManager); @override - _i11.PointerSignalResolver get pointerSignalResolver => (super.noSuchMethod( + _i12.PointerSignalResolver get pointerSignalResolver => (super.noSuchMethod( Invocation.getter(#pointerSignalResolver), - returnValue: _FakePointerSignalResolver_18( + returnValue: _FakePointerSignalResolver_19( this, Invocation.getter(#pointerSignalResolver), ), - returnValueForMissingStub: _FakePointerSignalResolver_18( + returnValueForMissingStub: _FakePointerSignalResolver_19( this, Invocation.getter(#pointerSignalResolver), ), - ) as _i11.PointerSignalResolver); + ) as _i12.PointerSignalResolver); @override bool get resamplingEnabled => (super.noSuchMethod( @@ -1514,65 +1635,65 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { returnValueForMissingStub: false, ) as bool); - @override - set resamplingEnabled(bool? _resamplingEnabled) => super.noSuchMethod( - Invocation.setter( - #resamplingEnabled, - _resamplingEnabled, - ), - returnValueForMissingStub: null, - ); - @override Duration get samplingOffset => (super.noSuchMethod( Invocation.getter(#samplingOffset), - returnValue: _FakeDuration_15( + returnValue: _FakeDuration_16( this, Invocation.getter(#samplingOffset), ), - returnValueForMissingStub: _FakeDuration_15( + returnValueForMissingStub: _FakeDuration_16( this, Invocation.getter(#samplingOffset), ), ) as Duration); @override - set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( - Invocation.setter( - #samplingOffset, - _samplingOffset, - ), - returnValueForMissingStub: null, - ); - - @override - _i11.SamplingClock get samplingClock => (super.noSuchMethod( + _i12.SamplingClock get samplingClock => (super.noSuchMethod( Invocation.getter(#samplingClock), - returnValue: _FakeSamplingClock_19( + returnValue: _FakeSamplingClock_20( this, Invocation.getter(#samplingClock), ), - returnValueForMissingStub: _FakeSamplingClock_19( + returnValueForMissingStub: _FakeSamplingClock_20( this, Invocation.getter(#samplingClock), ), - ) as _i11.SamplingClock); + ) as _i12.SamplingClock); + + @override + set resamplingEnabled(bool? _resamplingEnabled) => super.noSuchMethod( + Invocation.setter( + #resamplingEnabled, + _resamplingEnabled, + ), + returnValueForMissingStub: null, + ); @override - _i12.PipelineOwner get pipelineOwner => (super.noSuchMethod( + set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( + Invocation.setter( + #samplingOffset, + _samplingOffset, + ), + returnValueForMissingStub: null, + ); + + @override + _i13.PipelineOwner get pipelineOwner => (super.noSuchMethod( Invocation.getter(#pipelineOwner), - returnValue: _FakePipelineOwner_20( + returnValue: _i17.dummyValue<_i13.PipelineOwner>( this, Invocation.getter(#pipelineOwner), ), - returnValueForMissingStub: _FakePipelineOwner_20( + returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( this, Invocation.getter(#pipelineOwner), ), - ) as _i12.PipelineOwner); + ) as _i13.PipelineOwner); @override - _i12.RenderView get renderView => (super.noSuchMethod( + _i13.RenderView get renderView => (super.noSuchMethod( Invocation.getter(#renderView), returnValue: _FakeRenderView_21( this, @@ -1582,10 +1703,10 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { this, Invocation.getter(#renderView), ), - ) as _i12.RenderView); + ) as _i13.RenderView); @override - _i12.MouseTracker get mouseTracker => (super.noSuchMethod( + _i13.MouseTracker get mouseTracker => (super.noSuchMethod( Invocation.getter(#mouseTracker), returnValue: _FakeMouseTracker_22( this, @@ -1595,27 +1716,27 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { this, Invocation.getter(#mouseTracker), ), - ) as _i12.MouseTracker); + ) as _i13.MouseTracker); @override - _i12.PipelineOwner get rootPipelineOwner => (super.noSuchMethod( + _i13.PipelineOwner get rootPipelineOwner => (super.noSuchMethod( Invocation.getter(#rootPipelineOwner), - returnValue: _FakePipelineOwner_20( + returnValue: _i17.dummyValue<_i13.PipelineOwner>( this, Invocation.getter(#rootPipelineOwner), ), - returnValueForMissingStub: _FakePipelineOwner_20( + returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( this, Invocation.getter(#rootPipelineOwner), ), - ) as _i12.PipelineOwner); + ) as _i13.PipelineOwner); @override - Iterable<_i12.RenderView> get renderViews => (super.noSuchMethod( + Iterable<_i13.RenderView> get renderViews => (super.noSuchMethod( Invocation.getter(#renderViews), - returnValue: <_i12.RenderView>[], - returnValueForMissingStub: <_i12.RenderView>[], - ) as Iterable<_i12.RenderView>); + returnValue: <_i13.RenderView>[], + returnValueForMissingStub: <_i13.RenderView>[], + ) as Iterable<_i13.RenderView>); @override bool get sendFramesToEngine => (super.noSuchMethod( @@ -1639,7 +1760,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as int); @override - _i9.AccessibilityFeatures get accessibilityFeatures => (super.noSuchMethod( + _i10.AccessibilityFeatures get accessibilityFeatures => (super.noSuchMethod( Invocation.getter(#accessibilityFeatures), returnValue: _FakeAccessibilityFeatures_23( this, @@ -1649,7 +1770,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { this, Invocation.getter(#accessibilityFeatures), ), - ) as _i9.AccessibilityFeatures); + ) as _i10.AccessibilityFeatures); @override bool get disableAnimations => (super.noSuchMethod( @@ -1667,6 +1788,15 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { returnValueForMissingStub: null, ); + @override + void resetInternalState() => super.noSuchMethod( + Invocation.method( + #resetInternalState, + [], + ), + returnValueForMissingStub: null, + ); + @override void initServiceExtensions() => super.noSuchMethod( Invocation.method( @@ -1677,7 +1807,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void addObserver(_i25.WidgetsBindingObserver? observer) => super.noSuchMethod( + void addObserver(_i26.WidgetsBindingObserver? observer) => super.noSuchMethod( Invocation.method( #addObserver, [observer], @@ -1686,7 +1816,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - bool removeObserver(_i25.WidgetsBindingObserver? observer) => + bool removeObserver(_i26.WidgetsBindingObserver? observer) => (super.noSuchMethod( Invocation.method( #removeObserver, @@ -1697,16 +1827,17 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as bool); @override - _i4.Future<_i9.AppExitResponse> handleRequestAppExit() => (super.noSuchMethod( + _i4.Future<_i10.AppExitResponse> handleRequestAppExit() => + (super.noSuchMethod( Invocation.method( #handleRequestAppExit, [], ), returnValue: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), + _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), returnValueForMissingStub: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), - ) as _i4.Future<_i9.AppExitResponse>); + _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), + ) as _i4.Future<_i10.AppExitResponse>); @override void handleMetricsChanged() => super.noSuchMethod( @@ -1754,7 +1885,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void dispatchLocalesChanged(List<_i9.Locale>? locales) => super.noSuchMethod( + void dispatchLocalesChanged(List<_i10.Locale>? locales) => super.noSuchMethod( Invocation.method( #dispatchLocalesChanged, [locales], @@ -1777,8 +1908,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { #handlePopRoute, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(true), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override @@ -1787,12 +1918,12 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { #handlePushRoute, [route], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(true), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override - void handleAppLifecycleStateChanged(_i9.AppLifecycleState? state) => + void handleAppLifecycleStateChanged(_i10.AppLifecycleState? state) => super.noSuchMethod( Invocation.method( #handleAppLifecycleStateChanged, @@ -1801,6 +1932,15 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { returnValueForMissingStub: null, ); + @override + void handleViewFocusChanged(_i10.ViewFocusEvent? event) => super.noSuchMethod( + Invocation.method( + #handleViewFocusChanged, + [event], + ), + returnValueForMissingStub: null, + ); + @override void handleMemoryPressure() => super.noSuchMethod( Invocation.method( @@ -1820,7 +1960,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i13.Widget wrapWithDefaultView(_i13.Widget? rootWidget) => + _i14.Widget wrapWithDefaultView(_i14.Widget? rootWidget) => (super.noSuchMethod( Invocation.method( #wrapWithDefaultView, @@ -1840,10 +1980,10 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { [rootWidget], ), ), - ) as _i13.Widget); + ) as _i14.Widget); @override - void scheduleAttachRootWidget(_i13.Widget? rootWidget) => super.noSuchMethod( + void scheduleAttachRootWidget(_i14.Widget? rootWidget) => super.noSuchMethod( Invocation.method( #scheduleAttachRootWidget, [rootWidget], @@ -1852,7 +1992,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void attachRootWidget(_i13.Widget? rootWidget) => super.noSuchMethod( + void attachRootWidget(_i14.Widget? rootWidget) => super.noSuchMethod( Invocation.method( #attachRootWidget, [rootWidget], @@ -1861,7 +2001,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void attachToBuildOwner(_i25.RootWidget? widget) => super.noSuchMethod( + void attachToBuildOwner(_i26.RootWidget? widget) => super.noSuchMethod( Invocation.method( #attachToBuildOwner, [widget], @@ -1880,15 +2020,15 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as _i4.Future); @override - _i9.Locale? computePlatformResolvedLocale( - List<_i9.Locale>? supportedLocales) => + _i10.Locale? computePlatformResolvedLocale( + List<_i10.Locale>? supportedLocales) => (super.noSuchMethod( Invocation.method( #computePlatformResolvedLocale, [supportedLocales], ), returnValueForMissingStub: null, - ) as _i9.Locale?); + ) as _i10.Locale?); @override bool debugCheckZone(String? entryPoint) => (super.noSuchMethod( @@ -1933,7 +2073,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void registerSignalServiceExtension({ required String? name, - required _i8.AsyncCallback? callback, + required _i7.AsyncCallback? callback, }) => super.noSuchMethod( Invocation.method( @@ -1950,8 +2090,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void registerBoolServiceExtension({ required String? name, - required _i8.AsyncValueGetter? getter, - required _i8.AsyncValueSetter? setter, + required _i7.AsyncValueGetter? getter, + required _i7.AsyncValueSetter? setter, }) => super.noSuchMethod( Invocation.method( @@ -1969,8 +2109,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void registerNumericServiceExtension({ required String? name, - required _i8.AsyncValueGetter? getter, - required _i8.AsyncValueSetter? setter, + required _i7.AsyncValueGetter? getter, + required _i7.AsyncValueSetter? setter, }) => super.noSuchMethod( Invocation.method( @@ -2004,8 +2144,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void registerStringServiceExtension({ required String? name, - required _i8.AsyncValueGetter? getter, - required _i8.AsyncValueSetter? setter, + required _i7.AsyncValueGetter? getter, + required _i7.AsyncValueSetter? setter, }) => super.noSuchMethod( Invocation.method( @@ -2023,7 +2163,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void registerServiceExtension({ required String? name, - required _i8.ServiceExtensionCallback? callback, + required _i7.ServiceExtensionCallback? callback, }) => super.noSuchMethod( Invocation.method( @@ -2038,26 +2178,26 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i10.BinaryMessenger createBinaryMessenger() => (super.noSuchMethod( + _i11.BinaryMessenger createBinaryMessenger() => (super.noSuchMethod( Invocation.method( #createBinaryMessenger, [], ), - returnValue: _FakeBinaryMessenger_12( + returnValue: _FakeBinaryMessenger_13( this, Invocation.method( #createBinaryMessenger, [], ), ), - returnValueForMissingStub: _FakeBinaryMessenger_12( + returnValueForMissingStub: _FakeBinaryMessenger_13( this, Invocation.method( #createBinaryMessenger, [], ), ), - ) as _i10.BinaryMessenger); + ) as _i11.BinaryMessenger); @override _i4.Future handleSystemMessage(Object? systemMessage) => @@ -2098,8 +2238,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i4.Future<_i9.AppExitResponse> exitApplication( - _i9.AppExitType? exitType, [ + _i4.Future<_i10.AppExitResponse> exitApplication( + _i10.AppExitType? exitType, [ int? exitCode = 0, ]) => (super.noSuchMethod( @@ -2111,35 +2251,35 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ], ), returnValue: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), + _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), returnValueForMissingStub: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), - ) as _i4.Future<_i9.AppExitResponse>); + _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), + ) as _i4.Future<_i10.AppExitResponse>); @override - _i10.RestorationManager createRestorationManager() => (super.noSuchMethod( + _i11.RestorationManager createRestorationManager() => (super.noSuchMethod( Invocation.method( #createRestorationManager, [], ), - returnValue: _FakeRestorationManager_14( + returnValue: _FakeRestorationManager_15( this, Invocation.method( #createRestorationManager, [], ), ), - returnValueForMissingStub: _FakeRestorationManager_14( + returnValueForMissingStub: _FakeRestorationManager_15( this, Invocation.method( #createRestorationManager, [], ), ), - ) as _i10.RestorationManager); + ) as _i11.RestorationManager); @override - void setSystemUiChangeCallback(_i10.SystemUiChangeCallback? callback) => + void setSystemUiChangeCallback(_i11.SystemUiChangeCallback? callback) => super.noSuchMethod( Invocation.method( #setSystemUiChangeCallback, @@ -2159,7 +2299,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as _i4.Future); @override - void addTimingsCallback(_i9.TimingsCallback? callback) => super.noSuchMethod( + void addTimingsCallback(_i10.TimingsCallback? callback) => super.noSuchMethod( Invocation.method( #addTimingsCallback, [callback], @@ -2168,7 +2308,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void removeTimingsCallback(_i9.TimingsCallback? callback) => + void removeTimingsCallback(_i10.TimingsCallback? callback) => super.noSuchMethod( Invocation.method( #removeTimingsCallback, @@ -2179,10 +2319,10 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override _i4.Future scheduleTask( - _i26.TaskCallback? task, - _i26.Priority? priority, { + _i27.TaskCallback? task, + _i27.Priority? priority, { String? debugLabel, - _i27.Flow? flow, + _i28.Flow? flow, }) => (super.noSuchMethod( Invocation.method( @@ -2196,8 +2336,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { #flow: flow, }, ), - returnValue: _i16.ifNotNull( - _i16.dummyValueOrNull( + returnValue: _i17.ifNotNull( + _i17.dummyValueOrNull( this, Invocation.method( #scheduleTask, @@ -2227,8 +2367,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { }, ), ), - returnValueForMissingStub: _i16.ifNotNull( - _i16.dummyValueOrNull( + returnValueForMissingStub: _i17.ifNotNull( + _i17.dummyValueOrNull( this, Invocation.method( #scheduleTask, @@ -2272,14 +2412,18 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override int scheduleFrameCallback( - _i26.FrameCallback? callback, { + _i27.FrameCallback? callback, { bool? rescheduling = false, + bool? scheduleNewFrame = true, }) => (super.noSuchMethod( Invocation.method( #scheduleFrameCallback, [callback], - {#rescheduling: rescheduling}, + { + #rescheduling: rescheduling, + #scheduleNewFrame: scheduleNewFrame, + }, ), returnValue: 0, returnValueForMissingStub: 0, @@ -2326,7 +2470,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ) as bool); @override - void addPersistentFrameCallback(_i26.FrameCallback? callback) => + void addPersistentFrameCallback(_i27.FrameCallback? callback) => super.noSuchMethod( Invocation.method( #addPersistentFrameCallback, @@ -2337,8 +2481,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void addPostFrameCallback( - _i26.FrameCallback? callback, { - String? debugLabel = r'callback', + _i27.FrameCallback? callback, { + String? debugLabel = 'callback', }) => super.noSuchMethod( Invocation.method( @@ -2413,15 +2557,15 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i26.PerformanceModeRequestHandle? requestPerformanceMode( - _i9.DartPerformanceMode? mode) => + _i27.PerformanceModeRequestHandle? requestPerformanceMode( + _i10.DartPerformanceMode? mode) => (super.noSuchMethod( Invocation.method( #requestPerformanceMode, [mode], ), returnValueForMissingStub: null, - ) as _i26.PerformanceModeRequestHandle?); + ) as _i27.PerformanceModeRequestHandle?); @override void handleDrawFrame() => super.noSuchMethod( @@ -2442,7 +2586,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void handlePointerEvent(_i10.PointerEvent? event) => super.noSuchMethod( + void handlePointerEvent(_i11.PointerEvent? event) => super.noSuchMethod( Invocation.method( #handlePointerEvent, [event], @@ -2452,8 +2596,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void hitTestInView( - _i11.HitTestResult? result, - _i9.Offset? position, + _i12.HitTestResult? result, + _i10.Offset? position, int? viewId, ) => super.noSuchMethod( @@ -2470,8 +2614,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void hitTest( - _i11.HitTestResult? result, - _i9.Offset? position, + _i12.HitTestResult? result, + _i10.Offset? position, ) => super.noSuchMethod( Invocation.method( @@ -2486,8 +2630,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void dispatchEvent( - _i10.PointerEvent? event, - _i11.HitTestResult? hitTestResult, + _i11.PointerEvent? event, + _i12.HitTestResult? hitTestResult, ) => super.noSuchMethod( Invocation.method( @@ -2502,8 +2646,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override void handleEvent( - _i10.PointerEvent? event, - _i11.HitTestEntry<_i11.HitTestTarget>? entry, + _i11.PointerEvent? event, + _i12.HitTestEntry<_i12.HitTestTarget>? entry, ) => super.noSuchMethod( Invocation.method( @@ -2526,29 +2670,29 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i12.PipelineOwner createRootPipelineOwner() => (super.noSuchMethod( + _i13.PipelineOwner createRootPipelineOwner() => (super.noSuchMethod( Invocation.method( #createRootPipelineOwner, [], ), - returnValue: _FakePipelineOwner_20( + returnValue: _i17.dummyValue<_i13.PipelineOwner>( this, Invocation.method( #createRootPipelineOwner, [], ), ), - returnValueForMissingStub: _FakePipelineOwner_20( + returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( this, Invocation.method( #createRootPipelineOwner, [], ), ), - ) as _i12.PipelineOwner); + ) as _i13.PipelineOwner); @override - void addRenderView(_i12.RenderView? view) => super.noSuchMethod( + void addRenderView(_i13.RenderView? view) => super.noSuchMethod( Invocation.method( #addRenderView, [view], @@ -2557,7 +2701,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void removeRenderView(_i12.RenderView? view) => super.noSuchMethod( + void removeRenderView(_i13.RenderView? view) => super.noSuchMethod( Invocation.method( #removeRenderView, [view], @@ -2566,8 +2710,8 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i12.ViewConfiguration createViewConfigurationFor( - _i12.RenderView? renderView) => + _i13.ViewConfiguration createViewConfigurationFor( + _i13.RenderView? renderView) => (super.noSuchMethod( Invocation.method( #createViewConfigurationFor, @@ -2587,10 +2731,77 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { [renderView], ), ), - ) as _i12.ViewConfiguration); + ) as _i13.ViewConfiguration); @override - void initMouseTracker([_i12.MouseTracker? tracker]) => super.noSuchMethod( + _i10.SceneBuilder createSceneBuilder() => (super.noSuchMethod( + Invocation.method( + #createSceneBuilder, + [], + ), + returnValue: _FakeSceneBuilder_26( + this, + Invocation.method( + #createSceneBuilder, + [], + ), + ), + returnValueForMissingStub: _FakeSceneBuilder_26( + this, + Invocation.method( + #createSceneBuilder, + [], + ), + ), + ) as _i10.SceneBuilder); + + @override + _i10.PictureRecorder createPictureRecorder() => (super.noSuchMethod( + Invocation.method( + #createPictureRecorder, + [], + ), + returnValue: _FakePictureRecorder_27( + this, + Invocation.method( + #createPictureRecorder, + [], + ), + ), + returnValueForMissingStub: _FakePictureRecorder_27( + this, + Invocation.method( + #createPictureRecorder, + [], + ), + ), + ) as _i10.PictureRecorder); + + @override + _i10.Canvas createCanvas(_i10.PictureRecorder? recorder) => + (super.noSuchMethod( + Invocation.method( + #createCanvas, + [recorder], + ), + returnValue: _FakeCanvas_28( + this, + Invocation.method( + #createCanvas, + [recorder], + ), + ), + returnValueForMissingStub: _FakeCanvas_28( + this, + Invocation.method( + #createCanvas, + [recorder], + ), + ), + ) as _i10.Canvas); + + @override + void initMouseTracker([_i13.MouseTracker? tracker]) => super.noSuchMethod( Invocation.method( #initMouseTracker, [tracker], @@ -2599,7 +2810,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void performSemanticsAction(_i9.SemanticsActionEvent? action) => + void performSemanticsAction(_i10.SemanticsActionEvent? action) => super.noSuchMethod( Invocation.method( #performSemanticsAction, @@ -2636,7 +2847,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void addSemanticsEnabledListener(_i9.VoidCallback? listener) => + void addSemanticsEnabledListener(_i10.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addSemanticsEnabledListener, @@ -2646,7 +2857,7 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - void removeSemanticsEnabledListener(_i9.VoidCallback? listener) => + void removeSemanticsEnabledListener(_i10.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeSemanticsEnabledListener, @@ -2656,47 +2867,69 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i12.SemanticsHandle ensureSemantics() => (super.noSuchMethod( + void addSemanticsActionListener( + _i7.ValueSetter<_i10.SemanticsActionEvent>? listener) => + super.noSuchMethod( + Invocation.method( + #addSemanticsActionListener, + [listener], + ), + returnValueForMissingStub: null, + ); + + @override + void removeSemanticsActionListener( + _i7.ValueSetter<_i10.SemanticsActionEvent>? listener) => + super.noSuchMethod( + Invocation.method( + #removeSemanticsActionListener, + [listener], + ), + returnValueForMissingStub: null, + ); + + @override + _i13.SemanticsHandle ensureSemantics() => (super.noSuchMethod( Invocation.method( #ensureSemantics, [], ), - returnValue: _FakeSemanticsHandle_26( + returnValue: _FakeSemanticsHandle_29( this, Invocation.method( #ensureSemantics, [], ), ), - returnValueForMissingStub: _FakeSemanticsHandle_26( + returnValueForMissingStub: _FakeSemanticsHandle_29( this, Invocation.method( #ensureSemantics, [], ), ), - ) as _i12.SemanticsHandle); + ) as _i13.SemanticsHandle); @override - _i9.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => + _i10.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => (super.noSuchMethod( Invocation.method( #createSemanticsUpdateBuilder, [], ), - returnValue: _FakeSemanticsUpdateBuilder_27( + returnValue: _FakeSemanticsUpdateBuilder_30( this, Invocation.method( #createSemanticsUpdateBuilder, [], ), ), - returnValueForMissingStub: _FakeSemanticsUpdateBuilder_27( + returnValueForMissingStub: _FakeSemanticsUpdateBuilder_30( this, Invocation.method( #createSemanticsUpdateBuilder, [], ), ), - ) as _i9.SemanticsUpdateBuilder); + ) as _i10.SemanticsUpdateBuilder); } From d63fb3e9641487eb94133fe9836d371410a49e6c Mon Sep 17 00:00:00 2001 From: Sunita Prajapati Date: Fri, 24 Apr 2026 17:43:57 +0530 Subject: [PATCH 3/5] update: updated ignore for invalid use of internal member --- packages/core/test/mocks/mocks.mocks.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/test/mocks/mocks.mocks.dart b/packages/core/test/mocks/mocks.mocks.dart index 72ffd04..65fe83c 100644 --- a/packages/core/test/mocks/mocks.mocks.dart +++ b/packages/core/test/mocks/mocks.mocks.dart @@ -46,6 +46,7 @@ import 'package:state_notifier/state_notifier.dart' as _i24; // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class +// ignore_for_file: invalid_use_of_internal_member class _FakeEncoding_0 extends _i1.SmartFake implements _i2.Encoding { _FakeEncoding_0( From 07f61266250f297dd20fec66af840f530d0cf674 Mon Sep 17 00:00:00 2001 From: Sunita Prajapati Date: Mon, 27 Apr 2026 11:53:49 +0530 Subject: [PATCH 4/5] fix(mocks): regenerated mocks file which got changed due different version of flutter on local --- packages/core/lib/event.g.dart | 512 ++- packages/core/lib/state.dart | 2 +- packages/core/lib/state.g.dart | 277 +- packages/core/pubspec.yaml | 2 +- packages/core/test/mocks/mocks.mocks.dart | 3525 +++++++++------------ 5 files changed, 1824 insertions(+), 2494 deletions(-) diff --git a/packages/core/lib/event.g.dart b/packages/core/lib/event.g.dart index f9f9461..fd0610a 100644 --- a/packages/core/lib/event.g.dart +++ b/packages/core/lib/event.g.dart @@ -6,34 +6,35 @@ part of 'event.dart'; // JsonSerializableGenerator // ************************************************************************** -DestinationMetadata _$DestinationMetadataFromJson(Map json) => - DestinationMetadata( - bundled: (json['bundled'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - bundledIds: (json['bundledIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - unbundled: (json['unbundled'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - ); +DestinationMetadata _$DestinationMetadataFromJson( + Map json, +) => DestinationMetadata( + bundled: + (json['bundled'] as List?)?.map((e) => e as String).toList() ?? + const [], + bundledIds: + (json['bundledIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + unbundled: + (json['unbundled'] as List?)?.map((e) => e as String).toList() ?? + const [], +); Map _$DestinationMetadataToJson( - DestinationMetadata instance) => - { - 'bundled': instance.bundled, - 'unbundled': instance.unbundled, - 'bundledIds': instance.bundledIds, - }; - -TrackEvent _$TrackEventFromJson(Map json) => TrackEvent( - json['event'] as String, - properties: json['properties'] as Map?, - ) + DestinationMetadata instance, +) => { + 'bundled': instance.bundled, + 'unbundled': instance.unbundled, + 'bundledIds': instance.bundledIds, +}; + +TrackEvent _$TrackEventFromJson(Map json) => + TrackEvent( + json['event'] as String, + properties: json['properties'] as Map?, + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..userId = json['userId'] as String? @@ -45,7 +46,8 @@ TrackEvent _$TrackEventFromJson(Map json) => TrackEvent( ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map); + json['_metadata'] as Map, + ); Map _$TrackEventToJson(TrackEvent instance) => { @@ -62,11 +64,11 @@ Map _$TrackEventToJson(TrackEvent instance) => IdentifyEvent _$IdentifyEventFromJson(Map json) => IdentifyEvent( - traits: json['traits'] == null - ? null - : UserTraits.fromJson(json['traits'] as Map), - userId: json['userId'] as String?, - ) + traits: json['traits'] == null + ? null + : UserTraits.fromJson(json['traits'] as Map), + userId: json['userId'] as String?, + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..timestamp = json['timestamp'] as String? @@ -77,7 +79,8 @@ IdentifyEvent _$IdentifyEventFromJson(Map json) => ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map); + json['_metadata'] as Map, + ); Map _$IdentifyEventToJson(IdentifyEvent instance) => { @@ -91,12 +94,13 @@ Map _$IdentifyEventToJson(IdentifyEvent instance) => 'traits': instance.traits?.toJson(), }; -GroupEvent _$GroupEventFromJson(Map json) => GroupEvent( - json['groupId'] as String, - traits: json['traits'] == null - ? null - : GroupTraits.fromJson(json['traits'] as Map), - ) +GroupEvent _$GroupEventFromJson(Map json) => + GroupEvent( + json['groupId'] as String, + traits: json['traits'] == null + ? null + : GroupTraits.fromJson(json['traits'] as Map), + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..userId = json['userId'] as String? @@ -108,7 +112,8 @@ GroupEvent _$GroupEventFromJson(Map json) => GroupEvent( ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map); + json['_metadata'] as Map, + ); Map _$GroupEventToJson(GroupEvent instance) => { @@ -123,10 +128,8 @@ Map _$GroupEventToJson(GroupEvent instance) => 'traits': instance.traits?.toJson(), }; -AliasEvent _$AliasEventFromJson(Map json) => AliasEvent( - json['previousId'] as String, - userId: json['userId'] as String?, - ) +AliasEvent _$AliasEventFromJson(Map json) => + AliasEvent(json['previousId'] as String, userId: json['userId'] as String?) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..timestamp = json['timestamp'] as String? @@ -137,7 +140,8 @@ AliasEvent _$AliasEventFromJson(Map json) => AliasEvent( ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map); + json['_metadata'] as Map, + ); Map _$AliasEventToJson(AliasEvent instance) => { @@ -151,10 +155,11 @@ Map _$AliasEventToJson(AliasEvent instance) => 'previousId': instance.previousId, }; -ScreenEvent _$ScreenEventFromJson(Map json) => ScreenEvent( - json['name'] as String, - properties: json['properties'] as Map?, - ) +ScreenEvent _$ScreenEventFromJson(Map json) => + ScreenEvent( + json['name'] as String, + properties: json['properties'] as Map?, + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..userId = json['userId'] as String? @@ -166,7 +171,8 @@ ScreenEvent _$ScreenEventFromJson(Map json) => ScreenEvent( ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map); + json['_metadata'] as Map, + ); Map _$ScreenEventToJson(ScreenEvent instance) => { @@ -182,206 +188,158 @@ Map _$ScreenEventToJson(ScreenEvent instance) => }; UserTraits _$UserTraitsFromJson(Map json) => UserTraits( - address: json['address'] == null - ? null - : Address.fromJson(json['address'] as Map), - age: (json['age'] as num?)?.toInt(), - avatar: json['avatar'] as String?, - birthday: json['birthday'] as String?, - company: json['company'] == null - ? null - : Company.fromJson(json['company'] as Map), - createdAt: json['createdAt'] as String?, - description: json['description'] as String?, - email: json['email'] as String?, - firstName: json['firstName'] as String?, - gender: json['gender'] as String?, - id: json['id'] as String?, - lastName: json['lastName'] as String?, - name: json['name'] as String?, - phone: json['phone'] as String?, - title: json['title'] as String?, - username: json['username'] as String?, - website: json['website'] as String?, - custom: json['custom'] as Map?, - ); - -Map _$UserTraitsToJson(UserTraits instance) { - final val = { - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('address', instance.address?.toJson()); - writeNotNull('company', instance.company?.toJson()); - writeNotNull('age', instance.age); - writeNotNull('avatar', instance.avatar); - writeNotNull('birthday', instance.birthday); - writeNotNull('createdAt', instance.createdAt); - writeNotNull('description', instance.description); - writeNotNull('email', instance.email); - writeNotNull('firstName', instance.firstName); - writeNotNull('gender', instance.gender); - writeNotNull('id', instance.id); - writeNotNull('lastName', instance.lastName); - writeNotNull('name', instance.name); - writeNotNull('phone', instance.phone); - writeNotNull('title', instance.title); - writeNotNull('username', instance.username); - writeNotNull('website', instance.website); - return val; -} + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + age: (json['age'] as num?)?.toInt(), + avatar: json['avatar'] as String?, + birthday: json['birthday'] as String?, + company: json['company'] == null + ? null + : Company.fromJson(json['company'] as Map), + createdAt: json['createdAt'] as String?, + description: json['description'] as String?, + email: json['email'] as String?, + firstName: json['firstName'] as String?, + gender: json['gender'] as String?, + id: json['id'] as String?, + lastName: json['lastName'] as String?, + name: json['name'] as String?, + phone: json['phone'] as String?, + title: json['title'] as String?, + username: json['username'] as String?, + website: json['website'] as String?, + custom: json['custom'] as Map?, +); + +Map _$UserTraitsToJson(UserTraits instance) => + { + 'custom': instance.custom, + 'address': ?instance.address?.toJson(), + 'company': ?instance.company?.toJson(), + 'age': ?instance.age, + 'avatar': ?instance.avatar, + 'birthday': ?instance.birthday, + 'createdAt': ?instance.createdAt, + 'description': ?instance.description, + 'email': ?instance.email, + 'firstName': ?instance.firstName, + 'gender': ?instance.gender, + 'id': ?instance.id, + 'lastName': ?instance.lastName, + 'name': ?instance.name, + 'phone': ?instance.phone, + 'title': ?instance.title, + 'username': ?instance.username, + 'website': ?instance.website, + }; GroupTraits _$GroupTraitsFromJson(Map json) => GroupTraits( - address: json['address'] == null - ? null - : Address.fromJson(json['address'] as Map), - avatar: json['avatar'] as String?, - createdAt: json['createdAt'] as String?, - description: json['description'] as String?, - email: json['email'] as String?, - employees: json['employees'] as String?, - id: json['id'] as String?, - industry: json['industry'] as String?, - name: json['name'] as String?, - phone: json['phone'] as String?, - plan: json['plan'] as String?, - website: json['website'] as String?, - custom: json['custom'] as Map?, - ); - -Map _$GroupTraitsToJson(GroupTraits instance) { - final val = { - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('address', instance.address?.toJson()); - writeNotNull('avatar', instance.avatar); - writeNotNull('createdAt', instance.createdAt); - writeNotNull('description', instance.description); - writeNotNull('email', instance.email); - writeNotNull('employees', instance.employees); - writeNotNull('id', instance.id); - writeNotNull('industry', instance.industry); - writeNotNull('name', instance.name); - writeNotNull('phone', instance.phone); - writeNotNull('website', instance.website); - writeNotNull('plan', instance.plan); - return val; -} + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + avatar: json['avatar'] as String?, + createdAt: json['createdAt'] as String?, + description: json['description'] as String?, + email: json['email'] as String?, + employees: json['employees'] as String?, + id: json['id'] as String?, + industry: json['industry'] as String?, + name: json['name'] as String?, + phone: json['phone'] as String?, + plan: json['plan'] as String?, + website: json['website'] as String?, + custom: json['custom'] as Map?, +); + +Map _$GroupTraitsToJson(GroupTraits instance) => + { + 'custom': instance.custom, + 'address': ?instance.address?.toJson(), + 'avatar': ?instance.avatar, + 'createdAt': ?instance.createdAt, + 'description': ?instance.description, + 'email': ?instance.email, + 'employees': ?instance.employees, + 'id': ?instance.id, + 'industry': ?instance.industry, + 'name': ?instance.name, + 'phone': ?instance.phone, + 'website': ?instance.website, + 'plan': ?instance.plan, + }; Address _$AddressFromJson(Map json) => Address( - city: json['city'] as String?, - country: json['country'] as String?, - postalCode: json['postalCode'] as String?, - state: json['state'] as String?, - street: json['street'] as String?, - custom: json['custom'] as Map?, - ); - -Map _$AddressToJson(Address instance) { - final val = { - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('city', instance.city); - writeNotNull('country', instance.country); - writeNotNull('postalCode', instance.postalCode); - writeNotNull('state', instance.state); - writeNotNull('street', instance.street); - return val; -} + city: json['city'] as String?, + country: json['country'] as String?, + postalCode: json['postalCode'] as String?, + state: json['state'] as String?, + street: json['street'] as String?, + custom: json['custom'] as Map?, +); + +Map _$AddressToJson(Address instance) => { + 'custom': instance.custom, + 'city': ?instance.city, + 'country': ?instance.country, + 'postalCode': ?instance.postalCode, + 'state': ?instance.state, + 'street': ?instance.street, +}; Company _$CompanyFromJson(Map json) => Company( - employeeCount: (json['employeeCount'] as num?)?.toInt(), - id: json['id'] as String?, - industry: json['industry'] as String?, - name: json['name'] as String?, - plan: json['plan'] as String?, - custom: json['custom'] as Map?, - ); - -Map _$CompanyToJson(Company instance) { - final val = { - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('name', instance.name); - writeNotNull('id', instance.id); - writeNotNull('industry', instance.industry); - writeNotNull('employeeCount', instance.employeeCount); - writeNotNull('plan', instance.plan); - return val; -} + employeeCount: (json['employeeCount'] as num?)?.toInt(), + id: json['id'] as String?, + industry: json['industry'] as String?, + name: json['name'] as String?, + plan: json['plan'] as String?, + custom: json['custom'] as Map?, +); + +Map _$CompanyToJson(Company instance) => { + 'custom': instance.custom, + 'name': ?instance.name, + 'id': ?instance.id, + 'industry': ?instance.industry, + 'employeeCount': ?instance.employeeCount, + 'plan': ?instance.plan, +}; Context _$ContextFromJson(Map json) => Context( - ContextApp.fromJson(json['app'] as Map), - ContextDevice.fromJson(json['device'] as Map), - ContextLibrary.fromJson(json['library'] as Map), - json['locale'] as String, - ContextNetwork.fromJson(json['network'] as Map), - ContextOS.fromJson(json['os'] as Map), - ContextScreen.fromJson(json['screen'] as Map), - json['timezone'] as String, - UserTraits.fromJson(json['traits'] as Map), - instanceId: json['instanceId'] as String?, - custom: json['custom'] as Map?, - ); - -Map _$ContextToJson(Context instance) { - final val = { - 'custom': instance.custom, - 'app': instance.app.toJson(), - 'device': instance.device.toJson(), - 'library': instance.library.toJson(), - 'locale': instance.locale, - 'network': instance.network.toJson(), - 'os': instance.os.toJson(), - 'screen': instance.screen.toJson(), - 'timezone': instance.timezone, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('instanceId', instance.instanceId); - val['traits'] = instance.traits.toJson(); - return val; -} + ContextApp.fromJson(json['app'] as Map), + ContextDevice.fromJson(json['device'] as Map), + ContextLibrary.fromJson(json['library'] as Map), + json['locale'] as String, + ContextNetwork.fromJson(json['network'] as Map), + ContextOS.fromJson(json['os'] as Map), + ContextScreen.fromJson(json['screen'] as Map), + json['timezone'] as String, + UserTraits.fromJson(json['traits'] as Map), + instanceId: json['instanceId'] as String?, + custom: json['custom'] as Map?, +); + +Map _$ContextToJson(Context instance) => { + 'custom': instance.custom, + 'app': instance.app.toJson(), + 'device': instance.device.toJson(), + 'library': instance.library.toJson(), + 'locale': instance.locale, + 'network': instance.network.toJson(), + 'os': instance.os.toJson(), + 'screen': instance.screen.toJson(), + 'timezone': instance.timezone, + 'instanceId': ?instance.instanceId, + 'traits': instance.traits.toJson(), +}; ContextApp _$ContextAppFromJson(Map json) => ContextApp( - json['build'] as String, - json['name'] as String, - json['namespace'] as String, - json['version'] as String, - custom: json['custom'] as Map?, - ); + json['build'] as String, + json['name'] as String, + json['namespace'] as String, + json['version'] as String, + custom: json['custom'] as Map?, +); Map _$ContextAppToJson(ContextApp instance) => { @@ -406,28 +364,19 @@ ContextDevice _$ContextDeviceFromJson(Map json) => custom: json['custom'] as Map?, ); -Map _$ContextDeviceToJson(ContextDevice instance) { - final val = { - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('id', instance.id); - val['manufacturer'] = instance.manufacturer; - val['model'] = instance.model; - val['name'] = instance.name; - val['type'] = instance.type; - writeNotNull('adTrackingEnabled', instance.adTrackingEnabled); - writeNotNull('advertisingId', instance.advertisingId); - writeNotNull('trackingStatus', instance.trackingStatus); - writeNotNull('token', instance.token); - return val; -} +Map _$ContextDeviceToJson(ContextDevice instance) => + { + 'custom': instance.custom, + 'id': ?instance.id, + 'manufacturer': instance.manufacturer, + 'model': instance.model, + 'name': instance.name, + 'type': instance.type, + 'adTrackingEnabled': ?instance.adTrackingEnabled, + 'advertisingId': ?instance.advertisingId, + 'trackingStatus': ?instance.trackingStatus, + 'token': ?instance.token, + }; ContextLibrary _$ContextLibraryFromJson(Map json) => ContextLibrary( @@ -444,16 +393,16 @@ Map _$ContextLibraryToJson(ContextLibrary instance) => }; ContextOS _$ContextOSFromJson(Map json) => ContextOS( - json['name'] as String, - json['version'] as String, - custom: json['custom'] as Map?, - ); + json['name'] as String, + json['version'] as String, + custom: json['custom'] as Map?, +); Map _$ContextOSToJson(ContextOS instance) => { - 'custom': instance.custom, - 'name': instance.name, - 'version': instance.version, - }; + 'custom': instance.custom, + 'name': instance.name, + 'version': instance.version, +}; ContextNetwork _$ContextNetworkFromJson(Map json) => ContextNetwork( @@ -479,19 +428,10 @@ ContextScreen _$ContextScreenFromJson(Map json) => custom: json['custom'] as Map?, ); -Map _$ContextScreenToJson(ContextScreen instance) { - final val = { - 'custom': instance.custom, - 'height': instance.height, - 'width': instance.width, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('density', instance.density); - return val; -} +Map _$ContextScreenToJson(ContextScreen instance) => + { + 'custom': instance.custom, + 'height': instance.height, + 'width': instance.width, + 'density': ?instance.density, + }; diff --git a/packages/core/lib/state.dart b/packages/core/lib/state.dart index e8f8cb2..bbeee77 100644 --- a/packages/core/lib/state.dart +++ b/packages/core/lib/state.dart @@ -160,7 +160,7 @@ abstract class PersistedState implements AsyncStateNotifier { } void init(ErrorHandler errorHandler, bool storageJson) { - this._errorHandler = errorHandler; + _errorHandler = errorHandler; addListener((state) { if (_persistance != null) { _hasUpdated = true; diff --git a/packages/core/lib/state.g.dart b/packages/core/lib/state.g.dart index bb848e3..a391bb1 100644 --- a/packages/core/lib/state.g.dart +++ b/packages/core/lib/state.g.dart @@ -7,51 +7,33 @@ part of 'state.dart'; // ************************************************************************** UserInfo _$UserInfoFromJson(Map json) => UserInfo( - json['anonymousId'] as String, - userId: json['userId'] as String?, - groupTraits: json['groupTraits'] == null - ? null - : GroupTraits.fromJson(json['groupTraits'] as Map), - userTraits: json['userTraits'] == null - ? null - : UserTraits.fromJson(json['userTraits'] as Map), - ); - -Map _$UserInfoToJson(UserInfo instance) { - final val = { - 'anonymousId': instance.anonymousId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('userId', instance.userId); - writeNotNull('userTraits', instance.userTraits?.toJson()); - writeNotNull('groupTraits', instance.groupTraits?.toJson()); - return val; -} + json['anonymousId'] as String, + userId: json['userId'] as String?, + groupTraits: json['groupTraits'] == null + ? null + : GroupTraits.fromJson(json['groupTraits'] as Map), + userTraits: json['userTraits'] == null + ? null + : UserTraits.fromJson(json['userTraits'] as Map), +); + +Map _$UserInfoToJson(UserInfo instance) => { + 'anonymousId': instance.anonymousId, + 'userId': ?instance.userId, + 'userTraits': ?instance.userTraits?.toJson(), + 'groupTraits': ?instance.groupTraits?.toJson(), +}; DeepLinkData _$DeepLinkDataFromJson(Map json) => DeepLinkData( - json['referringApplication'] as String?, - json['url'] as String, - ); - -Map _$DeepLinkDataToJson(DeepLinkData instance) { - final val = {}; + json['referringApplication'] as String?, + json['url'] as String, +); - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('referringApplication', instance.referringApplication); - val['url'] = instance.url; - return val; -} +Map _$DeepLinkDataToJson(DeepLinkData instance) => + { + 'referringApplication': ?instance.referringApplication, + 'url': instance.url, + }; SegmentAPISettings _$SegmentAPISettingsFromJson(Map json) => SegmentAPISettings( @@ -59,27 +41,20 @@ SegmentAPISettings _$SegmentAPISettingsFromJson(Map json) => middlewareSettings: json['middlewareSettings'] == null ? null : MiddlewareSettings.fromJson( - json['middlewareSettings'] as Map), + json['middlewareSettings'] as Map, + ), ); -Map _$SegmentAPISettingsToJson(SegmentAPISettings instance) { - final val = { - 'integrations': instance.integrations, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('middlewareSettings', instance.middlewareSettings?.toJson()); - return val; -} +Map _$SegmentAPISettingsToJson(SegmentAPISettings instance) => + { + 'integrations': instance.integrations, + 'middlewareSettings': ?instance.middlewareSettings?.toJson(), + }; MiddlewareSettings _$MiddlewareSettingsFromJson(Map json) => MiddlewareSettings( - routingRules: (json['routingRules'] as List?) + routingRules: + (json['routingRules'] as List?) ?.map((e) => RoutingRule.fromJson(e as Map)) .toList() ?? const [], @@ -91,72 +66,56 @@ Map _$MiddlewareSettingsToJson(MiddlewareSettings instance) => }; RoutingRule _$RoutingRuleFromJson(Map json) => RoutingRule( - json['scope'] as String, - json['target_type'] as String, - destinationName: json['destinationName'] as String?, - matchers: (json['matchers'] as List?) - ?.map((e) => Matcher.fromJson(e as Map)) - .toList() ?? - const [], - transformers: (json['transformers'] as List?) - ?.map((e) => (e as List) - .map((e) => Transformer.fromJson(e as Map)) - .toList()) - .toList() ?? - const [], - ); + json['scope'] as String, + json['target_type'] as String, + destinationName: json['destinationName'] as String?, + matchers: + (json['matchers'] as List?) + ?.map((e) => Matcher.fromJson(e as Map)) + .toList() ?? + const [], + transformers: + (json['transformers'] as List?) + ?.map( + (e) => (e as List) + .map((e) => Transformer.fromJson(e as Map)) + .toList(), + ) + .toList() ?? + const [], +); + +Map _$RoutingRuleToJson(RoutingRule instance) => + { + 'scope': instance.scope, + 'target_type': instance.targetType, + 'matchers': instance.matchers.map((e) => e.toJson()).toList(), + 'transformers': instance.transformers + .map((e) => e.map((e) => e.toJson()).toList()) + .toList(), + 'destinationName': ?instance.destinationName, + }; -Map _$RoutingRuleToJson(RoutingRule instance) { - final val = { - 'scope': instance.scope, - 'target_type': instance.targetType, - 'matchers': instance.matchers.map((e) => e.toJson()).toList(), - 'transformers': instance.transformers - .map((e) => e.map((e) => e.toJson()).toList()) - .toList(), - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('destinationName', instance.destinationName); - return val; -} - -Matcher _$MatcherFromJson(Map json) => Matcher( - json['type'] as String, - json['ir'] as String, - ); +Matcher _$MatcherFromJson(Map json) => + Matcher(json['type'] as String, json['ir'] as String); Map _$MatcherToJson(Matcher instance) => { - 'type': instance.type, - 'ir': instance.ir, - }; + 'type': instance.type, + 'ir': instance.ir, +}; Transformer _$TransformerFromJson(Map json) => Transformer( - json['type'] as String, - config: json['config'] == null - ? null - : TransformerConfig.fromJson(json['config'] as Map), - ); - -Map _$TransformerToJson(Transformer instance) { - final val = { - 'type': instance.type, - }; + json['type'] as String, + config: json['config'] == null + ? null + : TransformerConfig.fromJson(json['config'] as Map), +); - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('config', instance.config?.toJson()); - return val; -} +Map _$TransformerToJson(Transformer instance) => + { + 'type': instance.type, + 'config': ?instance.config?.toJson(), + }; TransformerConfig _$TransformerConfigFromJson(Map json) => TransformerConfig( @@ -170,66 +129,50 @@ TransformerConfig _$TransformerConfigFromJson(Map json) => ), map: (json['map'] as Map?)?.map( (k, e) => MapEntry( - k, TransformerConfigMap.fromJson(e as Map)), + k, + TransformerConfigMap.fromJson(e as Map), + ), ), sample: json['sample'] == null ? null : TransformerConfigSample.fromJson( - json['sample'] as Map), + json['sample'] as Map, + ), ); -Map _$TransformerConfigToJson(TransformerConfig instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('allow', instance.allow); - writeNotNull('drop', instance.drop); - writeNotNull('sample', instance.sample?.toJson()); - writeNotNull('map', instance.map?.map((k, e) => MapEntry(k, e.toJson()))); - return val; -} +Map _$TransformerConfigToJson(TransformerConfig instance) => + { + 'allow': ?instance.allow, + 'drop': ?instance.drop, + 'sample': ?instance.sample?.toJson(), + 'map': ?instance.map?.map((k, e) => MapEntry(k, e.toJson())), + }; TransformerConfigSample _$TransformerConfigSampleFromJson( - Map json) => - TransformerConfigSample( - (json['percent'] as num).toInt(), - json['path'] as String, - ); + Map json, +) => TransformerConfigSample( + (json['percent'] as num).toInt(), + json['path'] as String, +); Map _$TransformerConfigSampleToJson( - TransformerConfigSample instance) => - { - 'percent': instance.percent, - 'path': instance.path, - }; + TransformerConfigSample instance, +) => {'percent': instance.percent, 'path': instance.path}; TransformerConfigMap _$TransformerConfigMapFromJson( - Map json) => - TransformerConfigMap( - copy: json['copy'] as String?, - move: json['move'] as String?, - set: json['set'], - enableToString: json['to_string'] as bool?, - ); + Map json, +) => TransformerConfigMap( + copy: json['copy'] as String?, + move: json['move'] as String?, + set: json['set'], + enableToString: json['to_string'] as bool?, +); Map _$TransformerConfigMapToJson( - TransformerConfigMap instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('set', instance.set); - writeNotNull('copy', instance.copy); - writeNotNull('move', instance.move); - writeNotNull('to_string', instance.enableToString); - return val; -} + TransformerConfigMap instance, +) => { + 'set': ?instance.set, + 'copy': ?instance.copy, + 'move': ?instance.move, + 'to_string': ?instance.enableToString, +}; diff --git a/packages/core/pubspec.yaml b/packages/core/pubspec.yaml index 95d500f..126c732 100644 --- a/packages/core/pubspec.yaml +++ b/packages/core/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/segmentio/analytics_flutter/tree/main/packages/co issue_tracker: https://github.com/segmentio/analytics_flutter/issues environment: - sdk: '>=3.2.0 <4.0.0' + sdk: '>=3.8.0 <4.0.0' flutter: ">=3.16.0" dependencies: diff --git a/packages/core/test/mocks/mocks.mocks.dart b/packages/core/test/mocks/mocks.mocks.dart index 65fe83c..efa1263 100644 --- a/packages/core/test/mocks/mocks.mocks.dart +++ b/packages/core/test/mocks/mocks.mocks.dart @@ -49,86 +49,46 @@ import 'package:state_notifier/state_notifier.dart' as _i24; // ignore_for_file: invalid_use_of_internal_member class _FakeEncoding_0 extends _i1.SmartFake implements _i2.Encoding { - _FakeEncoding_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeEncoding_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeUri_1 extends _i1.SmartFake implements Uri { - _FakeUri_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeUri_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeStreamedResponse_2 extends _i1.SmartFake implements _i3.StreamedResponse { - _FakeStreamedResponse_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeStreamedResponse_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeFuture_3 extends _i1.SmartFake implements _i4.Future { - _FakeFuture_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFuture_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeNativeContext_4 extends _i1.SmartFake implements _i5.NativeContext { - _FakeNativeContext_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeNativeContext_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformMenuDelegate_5 extends _i1.SmartFake implements _i6.PlatformMenuDelegate { - _FakePlatformMenuDelegate_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformMenuDelegate_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeValueNotifier_6 extends _i1.SmartFake implements _i7.ValueNotifier { - _FakeValueNotifier_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeValueNotifier_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeFocusManager_7 extends _i1.SmartFake implements _i8.FocusManager { - _FakeFocusManager_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFocusManager_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => @@ -137,154 +97,84 @@ class _FakeFocusManager_7 extends _i1.SmartFake implements _i8.FocusManager { class _FakeWindowingOwner_8 extends _i1.SmartFake implements _i9.WindowingOwner { - _FakeWindowingOwner_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWindowingOwner_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSingletonFlutterWindow_9 extends _i1.SmartFake implements _i10.SingletonFlutterWindow { - _FakeSingletonFlutterWindow_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSingletonFlutterWindow_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformDispatcher_10 extends _i1.SmartFake implements _i10.PlatformDispatcher { - _FakePlatformDispatcher_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformDispatcher_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHardwareKeyboard_11 extends _i1.SmartFake implements _i11.HardwareKeyboard { - _FakeHardwareKeyboard_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHardwareKeyboard_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeKeyEventManager_12 extends _i1.SmartFake implements _i11.KeyEventManager { - _FakeKeyEventManager_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeKeyEventManager_12(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBinaryMessenger_13 extends _i1.SmartFake implements _i11.BinaryMessenger { - _FakeBinaryMessenger_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBinaryMessenger_13(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeChannelBuffers_14 extends _i1.SmartFake implements _i10.ChannelBuffers { - _FakeChannelBuffers_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeChannelBuffers_14(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeRestorationManager_15 extends _i1.SmartFake implements _i11.RestorationManager { - _FakeRestorationManager_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRestorationManager_15(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDuration_16 extends _i1.SmartFake implements Duration { - _FakeDuration_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDuration_16(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerRouter_17 extends _i1.SmartFake implements _i12.PointerRouter { - _FakePointerRouter_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerRouter_17(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeGestureArenaManager_18 extends _i1.SmartFake implements _i12.GestureArenaManager { - _FakeGestureArenaManager_18( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeGestureArenaManager_18(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerSignalResolver_19 extends _i1.SmartFake implements _i12.PointerSignalResolver { - _FakePointerSignalResolver_19( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerSignalResolver_19(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSamplingClock_20 extends _i1.SmartFake implements _i12.SamplingClock { - _FakeSamplingClock_20( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSamplingClock_20(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeRenderView_21 extends _i1.SmartFake implements _i13.RenderView { - _FakeRenderView_21( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRenderView_21(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => @@ -292,34 +182,19 @@ class _FakeRenderView_21 extends _i1.SmartFake implements _i13.RenderView { } class _FakeMouseTracker_22 extends _i1.SmartFake implements _i13.MouseTracker { - _FakeMouseTracker_22( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeMouseTracker_22(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeAccessibilityFeatures_23 extends _i1.SmartFake implements _i10.AccessibilityFeatures { - _FakeAccessibilityFeatures_23( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeAccessibilityFeatures_23(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidget_24 extends _i1.SmartFake implements _i14.Widget { - _FakeWidget_24( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_24(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => @@ -328,66 +203,36 @@ class _FakeWidget_24 extends _i1.SmartFake implements _i14.Widget { class _FakeViewConfiguration_25 extends _i1.SmartFake implements _i13.ViewConfiguration { - _FakeViewConfiguration_25( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeViewConfiguration_25(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSceneBuilder_26 extends _i1.SmartFake implements _i10.SceneBuilder { - _FakeSceneBuilder_26( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSceneBuilder_26(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePictureRecorder_27 extends _i1.SmartFake implements _i10.PictureRecorder { - _FakePictureRecorder_27( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePictureRecorder_27(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_28 extends _i1.SmartFake implements _i10.Canvas { - _FakeCanvas_28( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_28(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSemanticsHandle_29 extends _i1.SmartFake implements _i13.SemanticsHandle { - _FakeSemanticsHandle_29( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsHandle_29(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSemanticsUpdateBuilder_30 extends _i1.SmartFake implements _i10.SemanticsUpdateBuilder { - _FakeSemanticsUpdateBuilder_30( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsUpdateBuilder_30(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [LogTarget]. @@ -396,12 +241,9 @@ class _FakeSemanticsUpdateBuilder_30 extends _i1.SmartFake class MockLogTarget extends _i1.Mock implements _i15.LogTarget { @override void parseLog(_i15.LogMessage? log) => super.noSuchMethod( - Invocation.method( - #parseLog, - [log], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#parseLog, [log]), + returnValueForMissingStub: null, + ); } /// A class which mocks [Request]. @@ -409,230 +251,206 @@ class MockLogTarget extends _i1.Mock implements _i15.LogTarget { /// See the documentation for Mockito's code generation for more information. class MockRequest extends _i1.Mock implements _i3.Request { @override - int get contentLength => (super.noSuchMethod( - Invocation.getter(#contentLength), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get contentLength => + (super.noSuchMethod( + Invocation.getter(#contentLength), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - _i2.Encoding get encoding => (super.noSuchMethod( - Invocation.getter(#encoding), - returnValue: _FakeEncoding_0( - this, - Invocation.getter(#encoding), - ), - returnValueForMissingStub: _FakeEncoding_0( - this, - Invocation.getter(#encoding), - ), - ) as _i2.Encoding); + _i2.Encoding get encoding => + (super.noSuchMethod( + Invocation.getter(#encoding), + returnValue: _FakeEncoding_0(this, Invocation.getter(#encoding)), + returnValueForMissingStub: _FakeEncoding_0( + this, + Invocation.getter(#encoding), + ), + ) + as _i2.Encoding); @override - _i16.Uint8List get bodyBytes => (super.noSuchMethod( - Invocation.getter(#bodyBytes), - returnValue: _i16.Uint8List(0), - returnValueForMissingStub: _i16.Uint8List(0), - ) as _i16.Uint8List); + _i16.Uint8List get bodyBytes => + (super.noSuchMethod( + Invocation.getter(#bodyBytes), + returnValue: _i16.Uint8List(0), + returnValueForMissingStub: _i16.Uint8List(0), + ) + as _i16.Uint8List); @override - String get body => (super.noSuchMethod( - Invocation.getter(#body), - returnValue: _i17.dummyValue( - this, - Invocation.getter(#body), - ), - returnValueForMissingStub: _i17.dummyValue( - this, - Invocation.getter(#body), - ), - ) as String); + String get body => + (super.noSuchMethod( + Invocation.getter(#body), + returnValue: _i17.dummyValue( + this, + Invocation.getter(#body), + ), + returnValueForMissingStub: _i17.dummyValue( + this, + Invocation.getter(#body), + ), + ) + as String); @override - Map get bodyFields => (super.noSuchMethod( - Invocation.getter(#bodyFields), - returnValue: {}, - returnValueForMissingStub: {}, - ) as Map); + Map get bodyFields => + (super.noSuchMethod( + Invocation.getter(#bodyFields), + returnValue: {}, + returnValueForMissingStub: {}, + ) + as Map); @override set contentLength(int? value) => super.noSuchMethod( - Invocation.setter( - #contentLength, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#contentLength, value), + returnValueForMissingStub: null, + ); @override set encoding(_i2.Encoding? value) => super.noSuchMethod( - Invocation.setter( - #encoding, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#encoding, value), + returnValueForMissingStub: null, + ); @override set bodyBytes(List? value) => super.noSuchMethod( - Invocation.setter( - #bodyBytes, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#bodyBytes, value), + returnValueForMissingStub: null, + ); @override set body(String? value) => super.noSuchMethod( - Invocation.setter( - #body, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#body, value), + returnValueForMissingStub: null, + ); @override set bodyFields(Map? fields) => super.noSuchMethod( - Invocation.setter( - #bodyFields, - fields, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#bodyFields, fields), + returnValueForMissingStub: null, + ); @override - String get method => (super.noSuchMethod( - Invocation.getter(#method), - returnValue: _i17.dummyValue( - this, - Invocation.getter(#method), - ), - returnValueForMissingStub: _i17.dummyValue( - this, - Invocation.getter(#method), - ), - ) as String); + String get method => + (super.noSuchMethod( + Invocation.getter(#method), + returnValue: _i17.dummyValue( + this, + Invocation.getter(#method), + ), + returnValueForMissingStub: _i17.dummyValue( + this, + Invocation.getter(#method), + ), + ) + as String); @override - Uri get url => (super.noSuchMethod( - Invocation.getter(#url), - returnValue: _FakeUri_1( - this, - Invocation.getter(#url), - ), - returnValueForMissingStub: _FakeUri_1( - this, - Invocation.getter(#url), - ), - ) as Uri); + Uri get url => + (super.noSuchMethod( + Invocation.getter(#url), + returnValue: _FakeUri_1(this, Invocation.getter(#url)), + returnValueForMissingStub: _FakeUri_1( + this, + Invocation.getter(#url), + ), + ) + as Uri); @override - Map get headers => (super.noSuchMethod( - Invocation.getter(#headers), - returnValue: {}, - returnValueForMissingStub: {}, - ) as Map); + Map get headers => + (super.noSuchMethod( + Invocation.getter(#headers), + returnValue: {}, + returnValueForMissingStub: {}, + ) + as Map); @override - bool get persistentConnection => (super.noSuchMethod( - Invocation.getter(#persistentConnection), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get persistentConnection => + (super.noSuchMethod( + Invocation.getter(#persistentConnection), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get followRedirects => (super.noSuchMethod( - Invocation.getter(#followRedirects), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get followRedirects => + (super.noSuchMethod( + Invocation.getter(#followRedirects), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - int get maxRedirects => (super.noSuchMethod( - Invocation.getter(#maxRedirects), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get maxRedirects => + (super.noSuchMethod( + Invocation.getter(#maxRedirects), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - bool get finalized => (super.noSuchMethod( - Invocation.getter(#finalized), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get finalized => + (super.noSuchMethod( + Invocation.getter(#finalized), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set persistentConnection(bool? value) => super.noSuchMethod( - Invocation.setter( - #persistentConnection, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#persistentConnection, value), + returnValueForMissingStub: null, + ); @override set followRedirects(bool? value) => super.noSuchMethod( - Invocation.setter( - #followRedirects, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#followRedirects, value), + returnValueForMissingStub: null, + ); @override set maxRedirects(int? value) => super.noSuchMethod( - Invocation.setter( - #maxRedirects, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#maxRedirects, value), + returnValueForMissingStub: null, + ); @override - _i18.ByteStream finalize() => (super.noSuchMethod( - Invocation.method( - #finalize, - [], - ), - returnValue: _i17.dummyValue<_i18.ByteStream>( - this, - Invocation.method( - #finalize, - [], - ), - ), - returnValueForMissingStub: _i17.dummyValue<_i18.ByteStream>( - this, - Invocation.method( - #finalize, - [], - ), - ), - ) as _i18.ByteStream); + _i18.ByteStream finalize() => + (super.noSuchMethod( + Invocation.method(#finalize, []), + returnValue: _i17.dummyValue<_i18.ByteStream>( + this, + Invocation.method(#finalize, []), + ), + returnValueForMissingStub: _i17.dummyValue<_i18.ByteStream>( + this, + Invocation.method(#finalize, []), + ), + ) + as _i18.ByteStream); @override - _i4.Future<_i3.StreamedResponse> send() => (super.noSuchMethod( - Invocation.method( - #send, - [], - ), - returnValue: - _i4.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( - this, - Invocation.method( - #send, - [], - ), - )), - returnValueForMissingStub: - _i4.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( - this, - Invocation.method( - #send, - [], - ), - )), - ) as _i4.Future<_i3.StreamedResponse>); + _i4.Future<_i3.StreamedResponse> send() => + (super.noSuchMethod( + Invocation.method(#send, []), + returnValue: _i4.Future<_i3.StreamedResponse>.value( + _FakeStreamedResponse_2(this, Invocation.method(#send, [])), + ), + returnValueForMissingStub: _i4.Future<_i3.StreamedResponse>.value( + _FakeStreamedResponse_2(this, Invocation.method(#send, [])), + ), + ) + as _i4.Future<_i3.StreamedResponse>); } /// A class which mocks [StreamSubscription]. @@ -641,108 +459,83 @@ class MockRequest extends _i1.Mock implements _i3.Request { class MockStreamSubscription extends _i1.Mock implements _i4.StreamSubscription { @override - bool get isPaused => (super.noSuchMethod( - Invocation.getter(#isPaused), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get isPaused => + (super.noSuchMethod( + Invocation.getter(#isPaused), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Future cancel() => (super.noSuchMethod( - Invocation.method( - #cancel, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future cancel() => + (super.noSuchMethod( + Invocation.method(#cancel, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override void onData(void Function(T)? handleData) => super.noSuchMethod( - Invocation.method( - #onData, - [handleData], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onData, [handleData]), + returnValueForMissingStub: null, + ); @override void onError(Function? handleError) => super.noSuchMethod( - Invocation.method( - #onError, - [handleError], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onError, [handleError]), + returnValueForMissingStub: null, + ); @override void onDone(void Function()? handleDone) => super.noSuchMethod( - Invocation.method( - #onDone, - [handleDone], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onDone, [handleDone]), + returnValueForMissingStub: null, + ); @override void pause([_i4.Future? resumeSignal]) => super.noSuchMethod( - Invocation.method( - #pause, - [resumeSignal], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#pause, [resumeSignal]), + returnValueForMissingStub: null, + ); @override void resume() => super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resume, []), + returnValueForMissingStub: null, + ); @override - _i4.Future asFuture([E? futureValue]) => (super.noSuchMethod( - Invocation.method( - #asFuture, - [futureValue], - ), - returnValue: _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method( - #asFuture, - [futureValue], + _i4.Future asFuture([E? futureValue]) => + (super.noSuchMethod( + Invocation.method(#asFuture, [futureValue]), + returnValue: + _i17.ifNotNull( + _i17.dummyValueOrNull( + this, + Invocation.method(#asFuture, [futureValue]), + ), + (E v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method(#asFuture, [futureValue]), ), - ), - (E v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method( - #asFuture, - [futureValue], - ), - ), - returnValueForMissingStub: _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method( - #asFuture, - [futureValue], + returnValueForMissingStub: + _i17.ifNotNull( + _i17.dummyValueOrNull( + this, + Invocation.method(#asFuture, [futureValue]), + ), + (E v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method(#asFuture, [futureValue]), ), - ), - (E v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method( - #asFuture, - [futureValue], - ), - ), - ) as _i4.Future); + ) + as _i4.Future); } /// A class which mocks [HTTPClient]. @@ -756,28 +549,25 @@ class MockHTTPClient extends _i1.Mock implements _i19.HTTPClient { String? host, }) => (super.noSuchMethod( - Invocation.method( - #startBatchUpload, - [ - writeKey, - batch, - ], - {#host: host}, - ), - returnValue: _i4.Future.value(false), - returnValueForMissingStub: _i4.Future.value(false), - ) as _i4.Future); + Invocation.method( + #startBatchUpload, + [writeKey, batch], + {#host: host}, + ), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) + as _i4.Future); @override _i4.Future<_i21.SegmentAPISettings?> settingsFor(String? writeKey) => (super.noSuchMethod( - Invocation.method( - #settingsFor, - [writeKey], - ), - returnValue: _i4.Future<_i21.SegmentAPISettings?>.value(), - returnValueForMissingStub: _i4.Future<_i21.SegmentAPISettings?>.value(), - ) as _i4.Future<_i21.SegmentAPISettings?>); + Invocation.method(#settingsFor, [writeKey]), + returnValue: _i4.Future<_i21.SegmentAPISettings?>.value(), + returnValueForMissingStub: + _i4.Future<_i21.SegmentAPISettings?>.value(), + ) + as _i4.Future<_i21.SegmentAPISettings?>); } /// A class which mocks [Store]. @@ -785,58 +575,47 @@ class MockHTTPClient extends _i1.Mock implements _i19.HTTPClient { /// See the documentation for Mockito's code generation for more information. class MockStore extends _i1.Mock implements _i22.Store { @override - _i4.Future get ready => (super.noSuchMethod( - Invocation.getter(#ready), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future get ready => + (super.noSuchMethod( + Invocation.getter(#ready), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future?> getPersisted(String? key) => (super.noSuchMethod( - Invocation.method( - #getPersisted, - [key], - ), - returnValue: _i4.Future?>.value(), - returnValueForMissingStub: _i4.Future?>.value(), - ) as _i4.Future?>); + Invocation.method(#getPersisted, [key]), + returnValue: _i4.Future?>.value(), + returnValueForMissingStub: + _i4.Future?>.value(), + ) + as _i4.Future?>); @override - _i4.Future setPersisted( - String? key, - Map? value, - ) => + _i4.Future setPersisted(String? key, Map? value) => (super.noSuchMethod( - Invocation.method( - #setPersisted, - [ - key, - value, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setPersisted, [key, value]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override - _i4.Future deletePersisted(String? key) => (super.noSuchMethod( - Invocation.method( - #deletePersisted, - [key], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future deletePersisted(String? key) => + (super.noSuchMethod( + Invocation.method(#deletePersisted, [key]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [FlushPolicy]. @@ -844,117 +623,103 @@ class MockStore extends _i1.Mock implements _i22.Store { /// See the documentation for Mockito's code generation for more information. class MockFlushPolicy extends _i1.Mock implements _i23.FlushPolicy { @override - bool get shouldFlush => (super.noSuchMethod( - Invocation.getter(#shouldFlush), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get shouldFlush => + (super.noSuchMethod( + Invocation.getter(#shouldFlush), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set shouldFlush(bool? shouldFlush) => super.noSuchMethod( - Invocation.setter( - #shouldFlush, - shouldFlush, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#shouldFlush, shouldFlush), + returnValueForMissingStub: null, + ); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get mounted => + (super.noSuchMethod( + Invocation.getter(#mounted), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Stream get stream => (super.noSuchMethod( - Invocation.getter(#stream), - returnValue: _i4.Stream.empty(), - returnValueForMissingStub: _i4.Stream.empty(), - ) as _i4.Stream); + _i4.Stream get stream => + (super.noSuchMethod( + Invocation.getter(#stream), + returnValue: _i4.Stream.empty(), + returnValueForMissingStub: _i4.Stream.empty(), + ) + as _i4.Stream); @override - bool get state => (super.noSuchMethod( - Invocation.getter(#state), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get state => + (super.noSuchMethod( + Invocation.getter(#state), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get debugState => (super.noSuchMethod( - Invocation.getter(#debugState), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugState => + (super.noSuchMethod( + Invocation.getter(#debugState), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get hasListeners => + (super.noSuchMethod( + Invocation.getter(#hasListeners), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set onError(_i24.ErrorListener? _onError) => super.noSuchMethod( - Invocation.setter( - #onError, - _onError, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onError, _onError), + returnValueForMissingStub: null, + ); @override set state(bool? value) => super.noSuchMethod( - Invocation.setter( - #state, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#state, value), + returnValueForMissingStub: null, + ); @override void start() => super.noSuchMethod( - Invocation.method( - #start, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#start, []), + returnValueForMissingStub: null, + ); @override void onEvent(_i20.RawEvent? event) => super.noSuchMethod( - Invocation.method( - #onEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onEvent, [event]), + returnValueForMissingStub: null, + ); @override void reset() => super.noSuchMethod( - Invocation.method( - #reset, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#reset, []), + returnValueForMissingStub: null, + ); @override - bool updateShouldNotify( - bool? old, - bool? current, - ) => + bool updateShouldNotify(bool? old, bool? current) => (super.noSuchMethod( - Invocation.method( - #updateShouldNotify, - [ - old, - current, - ], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + Invocation.method(#updateShouldNotify, [old, current]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override _i24.RemoveListener addListener( @@ -962,23 +727,21 @@ class MockFlushPolicy extends _i1.Mock implements _i23.FlushPolicy { bool? fireImmediately = true, }) => (super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - {#fireImmediately: fireImmediately}, - ), - returnValue: () {}, - returnValueForMissingStub: () {}, - ) as _i24.RemoveListener); + Invocation.method( + #addListener, + [listener], + {#fireImmediately: fireImmediately}, + ), + returnValue: () {}, + returnValueForMissingStub: () {}, + ) + as _i24.RemoveListener); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [Logger]. @@ -986,11 +749,13 @@ class MockFlushPolicy extends _i1.Mock implements _i23.FlushPolicy { /// See the documentation for Mockito's code generation for more information. class MockLogger extends _i1.Mock implements _i25.Logger { @override - _i4.Future get init => (super.noSuchMethod( - Invocation.getter(#init), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future get init => + (super.noSuchMethod( + Invocation.getter(#init), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override void v( @@ -998,19 +763,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #v, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #v, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void t( @@ -1018,19 +778,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #t, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #t, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void d( @@ -1038,19 +793,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #d, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #d, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void i( @@ -1058,19 +808,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #i, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #i, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void w( @@ -1078,19 +823,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #w, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #w, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void e( @@ -1098,19 +838,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #e, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #e, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void wtf( @@ -1118,19 +853,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #wtf, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #wtf, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void f( @@ -1138,19 +868,14 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #f, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #f, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void log( @@ -1159,42 +884,32 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #log, - [ - level, - message, - ], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #log, + [level, message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override - bool isClosed() => (super.noSuchMethod( - Invocation.method( - #isClosed, - [], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool isClosed() => + (super.noSuchMethod( + Invocation.method(#isClosed, []), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); } /// A class which mocks [NativeContextApi]. @@ -1204,26 +919,21 @@ class MockNativeContextApi extends _i1.Mock implements _i5.NativeContextApi { @override _i4.Future<_i5.NativeContext> getContext(bool? arg_collectDeviceId) => (super.noSuchMethod( - Invocation.method( - #getContext, - [arg_collectDeviceId], - ), - returnValue: _i4.Future<_i5.NativeContext>.value(_FakeNativeContext_4( - this, - Invocation.method( - #getContext, - [arg_collectDeviceId], - ), - )), - returnValueForMissingStub: - _i4.Future<_i5.NativeContext>.value(_FakeNativeContext_4( - this, - Invocation.method( - #getContext, - [arg_collectDeviceId], - ), - )), - ) as _i4.Future<_i5.NativeContext>); + Invocation.method(#getContext, [arg_collectDeviceId]), + returnValue: _i4.Future<_i5.NativeContext>.value( + _FakeNativeContext_4( + this, + Invocation.method(#getContext, [arg_collectDeviceId]), + ), + ), + returnValueForMissingStub: _i4.Future<_i5.NativeContext>.value( + _FakeNativeContext_4( + this, + Invocation.method(#getContext, [arg_collectDeviceId]), + ), + ), + ) + as _i4.Future<_i5.NativeContext>); } /// A class which mocks [WidgetsBinding]. @@ -1231,135 +941,156 @@ class MockNativeContextApi extends _i1.Mock implements _i5.NativeContextApi { /// See the documentation for Mockito's code generation for more information. class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { @override - _i6.PlatformMenuDelegate get platformMenuDelegate => (super.noSuchMethod( - Invocation.getter(#platformMenuDelegate), - returnValue: _FakePlatformMenuDelegate_5( - this, - Invocation.getter(#platformMenuDelegate), - ), - returnValueForMissingStub: _FakePlatformMenuDelegate_5( - this, - Invocation.getter(#platformMenuDelegate), - ), - ) as _i6.PlatformMenuDelegate); + _i6.PlatformMenuDelegate get platformMenuDelegate => + (super.noSuchMethod( + Invocation.getter(#platformMenuDelegate), + returnValue: _FakePlatformMenuDelegate_5( + this, + Invocation.getter(#platformMenuDelegate), + ), + returnValueForMissingStub: _FakePlatformMenuDelegate_5( + this, + Invocation.getter(#platformMenuDelegate), + ), + ) + as _i6.PlatformMenuDelegate); @override - bool get debugBuildingDirtyElements => (super.noSuchMethod( - Invocation.getter(#debugBuildingDirtyElements), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugBuildingDirtyElements => + (super.noSuchMethod( + Invocation.getter(#debugBuildingDirtyElements), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get debugShowWidgetInspectorOverride => (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverride), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugShowWidgetInspectorOverride => + (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverride), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override _i7.ValueNotifier get debugShowWidgetInspectorOverrideNotifier => (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - returnValue: _FakeValueNotifier_6( - this, - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - ), - returnValueForMissingStub: _FakeValueNotifier_6( - this, - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - ), - ) as _i7.ValueNotifier); + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + returnValue: _FakeValueNotifier_6( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + returnValueForMissingStub: _FakeValueNotifier_6( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + ) + as _i7.ValueNotifier); @override _i7.ValueNotifier get debugWidgetInspectorSelectionOnTapEnabled => (super.noSuchMethod( - Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), - returnValue: _FakeValueNotifier_6( - this, - Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), - ), - returnValueForMissingStub: _FakeValueNotifier_6( - this, - Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), - ), - ) as _i7.ValueNotifier); + Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), + returnValue: _FakeValueNotifier_6( + this, + Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), + ), + returnValueForMissingStub: _FakeValueNotifier_6( + this, + Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), + ), + ) + as _i7.ValueNotifier); @override - bool get debugExcludeRootWidgetInspector => (super.noSuchMethod( - Invocation.getter(#debugExcludeRootWidgetInspector), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugExcludeRootWidgetInspector => + (super.noSuchMethod( + Invocation.getter(#debugExcludeRootWidgetInspector), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i8.FocusManager get focusManager => (super.noSuchMethod( - Invocation.getter(#focusManager), - returnValue: _FakeFocusManager_7( - this, - Invocation.getter(#focusManager), - ), - returnValueForMissingStub: _FakeFocusManager_7( - this, - Invocation.getter(#focusManager), - ), - ) as _i8.FocusManager); + _i8.FocusManager get focusManager => + (super.noSuchMethod( + Invocation.getter(#focusManager), + returnValue: _FakeFocusManager_7( + this, + Invocation.getter(#focusManager), + ), + returnValueForMissingStub: _FakeFocusManager_7( + this, + Invocation.getter(#focusManager), + ), + ) + as _i8.FocusManager); @override - bool get firstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#firstFrameRasterized), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get firstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#firstFrameRasterized), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Future get waitUntilFirstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#waitUntilFirstFrameRasterized), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future get waitUntilFirstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#waitUntilFirstFrameRasterized), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override - bool get debugDidSendFirstFrameEvent => (super.noSuchMethod( - Invocation.getter(#debugDidSendFirstFrameEvent), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugDidSendFirstFrameEvent => + (super.noSuchMethod( + Invocation.getter(#debugDidSendFirstFrameEvent), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get framesEnabled => (super.noSuchMethod( - Invocation.getter(#framesEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get framesEnabled => + (super.noSuchMethod( + Invocation.getter(#framesEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get isRootWidgetAttached => (super.noSuchMethod( - Invocation.getter(#isRootWidgetAttached), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get isRootWidgetAttached => + (super.noSuchMethod( + Invocation.getter(#isRootWidgetAttached), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i9.WindowingOwner get windowingOwner => (super.noSuchMethod( - Invocation.getter(#windowingOwner), - returnValue: _FakeWindowingOwner_8( - this, - Invocation.getter(#windowingOwner), - ), - returnValueForMissingStub: _FakeWindowingOwner_8( - this, - Invocation.getter(#windowingOwner), - ), - ) as _i9.WindowingOwner); + _i9.WindowingOwner get windowingOwner => + (super.noSuchMethod( + Invocation.getter(#windowingOwner), + returnValue: _FakeWindowingOwner_8( + this, + Invocation.getter(#windowingOwner), + ), + returnValueForMissingStub: _FakeWindowingOwner_8( + this, + Invocation.getter(#windowingOwner), + ), + ) + as _i9.WindowingOwner); @override set platformMenuDelegate(_i6.PlatformMenuDelegate? _platformMenuDelegate) => super.noSuchMethod( - Invocation.setter( - #platformMenuDelegate, - _platformMenuDelegate, - ), + Invocation.setter(#platformMenuDelegate, _platformMenuDelegate), returnValueForMissingStub: null, ); @@ -1375,770 +1106,719 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { @override set debugShowWidgetInspectorOverride(bool? value) => super.noSuchMethod( - Invocation.setter( - #debugShowWidgetInspectorOverride, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#debugShowWidgetInspectorOverride, value), + returnValueForMissingStub: null, + ); @override set debugExcludeRootWidgetInspector(bool? value) => super.noSuchMethod( - Invocation.setter( - #debugExcludeRootWidgetInspector, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#debugExcludeRootWidgetInspector, value), + returnValueForMissingStub: null, + ); @override set windowingOwner(_i9.WindowingOwner? owner) => super.noSuchMethod( - Invocation.setter( - #windowingOwner, - owner, - ), - returnValueForMissingStub: null, - ); - - @override - _i10.SingletonFlutterWindow get window => (super.noSuchMethod( - Invocation.getter(#window), - returnValue: _FakeSingletonFlutterWindow_9( - this, - Invocation.getter(#window), - ), - returnValueForMissingStub: _FakeSingletonFlutterWindow_9( - this, - Invocation.getter(#window), - ), - ) as _i10.SingletonFlutterWindow); + Invocation.setter(#windowingOwner, owner), + returnValueForMissingStub: null, + ); @override - _i10.PlatformDispatcher get platformDispatcher => (super.noSuchMethod( - Invocation.getter(#platformDispatcher), - returnValue: _FakePlatformDispatcher_10( - this, - Invocation.getter(#platformDispatcher), - ), - returnValueForMissingStub: _FakePlatformDispatcher_10( - this, - Invocation.getter(#platformDispatcher), - ), - ) as _i10.PlatformDispatcher); + _i10.SingletonFlutterWindow get window => + (super.noSuchMethod( + Invocation.getter(#window), + returnValue: _FakeSingletonFlutterWindow_9( + this, + Invocation.getter(#window), + ), + returnValueForMissingStub: _FakeSingletonFlutterWindow_9( + this, + Invocation.getter(#window), + ), + ) + as _i10.SingletonFlutterWindow); @override - bool get locked => (super.noSuchMethod( - Invocation.getter(#locked), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + _i10.PlatformDispatcher get platformDispatcher => + (super.noSuchMethod( + Invocation.getter(#platformDispatcher), + returnValue: _FakePlatformDispatcher_10( + this, + Invocation.getter(#platformDispatcher), + ), + returnValueForMissingStub: _FakePlatformDispatcher_10( + this, + Invocation.getter(#platformDispatcher), + ), + ) + as _i10.PlatformDispatcher); @override - _i7.ValueNotifier get accessibilityFocus => (super.noSuchMethod( - Invocation.getter(#accessibilityFocus), - returnValue: _FakeValueNotifier_6( - this, - Invocation.getter(#accessibilityFocus), - ), - returnValueForMissingStub: _FakeValueNotifier_6( - this, - Invocation.getter(#accessibilityFocus), - ), - ) as _i7.ValueNotifier); + bool get locked => + (super.noSuchMethod( + Invocation.getter(#locked), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i11.HardwareKeyboard get keyboard => (super.noSuchMethod( - Invocation.getter(#keyboard), - returnValue: _FakeHardwareKeyboard_11( - this, - Invocation.getter(#keyboard), - ), - returnValueForMissingStub: _FakeHardwareKeyboard_11( - this, - Invocation.getter(#keyboard), - ), - ) as _i11.HardwareKeyboard); + _i7.ValueNotifier get accessibilityFocus => + (super.noSuchMethod( + Invocation.getter(#accessibilityFocus), + returnValue: _FakeValueNotifier_6( + this, + Invocation.getter(#accessibilityFocus), + ), + returnValueForMissingStub: _FakeValueNotifier_6( + this, + Invocation.getter(#accessibilityFocus), + ), + ) + as _i7.ValueNotifier); @override - _i11.KeyEventManager get keyEventManager => (super.noSuchMethod( - Invocation.getter(#keyEventManager), - returnValue: _FakeKeyEventManager_12( - this, - Invocation.getter(#keyEventManager), - ), - returnValueForMissingStub: _FakeKeyEventManager_12( - this, - Invocation.getter(#keyEventManager), - ), - ) as _i11.KeyEventManager); + _i11.HardwareKeyboard get keyboard => + (super.noSuchMethod( + Invocation.getter(#keyboard), + returnValue: _FakeHardwareKeyboard_11( + this, + Invocation.getter(#keyboard), + ), + returnValueForMissingStub: _FakeHardwareKeyboard_11( + this, + Invocation.getter(#keyboard), + ), + ) + as _i11.HardwareKeyboard); @override - _i11.BinaryMessenger get defaultBinaryMessenger => (super.noSuchMethod( - Invocation.getter(#defaultBinaryMessenger), - returnValue: _FakeBinaryMessenger_13( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - returnValueForMissingStub: _FakeBinaryMessenger_13( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - ) as _i11.BinaryMessenger); + _i11.KeyEventManager get keyEventManager => + (super.noSuchMethod( + Invocation.getter(#keyEventManager), + returnValue: _FakeKeyEventManager_12( + this, + Invocation.getter(#keyEventManager), + ), + returnValueForMissingStub: _FakeKeyEventManager_12( + this, + Invocation.getter(#keyEventManager), + ), + ) + as _i11.KeyEventManager); @override - _i10.ChannelBuffers get channelBuffers => (super.noSuchMethod( - Invocation.getter(#channelBuffers), - returnValue: _FakeChannelBuffers_14( - this, - Invocation.getter(#channelBuffers), - ), - returnValueForMissingStub: _FakeChannelBuffers_14( - this, - Invocation.getter(#channelBuffers), - ), - ) as _i10.ChannelBuffers); + _i11.BinaryMessenger get defaultBinaryMessenger => + (super.noSuchMethod( + Invocation.getter(#defaultBinaryMessenger), + returnValue: _FakeBinaryMessenger_13( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + returnValueForMissingStub: _FakeBinaryMessenger_13( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + ) + as _i11.BinaryMessenger); @override - _i11.RestorationManager get restorationManager => (super.noSuchMethod( - Invocation.getter(#restorationManager), - returnValue: _FakeRestorationManager_15( - this, - Invocation.getter(#restorationManager), - ), - returnValueForMissingStub: _FakeRestorationManager_15( - this, - Invocation.getter(#restorationManager), - ), - ) as _i11.RestorationManager); + _i10.ChannelBuffers get channelBuffers => + (super.noSuchMethod( + Invocation.getter(#channelBuffers), + returnValue: _FakeChannelBuffers_14( + this, + Invocation.getter(#channelBuffers), + ), + returnValueForMissingStub: _FakeChannelBuffers_14( + this, + Invocation.getter(#channelBuffers), + ), + ) + as _i10.ChannelBuffers); @override - _i27.SchedulingStrategy get schedulingStrategy => (super.noSuchMethod( - Invocation.getter(#schedulingStrategy), - returnValue: ({ - required int priority, - required _i27.SchedulerBinding scheduler, - }) => - false, - returnValueForMissingStub: ({ - required int priority, - required _i27.SchedulerBinding scheduler, - }) => - false, - ) as _i27.SchedulingStrategy); + _i11.RestorationManager get restorationManager => + (super.noSuchMethod( + Invocation.getter(#restorationManager), + returnValue: _FakeRestorationManager_15( + this, + Invocation.getter(#restorationManager), + ), + returnValueForMissingStub: _FakeRestorationManager_15( + this, + Invocation.getter(#restorationManager), + ), + ) + as _i11.RestorationManager); @override - int get transientCallbackCount => (super.noSuchMethod( - Invocation.getter(#transientCallbackCount), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + _i27.SchedulingStrategy get schedulingStrategy => + (super.noSuchMethod( + Invocation.getter(#schedulingStrategy), + returnValue: + ({ + required int priority, + required _i27.SchedulerBinding scheduler, + }) => false, + returnValueForMissingStub: + ({ + required int priority, + required _i27.SchedulerBinding scheduler, + }) => false, + ) + as _i27.SchedulingStrategy); + + @override + int get transientCallbackCount => + (super.noSuchMethod( + Invocation.getter(#transientCallbackCount), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - _i4.Future get endOfFrame => (super.noSuchMethod( - Invocation.getter(#endOfFrame), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future get endOfFrame => + (super.noSuchMethod( + Invocation.getter(#endOfFrame), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override - bool get hasScheduledFrame => (super.noSuchMethod( - Invocation.getter(#hasScheduledFrame), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get hasScheduledFrame => + (super.noSuchMethod( + Invocation.getter(#hasScheduledFrame), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i27.SchedulerPhase get schedulerPhase => (super.noSuchMethod( - Invocation.getter(#schedulerPhase), - returnValue: _i27.SchedulerPhase.idle, - returnValueForMissingStub: _i27.SchedulerPhase.idle, - ) as _i27.SchedulerPhase); + _i27.SchedulerPhase get schedulerPhase => + (super.noSuchMethod( + Invocation.getter(#schedulerPhase), + returnValue: _i27.SchedulerPhase.idle, + returnValueForMissingStub: _i27.SchedulerPhase.idle, + ) + as _i27.SchedulerPhase); @override - Duration get currentFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - returnValueForMissingStub: _FakeDuration_16( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - ) as Duration); + Duration get currentFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentFrameTimeStamp), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + returnValueForMissingStub: _FakeDuration_16( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + ) + as Duration); @override - Duration get currentSystemFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentSystemFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - returnValueForMissingStub: _FakeDuration_16( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - ) as Duration); + Duration get currentSystemFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentSystemFrameTimeStamp), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + returnValueForMissingStub: _FakeDuration_16( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + ) + as Duration); @override set schedulingStrategy(_i27.SchedulingStrategy? _schedulingStrategy) => super.noSuchMethod( - Invocation.setter( - #schedulingStrategy, - _schedulingStrategy, - ), + Invocation.setter(#schedulingStrategy, _schedulingStrategy), returnValueForMissingStub: null, ); @override - _i12.PointerRouter get pointerRouter => (super.noSuchMethod( - Invocation.getter(#pointerRouter), - returnValue: _FakePointerRouter_17( - this, - Invocation.getter(#pointerRouter), - ), - returnValueForMissingStub: _FakePointerRouter_17( - this, - Invocation.getter(#pointerRouter), - ), - ) as _i12.PointerRouter); + _i12.PointerRouter get pointerRouter => + (super.noSuchMethod( + Invocation.getter(#pointerRouter), + returnValue: _FakePointerRouter_17( + this, + Invocation.getter(#pointerRouter), + ), + returnValueForMissingStub: _FakePointerRouter_17( + this, + Invocation.getter(#pointerRouter), + ), + ) + as _i12.PointerRouter); @override - _i12.GestureArenaManager get gestureArena => (super.noSuchMethod( - Invocation.getter(#gestureArena), - returnValue: _FakeGestureArenaManager_18( - this, - Invocation.getter(#gestureArena), - ), - returnValueForMissingStub: _FakeGestureArenaManager_18( - this, - Invocation.getter(#gestureArena), - ), - ) as _i12.GestureArenaManager); + _i12.GestureArenaManager get gestureArena => + (super.noSuchMethod( + Invocation.getter(#gestureArena), + returnValue: _FakeGestureArenaManager_18( + this, + Invocation.getter(#gestureArena), + ), + returnValueForMissingStub: _FakeGestureArenaManager_18( + this, + Invocation.getter(#gestureArena), + ), + ) + as _i12.GestureArenaManager); @override - _i12.PointerSignalResolver get pointerSignalResolver => (super.noSuchMethod( - Invocation.getter(#pointerSignalResolver), - returnValue: _FakePointerSignalResolver_19( - this, - Invocation.getter(#pointerSignalResolver), - ), - returnValueForMissingStub: _FakePointerSignalResolver_19( - this, - Invocation.getter(#pointerSignalResolver), - ), - ) as _i12.PointerSignalResolver); + _i12.PointerSignalResolver get pointerSignalResolver => + (super.noSuchMethod( + Invocation.getter(#pointerSignalResolver), + returnValue: _FakePointerSignalResolver_19( + this, + Invocation.getter(#pointerSignalResolver), + ), + returnValueForMissingStub: _FakePointerSignalResolver_19( + this, + Invocation.getter(#pointerSignalResolver), + ), + ) + as _i12.PointerSignalResolver); @override - bool get resamplingEnabled => (super.noSuchMethod( - Invocation.getter(#resamplingEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get resamplingEnabled => + (super.noSuchMethod( + Invocation.getter(#resamplingEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - Duration get samplingOffset => (super.noSuchMethod( - Invocation.getter(#samplingOffset), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#samplingOffset), - ), - returnValueForMissingStub: _FakeDuration_16( - this, - Invocation.getter(#samplingOffset), - ), - ) as Duration); + Duration get samplingOffset => + (super.noSuchMethod( + Invocation.getter(#samplingOffset), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#samplingOffset), + ), + returnValueForMissingStub: _FakeDuration_16( + this, + Invocation.getter(#samplingOffset), + ), + ) + as Duration); @override - _i12.SamplingClock get samplingClock => (super.noSuchMethod( - Invocation.getter(#samplingClock), - returnValue: _FakeSamplingClock_20( - this, - Invocation.getter(#samplingClock), - ), - returnValueForMissingStub: _FakeSamplingClock_20( - this, - Invocation.getter(#samplingClock), - ), - ) as _i12.SamplingClock); + _i12.SamplingClock get samplingClock => + (super.noSuchMethod( + Invocation.getter(#samplingClock), + returnValue: _FakeSamplingClock_20( + this, + Invocation.getter(#samplingClock), + ), + returnValueForMissingStub: _FakeSamplingClock_20( + this, + Invocation.getter(#samplingClock), + ), + ) + as _i12.SamplingClock); @override set resamplingEnabled(bool? _resamplingEnabled) => super.noSuchMethod( - Invocation.setter( - #resamplingEnabled, - _resamplingEnabled, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#resamplingEnabled, _resamplingEnabled), + returnValueForMissingStub: null, + ); @override set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( - Invocation.setter( - #samplingOffset, - _samplingOffset, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#samplingOffset, _samplingOffset), + returnValueForMissingStub: null, + ); @override - _i13.PipelineOwner get pipelineOwner => (super.noSuchMethod( - Invocation.getter(#pipelineOwner), - returnValue: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#pipelineOwner), - ), - returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#pipelineOwner), - ), - ) as _i13.PipelineOwner); + _i13.PipelineOwner get pipelineOwner => + (super.noSuchMethod( + Invocation.getter(#pipelineOwner), + returnValue: _i17.dummyValue<_i13.PipelineOwner>( + this, + Invocation.getter(#pipelineOwner), + ), + returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( + this, + Invocation.getter(#pipelineOwner), + ), + ) + as _i13.PipelineOwner); @override - _i13.RenderView get renderView => (super.noSuchMethod( - Invocation.getter(#renderView), - returnValue: _FakeRenderView_21( - this, - Invocation.getter(#renderView), - ), - returnValueForMissingStub: _FakeRenderView_21( - this, - Invocation.getter(#renderView), - ), - ) as _i13.RenderView); + _i13.RenderView get renderView => + (super.noSuchMethod( + Invocation.getter(#renderView), + returnValue: _FakeRenderView_21( + this, + Invocation.getter(#renderView), + ), + returnValueForMissingStub: _FakeRenderView_21( + this, + Invocation.getter(#renderView), + ), + ) + as _i13.RenderView); @override - _i13.MouseTracker get mouseTracker => (super.noSuchMethod( - Invocation.getter(#mouseTracker), - returnValue: _FakeMouseTracker_22( - this, - Invocation.getter(#mouseTracker), - ), - returnValueForMissingStub: _FakeMouseTracker_22( - this, - Invocation.getter(#mouseTracker), - ), - ) as _i13.MouseTracker); + _i13.MouseTracker get mouseTracker => + (super.noSuchMethod( + Invocation.getter(#mouseTracker), + returnValue: _FakeMouseTracker_22( + this, + Invocation.getter(#mouseTracker), + ), + returnValueForMissingStub: _FakeMouseTracker_22( + this, + Invocation.getter(#mouseTracker), + ), + ) + as _i13.MouseTracker); @override - _i13.PipelineOwner get rootPipelineOwner => (super.noSuchMethod( - Invocation.getter(#rootPipelineOwner), - returnValue: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#rootPipelineOwner), - ), - returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#rootPipelineOwner), - ), - ) as _i13.PipelineOwner); + _i13.PipelineOwner get rootPipelineOwner => + (super.noSuchMethod( + Invocation.getter(#rootPipelineOwner), + returnValue: _i17.dummyValue<_i13.PipelineOwner>( + this, + Invocation.getter(#rootPipelineOwner), + ), + returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( + this, + Invocation.getter(#rootPipelineOwner), + ), + ) + as _i13.PipelineOwner); @override - Iterable<_i13.RenderView> get renderViews => (super.noSuchMethod( - Invocation.getter(#renderViews), - returnValue: <_i13.RenderView>[], - returnValueForMissingStub: <_i13.RenderView>[], - ) as Iterable<_i13.RenderView>); + Iterable<_i13.RenderView> get renderViews => + (super.noSuchMethod( + Invocation.getter(#renderViews), + returnValue: <_i13.RenderView>[], + returnValueForMissingStub: <_i13.RenderView>[], + ) + as Iterable<_i13.RenderView>); @override - bool get sendFramesToEngine => (super.noSuchMethod( - Invocation.getter(#sendFramesToEngine), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get sendFramesToEngine => + (super.noSuchMethod( + Invocation.getter(#sendFramesToEngine), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get semanticsEnabled => (super.noSuchMethod( - Invocation.getter(#semanticsEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get semanticsEnabled => + (super.noSuchMethod( + Invocation.getter(#semanticsEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - int get debugOutstandingSemanticsHandles => (super.noSuchMethod( - Invocation.getter(#debugOutstandingSemanticsHandles), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get debugOutstandingSemanticsHandles => + (super.noSuchMethod( + Invocation.getter(#debugOutstandingSemanticsHandles), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - _i10.AccessibilityFeatures get accessibilityFeatures => (super.noSuchMethod( - Invocation.getter(#accessibilityFeatures), - returnValue: _FakeAccessibilityFeatures_23( - this, - Invocation.getter(#accessibilityFeatures), - ), - returnValueForMissingStub: _FakeAccessibilityFeatures_23( - this, - Invocation.getter(#accessibilityFeatures), - ), - ) as _i10.AccessibilityFeatures); + _i10.AccessibilityFeatures get accessibilityFeatures => + (super.noSuchMethod( + Invocation.getter(#accessibilityFeatures), + returnValue: _FakeAccessibilityFeatures_23( + this, + Invocation.getter(#accessibilityFeatures), + ), + returnValueForMissingStub: _FakeAccessibilityFeatures_23( + this, + Invocation.getter(#accessibilityFeatures), + ), + ) + as _i10.AccessibilityFeatures); @override - bool get disableAnimations => (super.noSuchMethod( - Invocation.getter(#disableAnimations), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get disableAnimations => + (super.noSuchMethod( + Invocation.getter(#disableAnimations), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override void initInstances() => super.noSuchMethod( - Invocation.method( - #initInstances, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initInstances, []), + returnValueForMissingStub: null, + ); @override void resetInternalState() => super.noSuchMethod( - Invocation.method( - #resetInternalState, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetInternalState, []), + returnValueForMissingStub: null, + ); @override void initServiceExtensions() => super.noSuchMethod( - Invocation.method( - #initServiceExtensions, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initServiceExtensions, []), + returnValueForMissingStub: null, + ); @override void addObserver(_i26.WidgetsBindingObserver? observer) => super.noSuchMethod( - Invocation.method( - #addObserver, - [observer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addObserver, [observer]), + returnValueForMissingStub: null, + ); @override bool removeObserver(_i26.WidgetsBindingObserver? observer) => (super.noSuchMethod( - Invocation.method( - #removeObserver, - [observer], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + Invocation.method(#removeObserver, [observer]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override _i4.Future<_i10.AppExitResponse> handleRequestAppExit() => (super.noSuchMethod( - Invocation.method( - #handleRequestAppExit, - [], - ), - returnValue: - _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), - returnValueForMissingStub: - _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), - ) as _i4.Future<_i10.AppExitResponse>); + Invocation.method(#handleRequestAppExit, []), + returnValue: _i4.Future<_i10.AppExitResponse>.value( + _i10.AppExitResponse.exit, + ), + returnValueForMissingStub: _i4.Future<_i10.AppExitResponse>.value( + _i10.AppExitResponse.exit, + ), + ) + as _i4.Future<_i10.AppExitResponse>); @override void handleMetricsChanged() => super.noSuchMethod( - Invocation.method( - #handleMetricsChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleMetricsChanged, []), + returnValueForMissingStub: null, + ); @override void handleTextScaleFactorChanged() => super.noSuchMethod( - Invocation.method( - #handleTextScaleFactorChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleTextScaleFactorChanged, []), + returnValueForMissingStub: null, + ); @override void handlePlatformBrightnessChanged() => super.noSuchMethod( - Invocation.method( - #handlePlatformBrightnessChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePlatformBrightnessChanged, []), + returnValueForMissingStub: null, + ); @override void handleAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method( - #handleAccessibilityFeaturesChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleAccessibilityFeaturesChanged, []), + returnValueForMissingStub: null, + ); @override void handleLocaleChanged() => super.noSuchMethod( - Invocation.method( - #handleLocaleChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleLocaleChanged, []), + returnValueForMissingStub: null, + ); @override void dispatchLocalesChanged(List<_i10.Locale>? locales) => super.noSuchMethod( - Invocation.method( - #dispatchLocalesChanged, - [locales], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispatchLocalesChanged, [locales]), + returnValueForMissingStub: null, + ); @override void dispatchAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method( - #dispatchAccessibilityFeaturesChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispatchAccessibilityFeaturesChanged, []), + returnValueForMissingStub: null, + ); @override - _i4.Future handlePopRoute() => (super.noSuchMethod( - Invocation.method( - #handlePopRoute, - [], - ), - returnValue: _i4.Future.value(false), - returnValueForMissingStub: _i4.Future.value(false), - ) as _i4.Future); + _i4.Future handlePopRoute() => + (super.noSuchMethod( + Invocation.method(#handlePopRoute, []), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) + as _i4.Future); @override - _i4.Future handlePushRoute(String? route) => (super.noSuchMethod( - Invocation.method( - #handlePushRoute, - [route], - ), - returnValue: _i4.Future.value(false), - returnValueForMissingStub: _i4.Future.value(false), - ) as _i4.Future); + _i4.Future handlePushRoute(String? route) => + (super.noSuchMethod( + Invocation.method(#handlePushRoute, [route]), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) + as _i4.Future); @override void handleAppLifecycleStateChanged(_i10.AppLifecycleState? state) => super.noSuchMethod( - Invocation.method( - #handleAppLifecycleStateChanged, - [state], - ), + Invocation.method(#handleAppLifecycleStateChanged, [state]), returnValueForMissingStub: null, ); @override void handleViewFocusChanged(_i10.ViewFocusEvent? event) => super.noSuchMethod( - Invocation.method( - #handleViewFocusChanged, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleViewFocusChanged, [event]), + returnValueForMissingStub: null, + ); @override void handleMemoryPressure() => super.noSuchMethod( - Invocation.method( - #handleMemoryPressure, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleMemoryPressure, []), + returnValueForMissingStub: null, + ); @override void drawFrame() => super.noSuchMethod( - Invocation.method( - #drawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawFrame, []), + returnValueForMissingStub: null, + ); @override _i14.Widget wrapWithDefaultView(_i14.Widget? rootWidget) => (super.noSuchMethod( - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - returnValue: _FakeWidget_24( - this, - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - ), - returnValueForMissingStub: _FakeWidget_24( - this, - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - ), - ) as _i14.Widget); + Invocation.method(#wrapWithDefaultView, [rootWidget]), + returnValue: _FakeWidget_24( + this, + Invocation.method(#wrapWithDefaultView, [rootWidget]), + ), + returnValueForMissingStub: _FakeWidget_24( + this, + Invocation.method(#wrapWithDefaultView, [rootWidget]), + ), + ) + as _i14.Widget); @override void scheduleAttachRootWidget(_i14.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #scheduleAttachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleAttachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachRootWidget(_i14.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #attachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachToBuildOwner(_i26.RootWidget? widget) => super.noSuchMethod( - Invocation.method( - #attachToBuildOwner, - [widget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachToBuildOwner, [widget]), + returnValueForMissingStub: null, + ); @override - _i4.Future performReassemble() => (super.noSuchMethod( - Invocation.method( - #performReassemble, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future performReassemble() => + (super.noSuchMethod( + Invocation.method(#performReassemble, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i10.Locale? computePlatformResolvedLocale( - List<_i10.Locale>? supportedLocales) => + List<_i10.Locale>? supportedLocales, + ) => (super.noSuchMethod( - Invocation.method( - #computePlatformResolvedLocale, - [supportedLocales], - ), - returnValueForMissingStub: null, - ) as _i10.Locale?); + Invocation.method(#computePlatformResolvedLocale, [ + supportedLocales, + ]), + returnValueForMissingStub: null, + ) + as _i10.Locale?); @override - bool debugCheckZone(String? entryPoint) => (super.noSuchMethod( - Invocation.method( - #debugCheckZone, - [entryPoint], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool debugCheckZone(String? entryPoint) => + (super.noSuchMethod( + Invocation.method(#debugCheckZone, [entryPoint]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override _i4.Future lockEvents(_i4.Future Function()? callback) => (super.noSuchMethod( - Invocation.method( - #lockEvents, - [callback], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#lockEvents, [callback]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override void unlocked() => super.noSuchMethod( - Invocation.method( - #unlocked, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#unlocked, []), + returnValueForMissingStub: null, + ); @override - _i4.Future reassembleApplication() => (super.noSuchMethod( - Invocation.method( - #reassembleApplication, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future reassembleApplication() => + (super.noSuchMethod( + Invocation.method(#reassembleApplication, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override void registerSignalServiceExtension({ required String? name, required _i7.AsyncCallback? callback, - }) => - super.noSuchMethod( - Invocation.method( - #registerSignalServiceExtension, - [], - { - #name: name, - #callback: callback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerSignalServiceExtension, [], { + #name: name, + #callback: callback, + }), + returnValueForMissingStub: null, + ); @override void registerBoolServiceExtension({ required String? name, required _i7.AsyncValueGetter? getter, required _i7.AsyncValueSetter? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerBoolServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerBoolServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); @override void registerNumericServiceExtension({ required String? name, required _i7.AsyncValueGetter? getter, required _i7.AsyncValueSetter? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerNumericServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerNumericServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); @override - void postEvent( - String? eventKind, - Map? eventData, - ) => + void postEvent(String? eventKind, Map? eventData) => super.noSuchMethod( - Invocation.method( - #postEvent, - [ - eventKind, - eventData, - ], - ), + Invocation.method(#postEvent, [eventKind, eventData]), returnValueForMissingStub: null, ); @@ -2147,96 +1827,68 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { required String? name, required _i7.AsyncValueGetter? getter, required _i7.AsyncValueSetter? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerStringServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerStringServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); @override void registerServiceExtension({ required String? name, required _i7.ServiceExtensionCallback? callback, - }) => - super.noSuchMethod( - Invocation.method( - #registerServiceExtension, - [], - { - #name: name, - #callback: callback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerServiceExtension, [], { + #name: name, + #callback: callback, + }), + returnValueForMissingStub: null, + ); @override - _i11.BinaryMessenger createBinaryMessenger() => (super.noSuchMethod( - Invocation.method( - #createBinaryMessenger, - [], - ), - returnValue: _FakeBinaryMessenger_13( - this, - Invocation.method( - #createBinaryMessenger, - [], - ), - ), - returnValueForMissingStub: _FakeBinaryMessenger_13( - this, - Invocation.method( - #createBinaryMessenger, - [], - ), - ), - ) as _i11.BinaryMessenger); + _i11.BinaryMessenger createBinaryMessenger() => + (super.noSuchMethod( + Invocation.method(#createBinaryMessenger, []), + returnValue: _FakeBinaryMessenger_13( + this, + Invocation.method(#createBinaryMessenger, []), + ), + returnValueForMissingStub: _FakeBinaryMessenger_13( + this, + Invocation.method(#createBinaryMessenger, []), + ), + ) + as _i11.BinaryMessenger); @override _i4.Future handleSystemMessage(Object? systemMessage) => (super.noSuchMethod( - Invocation.method( - #handleSystemMessage, - [systemMessage], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#handleSystemMessage, [systemMessage]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override void initLicenses() => super.noSuchMethod( - Invocation.method( - #initLicenses, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initLicenses, []), + returnValueForMissingStub: null, + ); @override void evict(String? asset) => super.noSuchMethod( - Invocation.method( - #evict, - [asset], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#evict, [asset]), + returnValueForMissingStub: null, + ); @override void readInitialLifecycleStateFromNativeWindow() => super.noSuchMethod( - Invocation.method( - #readInitialLifecycleStateFromNativeWindow, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#readInitialLifecycleStateFromNativeWindow, []), + returnValueForMissingStub: null, + ); @override _i4.Future<_i10.AppExitResponse> exitApplication( @@ -2244,77 +1896,57 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { int? exitCode = 0, ]) => (super.noSuchMethod( - Invocation.method( - #exitApplication, - [ - exitType, - exitCode, - ], - ), - returnValue: - _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), - returnValueForMissingStub: - _i4.Future<_i10.AppExitResponse>.value(_i10.AppExitResponse.exit), - ) as _i4.Future<_i10.AppExitResponse>); + Invocation.method(#exitApplication, [exitType, exitCode]), + returnValue: _i4.Future<_i10.AppExitResponse>.value( + _i10.AppExitResponse.exit, + ), + returnValueForMissingStub: _i4.Future<_i10.AppExitResponse>.value( + _i10.AppExitResponse.exit, + ), + ) + as _i4.Future<_i10.AppExitResponse>); @override - _i11.RestorationManager createRestorationManager() => (super.noSuchMethod( - Invocation.method( - #createRestorationManager, - [], - ), - returnValue: _FakeRestorationManager_15( - this, - Invocation.method( - #createRestorationManager, - [], - ), - ), - returnValueForMissingStub: _FakeRestorationManager_15( - this, - Invocation.method( - #createRestorationManager, - [], - ), - ), - ) as _i11.RestorationManager); + _i11.RestorationManager createRestorationManager() => + (super.noSuchMethod( + Invocation.method(#createRestorationManager, []), + returnValue: _FakeRestorationManager_15( + this, + Invocation.method(#createRestorationManager, []), + ), + returnValueForMissingStub: _FakeRestorationManager_15( + this, + Invocation.method(#createRestorationManager, []), + ), + ) + as _i11.RestorationManager); @override void setSystemUiChangeCallback(_i11.SystemUiChangeCallback? callback) => super.noSuchMethod( - Invocation.method( - #setSystemUiChangeCallback, - [callback], - ), + Invocation.method(#setSystemUiChangeCallback, [callback]), returnValueForMissingStub: null, ); @override - _i4.Future initializationComplete() => (super.noSuchMethod( - Invocation.method( - #initializationComplete, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future initializationComplete() => + (super.noSuchMethod( + Invocation.method(#initializationComplete, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override void addTimingsCallback(_i10.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #addTimingsCallback, - [callback], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addTimingsCallback, [callback]), + returnValueForMissingStub: null, + ); @override void removeTimingsCallback(_i10.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #removeTimingsCallback, - [callback], - ), + Invocation.method(#removeTimingsCallback, [callback]), returnValueForMissingStub: null, ); @@ -2326,90 +1958,62 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { _i28.Flow? flow, }) => (super.noSuchMethod( - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - returnValue: _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, ), - returnValueForMissingStub: _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, + returnValue: + _i17.ifNotNull( + _i17.dummyValueOrNull( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - ), - ) as _i4.Future); + returnValueForMissingStub: + _i17.ifNotNull( + _i17.dummyValueOrNull( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + ) + as _i4.Future); @override - bool handleEventLoopCallback() => (super.noSuchMethod( - Invocation.method( - #handleEventLoopCallback, - [], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool handleEventLoopCallback() => + (super.noSuchMethod( + Invocation.method(#handleEventLoopCallback, []), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override int scheduleFrameCallback( @@ -2418,65 +2022,58 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { bool? scheduleNewFrame = true, }) => (super.noSuchMethod( - Invocation.method( - #scheduleFrameCallback, - [callback], - { - #rescheduling: rescheduling, - #scheduleNewFrame: scheduleNewFrame, - }, - ), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + Invocation.method( + #scheduleFrameCallback, + [callback], + { + #rescheduling: rescheduling, + #scheduleNewFrame: scheduleNewFrame, + }, + ), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override void cancelFrameCallbackWithId(int? id) => super.noSuchMethod( - Invocation.method( - #cancelFrameCallbackWithId, - [id], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#cancelFrameCallbackWithId, [id]), + returnValueForMissingStub: null, + ); @override - bool debugAssertNoTransientCallbacks(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoTransientCallbacks, - [reason], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool debugAssertNoTransientCallbacks(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTransientCallbacks, [reason]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override bool debugAssertNoPendingPerformanceModeRequests(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoPendingPerformanceModeRequests, - [reason], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + Invocation.method(#debugAssertNoPendingPerformanceModeRequests, [ + reason, + ]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool debugAssertNoTimeDilation(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoTimeDilation, - [reason], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool debugAssertNoTimeDilation(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTimeDilation, [reason]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override void addPersistentFrameCallback(_i27.FrameCallback? callback) => super.noSuchMethod( - Invocation.method( - #addPersistentFrameCallback, - [callback], - ), + Invocation.method(#addPersistentFrameCallback, [callback]), returnValueForMissingStub: null, ); @@ -2484,148 +2081,99 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { void addPostFrameCallback( _i27.FrameCallback? callback, { String? debugLabel = 'callback', - }) => - super.noSuchMethod( - Invocation.method( - #addPostFrameCallback, - [callback], - {#debugLabel: debugLabel}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #addPostFrameCallback, + [callback], + {#debugLabel: debugLabel}, + ), + returnValueForMissingStub: null, + ); @override void ensureFrameCallbacksRegistered() => super.noSuchMethod( - Invocation.method( - #ensureFrameCallbacksRegistered, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureFrameCallbacksRegistered, []), + returnValueForMissingStub: null, + ); @override void ensureVisualUpdate() => super.noSuchMethod( - Invocation.method( - #ensureVisualUpdate, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureVisualUpdate, []), + returnValueForMissingStub: null, + ); @override void scheduleFrame() => super.noSuchMethod( - Invocation.method( - #scheduleFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleForcedFrame() => super.noSuchMethod( - Invocation.method( - #scheduleForcedFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleForcedFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleWarmUpFrame() => super.noSuchMethod( - Invocation.method( - #scheduleWarmUpFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleWarmUpFrame, []), + returnValueForMissingStub: null, + ); @override void resetEpoch() => super.noSuchMethod( - Invocation.method( - #resetEpoch, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetEpoch, []), + returnValueForMissingStub: null, + ); @override void handleBeginFrame(Duration? rawTimeStamp) => super.noSuchMethod( - Invocation.method( - #handleBeginFrame, - [rawTimeStamp], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleBeginFrame, [rawTimeStamp]), + returnValueForMissingStub: null, + ); @override _i27.PerformanceModeRequestHandle? requestPerformanceMode( - _i10.DartPerformanceMode? mode) => + _i10.DartPerformanceMode? mode, + ) => (super.noSuchMethod( - Invocation.method( - #requestPerformanceMode, - [mode], - ), - returnValueForMissingStub: null, - ) as _i27.PerformanceModeRequestHandle?); + Invocation.method(#requestPerformanceMode, [mode]), + returnValueForMissingStub: null, + ) + as _i27.PerformanceModeRequestHandle?); @override void handleDrawFrame() => super.noSuchMethod( - Invocation.method( - #handleDrawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleDrawFrame, []), + returnValueForMissingStub: null, + ); @override void cancelPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #cancelPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#cancelPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void handlePointerEvent(_i11.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handlePointerEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePointerEvent, [event]), + returnValueForMissingStub: null, + ); @override void hitTestInView( _i12.HitTestResult? result, _i10.Offset? position, int? viewId, - ) => - super.noSuchMethod( - Invocation.method( - #hitTestInView, - [ - result, - position, - viewId, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#hitTestInView, [result, position, viewId]), + returnValueForMissingStub: null, + ); @override - void hitTest( - _i12.HitTestResult? result, - _i10.Offset? position, - ) => + void hitTest(_i12.HitTestResult? result, _i10.Offset? position) => super.noSuchMethod( - Invocation.method( - #hitTest, - [ - result, - position, - ], - ), + Invocation.method(#hitTest, [result, position]), returnValueForMissingStub: null, ); @@ -2633,304 +2181,203 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { void dispatchEvent( _i11.PointerEvent? event, _i12.HitTestResult? hitTestResult, - ) => - super.noSuchMethod( - Invocation.method( - #dispatchEvent, - [ - event, - hitTestResult, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#dispatchEvent, [event, hitTestResult]), + returnValueForMissingStub: null, + ); @override void handleEvent( _i11.PointerEvent? event, _i12.HitTestEntry<_i12.HitTestTarget>? entry, - ) => - super.noSuchMethod( - Invocation.method( - #handleEvent, - [ - event, - entry, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#handleEvent, [event, entry]), + returnValueForMissingStub: null, + ); @override void resetGestureBinding() => super.noSuchMethod( - Invocation.method( - #resetGestureBinding, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetGestureBinding, []), + returnValueForMissingStub: null, + ); @override - _i13.PipelineOwner createRootPipelineOwner() => (super.noSuchMethod( - Invocation.method( - #createRootPipelineOwner, - [], - ), - returnValue: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.method( - #createRootPipelineOwner, - [], - ), - ), - returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.method( - #createRootPipelineOwner, - [], - ), - ), - ) as _i13.PipelineOwner); + _i13.PipelineOwner createRootPipelineOwner() => + (super.noSuchMethod( + Invocation.method(#createRootPipelineOwner, []), + returnValue: _i17.dummyValue<_i13.PipelineOwner>( + this, + Invocation.method(#createRootPipelineOwner, []), + ), + returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( + this, + Invocation.method(#createRootPipelineOwner, []), + ), + ) + as _i13.PipelineOwner); @override void addRenderView(_i13.RenderView? view) => super.noSuchMethod( - Invocation.method( - #addRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addRenderView, [view]), + returnValueForMissingStub: null, + ); @override void removeRenderView(_i13.RenderView? view) => super.noSuchMethod( - Invocation.method( - #removeRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeRenderView, [view]), + returnValueForMissingStub: null, + ); @override _i13.ViewConfiguration createViewConfigurationFor( - _i13.RenderView? renderView) => + _i13.RenderView? renderView, + ) => (super.noSuchMethod( - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - returnValue: _FakeViewConfiguration_25( - this, - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - ), - returnValueForMissingStub: _FakeViewConfiguration_25( - this, - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - ), - ) as _i13.ViewConfiguration); + Invocation.method(#createViewConfigurationFor, [renderView]), + returnValue: _FakeViewConfiguration_25( + this, + Invocation.method(#createViewConfigurationFor, [renderView]), + ), + returnValueForMissingStub: _FakeViewConfiguration_25( + this, + Invocation.method(#createViewConfigurationFor, [renderView]), + ), + ) + as _i13.ViewConfiguration); @override - _i10.SceneBuilder createSceneBuilder() => (super.noSuchMethod( - Invocation.method( - #createSceneBuilder, - [], - ), - returnValue: _FakeSceneBuilder_26( - this, - Invocation.method( - #createSceneBuilder, - [], - ), - ), - returnValueForMissingStub: _FakeSceneBuilder_26( - this, - Invocation.method( - #createSceneBuilder, - [], - ), - ), - ) as _i10.SceneBuilder); + _i10.SceneBuilder createSceneBuilder() => + (super.noSuchMethod( + Invocation.method(#createSceneBuilder, []), + returnValue: _FakeSceneBuilder_26( + this, + Invocation.method(#createSceneBuilder, []), + ), + returnValueForMissingStub: _FakeSceneBuilder_26( + this, + Invocation.method(#createSceneBuilder, []), + ), + ) + as _i10.SceneBuilder); @override - _i10.PictureRecorder createPictureRecorder() => (super.noSuchMethod( - Invocation.method( - #createPictureRecorder, - [], - ), - returnValue: _FakePictureRecorder_27( - this, - Invocation.method( - #createPictureRecorder, - [], - ), - ), - returnValueForMissingStub: _FakePictureRecorder_27( - this, - Invocation.method( - #createPictureRecorder, - [], - ), - ), - ) as _i10.PictureRecorder); + _i10.PictureRecorder createPictureRecorder() => + (super.noSuchMethod( + Invocation.method(#createPictureRecorder, []), + returnValue: _FakePictureRecorder_27( + this, + Invocation.method(#createPictureRecorder, []), + ), + returnValueForMissingStub: _FakePictureRecorder_27( + this, + Invocation.method(#createPictureRecorder, []), + ), + ) + as _i10.PictureRecorder); @override _i10.Canvas createCanvas(_i10.PictureRecorder? recorder) => (super.noSuchMethod( - Invocation.method( - #createCanvas, - [recorder], - ), - returnValue: _FakeCanvas_28( - this, - Invocation.method( - #createCanvas, - [recorder], - ), - ), - returnValueForMissingStub: _FakeCanvas_28( - this, - Invocation.method( - #createCanvas, - [recorder], - ), - ), - ) as _i10.Canvas); + Invocation.method(#createCanvas, [recorder]), + returnValue: _FakeCanvas_28( + this, + Invocation.method(#createCanvas, [recorder]), + ), + returnValueForMissingStub: _FakeCanvas_28( + this, + Invocation.method(#createCanvas, [recorder]), + ), + ) + as _i10.Canvas); @override void initMouseTracker([_i13.MouseTracker? tracker]) => super.noSuchMethod( - Invocation.method( - #initMouseTracker, - [tracker], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initMouseTracker, [tracker]), + returnValueForMissingStub: null, + ); @override void performSemanticsAction(_i10.SemanticsActionEvent? action) => super.noSuchMethod( - Invocation.method( - #performSemanticsAction, - [action], - ), + Invocation.method(#performSemanticsAction, [action]), returnValueForMissingStub: null, ); @override void deferFirstFrame() => super.noSuchMethod( - Invocation.method( - #deferFirstFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#deferFirstFrame, []), + returnValueForMissingStub: null, + ); @override void allowFirstFrame() => super.noSuchMethod( - Invocation.method( - #allowFirstFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#allowFirstFrame, []), + returnValueForMissingStub: null, + ); @override void resetFirstFrameSent() => super.noSuchMethod( - Invocation.method( - #resetFirstFrameSent, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetFirstFrameSent, []), + returnValueForMissingStub: null, + ); @override void addSemanticsEnabledListener(_i10.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addSemanticsEnabledListener, - [listener], - ), + Invocation.method(#addSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override void removeSemanticsEnabledListener(_i10.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeSemanticsEnabledListener, - [listener], - ), + Invocation.method(#removeSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override void addSemanticsActionListener( - _i7.ValueSetter<_i10.SemanticsActionEvent>? listener) => - super.noSuchMethod( - Invocation.method( - #addSemanticsActionListener, - [listener], - ), - returnValueForMissingStub: null, - ); + _i7.ValueSetter<_i10.SemanticsActionEvent>? listener, + ) => super.noSuchMethod( + Invocation.method(#addSemanticsActionListener, [listener]), + returnValueForMissingStub: null, + ); @override void removeSemanticsActionListener( - _i7.ValueSetter<_i10.SemanticsActionEvent>? listener) => - super.noSuchMethod( - Invocation.method( - #removeSemanticsActionListener, - [listener], - ), - returnValueForMissingStub: null, - ); + _i7.ValueSetter<_i10.SemanticsActionEvent>? listener, + ) => super.noSuchMethod( + Invocation.method(#removeSemanticsActionListener, [listener]), + returnValueForMissingStub: null, + ); @override - _i13.SemanticsHandle ensureSemantics() => (super.noSuchMethod( - Invocation.method( - #ensureSemantics, - [], - ), - returnValue: _FakeSemanticsHandle_29( - this, - Invocation.method( - #ensureSemantics, - [], - ), - ), - returnValueForMissingStub: _FakeSemanticsHandle_29( - this, - Invocation.method( - #ensureSemantics, - [], - ), - ), - ) as _i13.SemanticsHandle); + _i13.SemanticsHandle ensureSemantics() => + (super.noSuchMethod( + Invocation.method(#ensureSemantics, []), + returnValue: _FakeSemanticsHandle_29( + this, + Invocation.method(#ensureSemantics, []), + ), + returnValueForMissingStub: _FakeSemanticsHandle_29( + this, + Invocation.method(#ensureSemantics, []), + ), + ) + as _i13.SemanticsHandle); @override _i10.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => (super.noSuchMethod( - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - returnValue: _FakeSemanticsUpdateBuilder_30( - this, - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - ), - returnValueForMissingStub: _FakeSemanticsUpdateBuilder_30( - this, - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - ), - ) as _i10.SemanticsUpdateBuilder); + Invocation.method(#createSemanticsUpdateBuilder, []), + returnValue: _FakeSemanticsUpdateBuilder_30( + this, + Invocation.method(#createSemanticsUpdateBuilder, []), + ), + returnValueForMissingStub: _FakeSemanticsUpdateBuilder_30( + this, + Invocation.method(#createSemanticsUpdateBuilder, []), + ), + ) + as _i10.SemanticsUpdateBuilder); } From 7f886104f56046cb15fc4da601051e4d6fbf636d Mon Sep 17 00:00:00 2001 From: Sunita Prajapati Date: Mon, 27 Apr 2026 12:42:39 +0530 Subject: [PATCH 5/5] fix(mocks): regenerated mocks file to sync with workflow versions --- packages/core/lib/event.g.dart | 512 +-- packages/core/lib/state.g.dart | 277 +- packages/core/pubspec.yaml | 6 +- packages/core/test/mocks/mocks.mocks.dart | 3765 ++++++++++++--------- 4 files changed, 2576 insertions(+), 1984 deletions(-) diff --git a/packages/core/lib/event.g.dart b/packages/core/lib/event.g.dart index fd0610a..f9f9461 100644 --- a/packages/core/lib/event.g.dart +++ b/packages/core/lib/event.g.dart @@ -6,35 +6,34 @@ part of 'event.dart'; // JsonSerializableGenerator // ************************************************************************** -DestinationMetadata _$DestinationMetadataFromJson( - Map json, -) => DestinationMetadata( - bundled: - (json['bundled'] as List?)?.map((e) => e as String).toList() ?? - const [], - bundledIds: - (json['bundledIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - unbundled: - (json['unbundled'] as List?)?.map((e) => e as String).toList() ?? - const [], -); +DestinationMetadata _$DestinationMetadataFromJson(Map json) => + DestinationMetadata( + bundled: (json['bundled'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + bundledIds: (json['bundledIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + unbundled: (json['unbundled'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + ); Map _$DestinationMetadataToJson( - DestinationMetadata instance, -) => { - 'bundled': instance.bundled, - 'unbundled': instance.unbundled, - 'bundledIds': instance.bundledIds, -}; - -TrackEvent _$TrackEventFromJson(Map json) => - TrackEvent( - json['event'] as String, - properties: json['properties'] as Map?, - ) + DestinationMetadata instance) => + { + 'bundled': instance.bundled, + 'unbundled': instance.unbundled, + 'bundledIds': instance.bundledIds, + }; + +TrackEvent _$TrackEventFromJson(Map json) => TrackEvent( + json['event'] as String, + properties: json['properties'] as Map?, + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..userId = json['userId'] as String? @@ -46,8 +45,7 @@ TrackEvent _$TrackEventFromJson(Map json) => ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map, - ); + json['_metadata'] as Map); Map _$TrackEventToJson(TrackEvent instance) => { @@ -64,11 +62,11 @@ Map _$TrackEventToJson(TrackEvent instance) => IdentifyEvent _$IdentifyEventFromJson(Map json) => IdentifyEvent( - traits: json['traits'] == null - ? null - : UserTraits.fromJson(json['traits'] as Map), - userId: json['userId'] as String?, - ) + traits: json['traits'] == null + ? null + : UserTraits.fromJson(json['traits'] as Map), + userId: json['userId'] as String?, + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..timestamp = json['timestamp'] as String? @@ -79,8 +77,7 @@ IdentifyEvent _$IdentifyEventFromJson(Map json) => ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map, - ); + json['_metadata'] as Map); Map _$IdentifyEventToJson(IdentifyEvent instance) => { @@ -94,13 +91,12 @@ Map _$IdentifyEventToJson(IdentifyEvent instance) => 'traits': instance.traits?.toJson(), }; -GroupEvent _$GroupEventFromJson(Map json) => - GroupEvent( - json['groupId'] as String, - traits: json['traits'] == null - ? null - : GroupTraits.fromJson(json['traits'] as Map), - ) +GroupEvent _$GroupEventFromJson(Map json) => GroupEvent( + json['groupId'] as String, + traits: json['traits'] == null + ? null + : GroupTraits.fromJson(json['traits'] as Map), + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..userId = json['userId'] as String? @@ -112,8 +108,7 @@ GroupEvent _$GroupEventFromJson(Map json) => ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map, - ); + json['_metadata'] as Map); Map _$GroupEventToJson(GroupEvent instance) => { @@ -128,8 +123,10 @@ Map _$GroupEventToJson(GroupEvent instance) => 'traits': instance.traits?.toJson(), }; -AliasEvent _$AliasEventFromJson(Map json) => - AliasEvent(json['previousId'] as String, userId: json['userId'] as String?) +AliasEvent _$AliasEventFromJson(Map json) => AliasEvent( + json['previousId'] as String, + userId: json['userId'] as String?, + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..timestamp = json['timestamp'] as String? @@ -140,8 +137,7 @@ AliasEvent _$AliasEventFromJson(Map json) => ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map, - ); + json['_metadata'] as Map); Map _$AliasEventToJson(AliasEvent instance) => { @@ -155,11 +151,10 @@ Map _$AliasEventToJson(AliasEvent instance) => 'previousId': instance.previousId, }; -ScreenEvent _$ScreenEventFromJson(Map json) => - ScreenEvent( - json['name'] as String, - properties: json['properties'] as Map?, - ) +ScreenEvent _$ScreenEventFromJson(Map json) => ScreenEvent( + json['name'] as String, + properties: json['properties'] as Map?, + ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? ..userId = json['userId'] as String? @@ -171,8 +166,7 @@ ScreenEvent _$ScreenEventFromJson(Map json) => ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( - json['_metadata'] as Map, - ); + json['_metadata'] as Map); Map _$ScreenEventToJson(ScreenEvent instance) => { @@ -188,158 +182,206 @@ Map _$ScreenEventToJson(ScreenEvent instance) => }; UserTraits _$UserTraitsFromJson(Map json) => UserTraits( - address: json['address'] == null - ? null - : Address.fromJson(json['address'] as Map), - age: (json['age'] as num?)?.toInt(), - avatar: json['avatar'] as String?, - birthday: json['birthday'] as String?, - company: json['company'] == null - ? null - : Company.fromJson(json['company'] as Map), - createdAt: json['createdAt'] as String?, - description: json['description'] as String?, - email: json['email'] as String?, - firstName: json['firstName'] as String?, - gender: json['gender'] as String?, - id: json['id'] as String?, - lastName: json['lastName'] as String?, - name: json['name'] as String?, - phone: json['phone'] as String?, - title: json['title'] as String?, - username: json['username'] as String?, - website: json['website'] as String?, - custom: json['custom'] as Map?, -); - -Map _$UserTraitsToJson(UserTraits instance) => - { - 'custom': instance.custom, - 'address': ?instance.address?.toJson(), - 'company': ?instance.company?.toJson(), - 'age': ?instance.age, - 'avatar': ?instance.avatar, - 'birthday': ?instance.birthday, - 'createdAt': ?instance.createdAt, - 'description': ?instance.description, - 'email': ?instance.email, - 'firstName': ?instance.firstName, - 'gender': ?instance.gender, - 'id': ?instance.id, - 'lastName': ?instance.lastName, - 'name': ?instance.name, - 'phone': ?instance.phone, - 'title': ?instance.title, - 'username': ?instance.username, - 'website': ?instance.website, - }; + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + age: (json['age'] as num?)?.toInt(), + avatar: json['avatar'] as String?, + birthday: json['birthday'] as String?, + company: json['company'] == null + ? null + : Company.fromJson(json['company'] as Map), + createdAt: json['createdAt'] as String?, + description: json['description'] as String?, + email: json['email'] as String?, + firstName: json['firstName'] as String?, + gender: json['gender'] as String?, + id: json['id'] as String?, + lastName: json['lastName'] as String?, + name: json['name'] as String?, + phone: json['phone'] as String?, + title: json['title'] as String?, + username: json['username'] as String?, + website: json['website'] as String?, + custom: json['custom'] as Map?, + ); + +Map _$UserTraitsToJson(UserTraits instance) { + final val = { + 'custom': instance.custom, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('address', instance.address?.toJson()); + writeNotNull('company', instance.company?.toJson()); + writeNotNull('age', instance.age); + writeNotNull('avatar', instance.avatar); + writeNotNull('birthday', instance.birthday); + writeNotNull('createdAt', instance.createdAt); + writeNotNull('description', instance.description); + writeNotNull('email', instance.email); + writeNotNull('firstName', instance.firstName); + writeNotNull('gender', instance.gender); + writeNotNull('id', instance.id); + writeNotNull('lastName', instance.lastName); + writeNotNull('name', instance.name); + writeNotNull('phone', instance.phone); + writeNotNull('title', instance.title); + writeNotNull('username', instance.username); + writeNotNull('website', instance.website); + return val; +} GroupTraits _$GroupTraitsFromJson(Map json) => GroupTraits( - address: json['address'] == null - ? null - : Address.fromJson(json['address'] as Map), - avatar: json['avatar'] as String?, - createdAt: json['createdAt'] as String?, - description: json['description'] as String?, - email: json['email'] as String?, - employees: json['employees'] as String?, - id: json['id'] as String?, - industry: json['industry'] as String?, - name: json['name'] as String?, - phone: json['phone'] as String?, - plan: json['plan'] as String?, - website: json['website'] as String?, - custom: json['custom'] as Map?, -); - -Map _$GroupTraitsToJson(GroupTraits instance) => - { - 'custom': instance.custom, - 'address': ?instance.address?.toJson(), - 'avatar': ?instance.avatar, - 'createdAt': ?instance.createdAt, - 'description': ?instance.description, - 'email': ?instance.email, - 'employees': ?instance.employees, - 'id': ?instance.id, - 'industry': ?instance.industry, - 'name': ?instance.name, - 'phone': ?instance.phone, - 'website': ?instance.website, - 'plan': ?instance.plan, - }; + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + avatar: json['avatar'] as String?, + createdAt: json['createdAt'] as String?, + description: json['description'] as String?, + email: json['email'] as String?, + employees: json['employees'] as String?, + id: json['id'] as String?, + industry: json['industry'] as String?, + name: json['name'] as String?, + phone: json['phone'] as String?, + plan: json['plan'] as String?, + website: json['website'] as String?, + custom: json['custom'] as Map?, + ); + +Map _$GroupTraitsToJson(GroupTraits instance) { + final val = { + 'custom': instance.custom, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('address', instance.address?.toJson()); + writeNotNull('avatar', instance.avatar); + writeNotNull('createdAt', instance.createdAt); + writeNotNull('description', instance.description); + writeNotNull('email', instance.email); + writeNotNull('employees', instance.employees); + writeNotNull('id', instance.id); + writeNotNull('industry', instance.industry); + writeNotNull('name', instance.name); + writeNotNull('phone', instance.phone); + writeNotNull('website', instance.website); + writeNotNull('plan', instance.plan); + return val; +} Address _$AddressFromJson(Map json) => Address( - city: json['city'] as String?, - country: json['country'] as String?, - postalCode: json['postalCode'] as String?, - state: json['state'] as String?, - street: json['street'] as String?, - custom: json['custom'] as Map?, -); - -Map _$AddressToJson(Address instance) => { - 'custom': instance.custom, - 'city': ?instance.city, - 'country': ?instance.country, - 'postalCode': ?instance.postalCode, - 'state': ?instance.state, - 'street': ?instance.street, -}; + city: json['city'] as String?, + country: json['country'] as String?, + postalCode: json['postalCode'] as String?, + state: json['state'] as String?, + street: json['street'] as String?, + custom: json['custom'] as Map?, + ); + +Map _$AddressToJson(Address instance) { + final val = { + 'custom': instance.custom, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('city', instance.city); + writeNotNull('country', instance.country); + writeNotNull('postalCode', instance.postalCode); + writeNotNull('state', instance.state); + writeNotNull('street', instance.street); + return val; +} Company _$CompanyFromJson(Map json) => Company( - employeeCount: (json['employeeCount'] as num?)?.toInt(), - id: json['id'] as String?, - industry: json['industry'] as String?, - name: json['name'] as String?, - plan: json['plan'] as String?, - custom: json['custom'] as Map?, -); - -Map _$CompanyToJson(Company instance) => { - 'custom': instance.custom, - 'name': ?instance.name, - 'id': ?instance.id, - 'industry': ?instance.industry, - 'employeeCount': ?instance.employeeCount, - 'plan': ?instance.plan, -}; + employeeCount: (json['employeeCount'] as num?)?.toInt(), + id: json['id'] as String?, + industry: json['industry'] as String?, + name: json['name'] as String?, + plan: json['plan'] as String?, + custom: json['custom'] as Map?, + ); + +Map _$CompanyToJson(Company instance) { + final val = { + 'custom': instance.custom, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('name', instance.name); + writeNotNull('id', instance.id); + writeNotNull('industry', instance.industry); + writeNotNull('employeeCount', instance.employeeCount); + writeNotNull('plan', instance.plan); + return val; +} Context _$ContextFromJson(Map json) => Context( - ContextApp.fromJson(json['app'] as Map), - ContextDevice.fromJson(json['device'] as Map), - ContextLibrary.fromJson(json['library'] as Map), - json['locale'] as String, - ContextNetwork.fromJson(json['network'] as Map), - ContextOS.fromJson(json['os'] as Map), - ContextScreen.fromJson(json['screen'] as Map), - json['timezone'] as String, - UserTraits.fromJson(json['traits'] as Map), - instanceId: json['instanceId'] as String?, - custom: json['custom'] as Map?, -); - -Map _$ContextToJson(Context instance) => { - 'custom': instance.custom, - 'app': instance.app.toJson(), - 'device': instance.device.toJson(), - 'library': instance.library.toJson(), - 'locale': instance.locale, - 'network': instance.network.toJson(), - 'os': instance.os.toJson(), - 'screen': instance.screen.toJson(), - 'timezone': instance.timezone, - 'instanceId': ?instance.instanceId, - 'traits': instance.traits.toJson(), -}; + ContextApp.fromJson(json['app'] as Map), + ContextDevice.fromJson(json['device'] as Map), + ContextLibrary.fromJson(json['library'] as Map), + json['locale'] as String, + ContextNetwork.fromJson(json['network'] as Map), + ContextOS.fromJson(json['os'] as Map), + ContextScreen.fromJson(json['screen'] as Map), + json['timezone'] as String, + UserTraits.fromJson(json['traits'] as Map), + instanceId: json['instanceId'] as String?, + custom: json['custom'] as Map?, + ); + +Map _$ContextToJson(Context instance) { + final val = { + 'custom': instance.custom, + 'app': instance.app.toJson(), + 'device': instance.device.toJson(), + 'library': instance.library.toJson(), + 'locale': instance.locale, + 'network': instance.network.toJson(), + 'os': instance.os.toJson(), + 'screen': instance.screen.toJson(), + 'timezone': instance.timezone, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('instanceId', instance.instanceId); + val['traits'] = instance.traits.toJson(); + return val; +} ContextApp _$ContextAppFromJson(Map json) => ContextApp( - json['build'] as String, - json['name'] as String, - json['namespace'] as String, - json['version'] as String, - custom: json['custom'] as Map?, -); + json['build'] as String, + json['name'] as String, + json['namespace'] as String, + json['version'] as String, + custom: json['custom'] as Map?, + ); Map _$ContextAppToJson(ContextApp instance) => { @@ -364,19 +406,28 @@ ContextDevice _$ContextDeviceFromJson(Map json) => custom: json['custom'] as Map?, ); -Map _$ContextDeviceToJson(ContextDevice instance) => - { - 'custom': instance.custom, - 'id': ?instance.id, - 'manufacturer': instance.manufacturer, - 'model': instance.model, - 'name': instance.name, - 'type': instance.type, - 'adTrackingEnabled': ?instance.adTrackingEnabled, - 'advertisingId': ?instance.advertisingId, - 'trackingStatus': ?instance.trackingStatus, - 'token': ?instance.token, - }; +Map _$ContextDeviceToJson(ContextDevice instance) { + final val = { + 'custom': instance.custom, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('id', instance.id); + val['manufacturer'] = instance.manufacturer; + val['model'] = instance.model; + val['name'] = instance.name; + val['type'] = instance.type; + writeNotNull('adTrackingEnabled', instance.adTrackingEnabled); + writeNotNull('advertisingId', instance.advertisingId); + writeNotNull('trackingStatus', instance.trackingStatus); + writeNotNull('token', instance.token); + return val; +} ContextLibrary _$ContextLibraryFromJson(Map json) => ContextLibrary( @@ -393,16 +444,16 @@ Map _$ContextLibraryToJson(ContextLibrary instance) => }; ContextOS _$ContextOSFromJson(Map json) => ContextOS( - json['name'] as String, - json['version'] as String, - custom: json['custom'] as Map?, -); + json['name'] as String, + json['version'] as String, + custom: json['custom'] as Map?, + ); Map _$ContextOSToJson(ContextOS instance) => { - 'custom': instance.custom, - 'name': instance.name, - 'version': instance.version, -}; + 'custom': instance.custom, + 'name': instance.name, + 'version': instance.version, + }; ContextNetwork _$ContextNetworkFromJson(Map json) => ContextNetwork( @@ -428,10 +479,19 @@ ContextScreen _$ContextScreenFromJson(Map json) => custom: json['custom'] as Map?, ); -Map _$ContextScreenToJson(ContextScreen instance) => - { - 'custom': instance.custom, - 'height': instance.height, - 'width': instance.width, - 'density': ?instance.density, - }; +Map _$ContextScreenToJson(ContextScreen instance) { + final val = { + 'custom': instance.custom, + 'height': instance.height, + 'width': instance.width, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('density', instance.density); + return val; +} diff --git a/packages/core/lib/state.g.dart b/packages/core/lib/state.g.dart index a391bb1..bb848e3 100644 --- a/packages/core/lib/state.g.dart +++ b/packages/core/lib/state.g.dart @@ -7,33 +7,51 @@ part of 'state.dart'; // ************************************************************************** UserInfo _$UserInfoFromJson(Map json) => UserInfo( - json['anonymousId'] as String, - userId: json['userId'] as String?, - groupTraits: json['groupTraits'] == null - ? null - : GroupTraits.fromJson(json['groupTraits'] as Map), - userTraits: json['userTraits'] == null - ? null - : UserTraits.fromJson(json['userTraits'] as Map), -); - -Map _$UserInfoToJson(UserInfo instance) => { - 'anonymousId': instance.anonymousId, - 'userId': ?instance.userId, - 'userTraits': ?instance.userTraits?.toJson(), - 'groupTraits': ?instance.groupTraits?.toJson(), -}; + json['anonymousId'] as String, + userId: json['userId'] as String?, + groupTraits: json['groupTraits'] == null + ? null + : GroupTraits.fromJson(json['groupTraits'] as Map), + userTraits: json['userTraits'] == null + ? null + : UserTraits.fromJson(json['userTraits'] as Map), + ); + +Map _$UserInfoToJson(UserInfo instance) { + final val = { + 'anonymousId': instance.anonymousId, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('userId', instance.userId); + writeNotNull('userTraits', instance.userTraits?.toJson()); + writeNotNull('groupTraits', instance.groupTraits?.toJson()); + return val; +} DeepLinkData _$DeepLinkDataFromJson(Map json) => DeepLinkData( - json['referringApplication'] as String?, - json['url'] as String, -); + json['referringApplication'] as String?, + json['url'] as String, + ); -Map _$DeepLinkDataToJson(DeepLinkData instance) => - { - 'referringApplication': ?instance.referringApplication, - 'url': instance.url, - }; +Map _$DeepLinkDataToJson(DeepLinkData instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('referringApplication', instance.referringApplication); + val['url'] = instance.url; + return val; +} SegmentAPISettings _$SegmentAPISettingsFromJson(Map json) => SegmentAPISettings( @@ -41,20 +59,27 @@ SegmentAPISettings _$SegmentAPISettingsFromJson(Map json) => middlewareSettings: json['middlewareSettings'] == null ? null : MiddlewareSettings.fromJson( - json['middlewareSettings'] as Map, - ), + json['middlewareSettings'] as Map), ); -Map _$SegmentAPISettingsToJson(SegmentAPISettings instance) => - { - 'integrations': instance.integrations, - 'middlewareSettings': ?instance.middlewareSettings?.toJson(), - }; +Map _$SegmentAPISettingsToJson(SegmentAPISettings instance) { + final val = { + 'integrations': instance.integrations, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('middlewareSettings', instance.middlewareSettings?.toJson()); + return val; +} MiddlewareSettings _$MiddlewareSettingsFromJson(Map json) => MiddlewareSettings( - routingRules: - (json['routingRules'] as List?) + routingRules: (json['routingRules'] as List?) ?.map((e) => RoutingRule.fromJson(e as Map)) .toList() ?? const [], @@ -66,56 +91,72 @@ Map _$MiddlewareSettingsToJson(MiddlewareSettings instance) => }; RoutingRule _$RoutingRuleFromJson(Map json) => RoutingRule( - json['scope'] as String, - json['target_type'] as String, - destinationName: json['destinationName'] as String?, - matchers: - (json['matchers'] as List?) - ?.map((e) => Matcher.fromJson(e as Map)) - .toList() ?? - const [], - transformers: - (json['transformers'] as List?) - ?.map( - (e) => (e as List) - .map((e) => Transformer.fromJson(e as Map)) - .toList(), - ) - .toList() ?? - const [], -); - -Map _$RoutingRuleToJson(RoutingRule instance) => - { - 'scope': instance.scope, - 'target_type': instance.targetType, - 'matchers': instance.matchers.map((e) => e.toJson()).toList(), - 'transformers': instance.transformers - .map((e) => e.map((e) => e.toJson()).toList()) - .toList(), - 'destinationName': ?instance.destinationName, - }; + json['scope'] as String, + json['target_type'] as String, + destinationName: json['destinationName'] as String?, + matchers: (json['matchers'] as List?) + ?.map((e) => Matcher.fromJson(e as Map)) + .toList() ?? + const [], + transformers: (json['transformers'] as List?) + ?.map((e) => (e as List) + .map((e) => Transformer.fromJson(e as Map)) + .toList()) + .toList() ?? + const [], + ); -Matcher _$MatcherFromJson(Map json) => - Matcher(json['type'] as String, json['ir'] as String); +Map _$RoutingRuleToJson(RoutingRule instance) { + final val = { + 'scope': instance.scope, + 'target_type': instance.targetType, + 'matchers': instance.matchers.map((e) => e.toJson()).toList(), + 'transformers': instance.transformers + .map((e) => e.map((e) => e.toJson()).toList()) + .toList(), + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('destinationName', instance.destinationName); + return val; +} + +Matcher _$MatcherFromJson(Map json) => Matcher( + json['type'] as String, + json['ir'] as String, + ); Map _$MatcherToJson(Matcher instance) => { - 'type': instance.type, - 'ir': instance.ir, -}; + 'type': instance.type, + 'ir': instance.ir, + }; Transformer _$TransformerFromJson(Map json) => Transformer( - json['type'] as String, - config: json['config'] == null - ? null - : TransformerConfig.fromJson(json['config'] as Map), -); + json['type'] as String, + config: json['config'] == null + ? null + : TransformerConfig.fromJson(json['config'] as Map), + ); -Map _$TransformerToJson(Transformer instance) => - { - 'type': instance.type, - 'config': ?instance.config?.toJson(), - }; +Map _$TransformerToJson(Transformer instance) { + final val = { + 'type': instance.type, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('config', instance.config?.toJson()); + return val; +} TransformerConfig _$TransformerConfigFromJson(Map json) => TransformerConfig( @@ -129,50 +170,66 @@ TransformerConfig _$TransformerConfigFromJson(Map json) => ), map: (json['map'] as Map?)?.map( (k, e) => MapEntry( - k, - TransformerConfigMap.fromJson(e as Map), - ), + k, TransformerConfigMap.fromJson(e as Map)), ), sample: json['sample'] == null ? null : TransformerConfigSample.fromJson( - json['sample'] as Map, - ), + json['sample'] as Map), ); -Map _$TransformerConfigToJson(TransformerConfig instance) => - { - 'allow': ?instance.allow, - 'drop': ?instance.drop, - 'sample': ?instance.sample?.toJson(), - 'map': ?instance.map?.map((k, e) => MapEntry(k, e.toJson())), - }; +Map _$TransformerConfigToJson(TransformerConfig instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('allow', instance.allow); + writeNotNull('drop', instance.drop); + writeNotNull('sample', instance.sample?.toJson()); + writeNotNull('map', instance.map?.map((k, e) => MapEntry(k, e.toJson()))); + return val; +} TransformerConfigSample _$TransformerConfigSampleFromJson( - Map json, -) => TransformerConfigSample( - (json['percent'] as num).toInt(), - json['path'] as String, -); + Map json) => + TransformerConfigSample( + (json['percent'] as num).toInt(), + json['path'] as String, + ); Map _$TransformerConfigSampleToJson( - TransformerConfigSample instance, -) => {'percent': instance.percent, 'path': instance.path}; + TransformerConfigSample instance) => + { + 'percent': instance.percent, + 'path': instance.path, + }; TransformerConfigMap _$TransformerConfigMapFromJson( - Map json, -) => TransformerConfigMap( - copy: json['copy'] as String?, - move: json['move'] as String?, - set: json['set'], - enableToString: json['to_string'] as bool?, -); + Map json) => + TransformerConfigMap( + copy: json['copy'] as String?, + move: json['move'] as String?, + set: json['set'], + enableToString: json['to_string'] as bool?, + ); Map _$TransformerConfigMapToJson( - TransformerConfigMap instance, -) => { - 'set': ?instance.set, - 'copy': ?instance.copy, - 'move': ?instance.move, - 'to_string': ?instance.enableToString, -}; + TransformerConfigMap instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('set', instance.set); + writeNotNull('copy', instance.copy); + writeNotNull('move', instance.move); + writeNotNull('to_string', instance.enableToString); + return val; +} diff --git a/packages/core/pubspec.yaml b/packages/core/pubspec.yaml index 126c732..1f50bd9 100644 --- a/packages/core/pubspec.yaml +++ b/packages/core/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/segmentio/analytics_flutter/tree/main/packages/co issue_tracker: https://github.com/segmentio/analytics_flutter/issues environment: - sdk: '>=3.8.0 <4.0.0' + sdk: '>=3.2.0 <4.0.0' flutter: ">=3.16.0" dependencies: @@ -31,8 +31,8 @@ dev_dependencies: sdk: flutter fake_async: ^1.0.0 flutter_lints: ^5.0.0 - json_serializable: ^6.8.0 - pigeon: ^25.3.1 + json_serializable: '>=6.8.0 <6.9.0' + pigeon: ^22.7.2 mockito: ^5.3.2 flutter: diff --git a/packages/core/test/mocks/mocks.mocks.dart b/packages/core/test/mocks/mocks.mocks.dart index efa1263..ca0ec9e 100644 --- a/packages/core/test/mocks/mocks.mocks.dart +++ b/packages/core/test/mocks/mocks.mocks.dart @@ -1,37 +1,36 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in segment_analytics/test/mocks/mocks.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; import 'dart:convert' as _i2; -import 'dart:developer' as _i28; -import 'dart:typed_data' as _i16; -import 'dart:ui' as _i10; +import 'dart:developer' as _i27; +import 'dart:typed_data' as _i15; +import 'dart:ui' as _i9; import 'package:flutter/foundation.dart' as _i7; -import 'package:flutter/gestures.dart' as _i12; -import 'package:flutter/rendering.dart' as _i13; -import 'package:flutter/scheduler.dart' as _i27; -import 'package:flutter/services.dart' as _i11; -import 'package:flutter/src/widgets/_window.dart' as _i9; -import 'package:flutter/src/widgets/binding.dart' as _i26; +import 'package:flutter/gestures.dart' as _i11; +import 'package:flutter/rendering.dart' as _i12; +import 'package:flutter/scheduler.dart' as _i26; +import 'package:flutter/services.dart' as _i10; +import 'package:flutter/src/widgets/binding.dart' as _i25; import 'package:flutter/src/widgets/focus_manager.dart' as _i8; -import 'package:flutter/src/widgets/framework.dart' as _i14; +import 'package:flutter/src/widgets/framework.dart' as _i13; import 'package:flutter/src/widgets/platform_menu_bar.dart' as _i6; import 'package:http/http.dart' as _i3; -import 'package:http/src/byte_stream.dart' as _i18; -import 'package:logger/logger.dart' as _i25; +import 'package:http/src/byte_stream.dart' as _i17; +import 'package:logger/logger.dart' as _i24; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i17; -import 'package:segment_analytics/event.dart' as _i20; -import 'package:segment_analytics/flush_policies/flush_policy.dart' as _i23; -import 'package:segment_analytics/logger.dart' as _i15; +import 'package:mockito/src/dummies.dart' as _i16; +import 'package:segment_analytics/event.dart' as _i19; +import 'package:segment_analytics/flush_policies/flush_policy.dart' as _i22; +import 'package:segment_analytics/logger.dart' as _i14; import 'package:segment_analytics/native_context.dart' as _i5; -import 'package:segment_analytics/state.dart' as _i21; -import 'package:segment_analytics/utils/http_client.dart' as _i19; -import 'package:segment_analytics/utils/store/store.dart' as _i22; -import 'package:state_notifier/state_notifier.dart' as _i24; +import 'package:segment_analytics/state.dart' as _i20; +import 'package:segment_analytics/utils/http_client.dart' as _i18; +import 'package:segment_analytics/utils/store/store.dart' as _i21; +import 'package:state_notifier/state_notifier.dart' as _i23; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -41,7 +40,6 @@ import 'package:state_notifier/state_notifier.dart' as _i24; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member -// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -49,152 +47,281 @@ import 'package:state_notifier/state_notifier.dart' as _i24; // ignore_for_file: invalid_use_of_internal_member class _FakeEncoding_0 extends _i1.SmartFake implements _i2.Encoding { - _FakeEncoding_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeEncoding_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeUri_1 extends _i1.SmartFake implements Uri { - _FakeUri_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeUri_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeStreamedResponse_2 extends _i1.SmartFake implements _i3.StreamedResponse { - _FakeStreamedResponse_2(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeStreamedResponse_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeFuture_3 extends _i1.SmartFake implements _i4.Future { - _FakeFuture_3(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeFuture_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeNativeContext_4 extends _i1.SmartFake implements _i5.NativeContext { - _FakeNativeContext_4(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeNativeContext_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakePlatformMenuDelegate_5 extends _i1.SmartFake implements _i6.PlatformMenuDelegate { - _FakePlatformMenuDelegate_5(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakePlatformMenuDelegate_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeValueNotifier_6 extends _i1.SmartFake implements _i7.ValueNotifier { - _FakeValueNotifier_6(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeValueNotifier_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeFocusManager_7 extends _i1.SmartFake implements _i8.FocusManager { - _FakeFocusManager_7(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeFocusManager_7( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); @override String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } -class _FakeWindowingOwner_8 extends _i1.SmartFake - implements _i9.WindowingOwner { - _FakeWindowingOwner_8(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeSingletonFlutterWindow_8 extends _i1.SmartFake + implements _i9.SingletonFlutterWindow { + _FakeSingletonFlutterWindow_8( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeSingletonFlutterWindow_9 extends _i1.SmartFake - implements _i10.SingletonFlutterWindow { - _FakeSingletonFlutterWindow_9(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakePlatformDispatcher_9 extends _i1.SmartFake + implements _i9.PlatformDispatcher { + _FakePlatformDispatcher_9( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakePlatformDispatcher_10 extends _i1.SmartFake - implements _i10.PlatformDispatcher { - _FakePlatformDispatcher_10(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeHardwareKeyboard_10 extends _i1.SmartFake + implements _i10.HardwareKeyboard { + _FakeHardwareKeyboard_10( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeHardwareKeyboard_11 extends _i1.SmartFake - implements _i11.HardwareKeyboard { - _FakeHardwareKeyboard_11(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeKeyEventManager_11 extends _i1.SmartFake + implements _i10.KeyEventManager { + _FakeKeyEventManager_11( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeKeyEventManager_12 extends _i1.SmartFake - implements _i11.KeyEventManager { - _FakeKeyEventManager_12(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeBinaryMessenger_12 extends _i1.SmartFake + implements _i10.BinaryMessenger { + _FakeBinaryMessenger_12( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeBinaryMessenger_13 extends _i1.SmartFake - implements _i11.BinaryMessenger { - _FakeBinaryMessenger_13(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeChannelBuffers_13 extends _i1.SmartFake + implements _i9.ChannelBuffers { + _FakeChannelBuffers_13( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeChannelBuffers_14 extends _i1.SmartFake - implements _i10.ChannelBuffers { - _FakeChannelBuffers_14(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeRestorationManager_14 extends _i1.SmartFake + implements _i10.RestorationManager { + _FakeRestorationManager_14( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeRestorationManager_15 extends _i1.SmartFake - implements _i11.RestorationManager { - _FakeRestorationManager_15(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeDuration_15 extends _i1.SmartFake implements Duration { + _FakeDuration_15( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeDuration_16 extends _i1.SmartFake implements Duration { - _FakeDuration_16(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakePointerRouter_16 extends _i1.SmartFake + implements _i11.PointerRouter { + _FakePointerRouter_16( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakePointerRouter_17 extends _i1.SmartFake - implements _i12.PointerRouter { - _FakePointerRouter_17(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeGestureArenaManager_17 extends _i1.SmartFake + implements _i11.GestureArenaManager { + _FakeGestureArenaManager_17( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeGestureArenaManager_18 extends _i1.SmartFake - implements _i12.GestureArenaManager { - _FakeGestureArenaManager_18(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakePointerSignalResolver_18 extends _i1.SmartFake + implements _i11.PointerSignalResolver { + _FakePointerSignalResolver_18( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakePointerSignalResolver_19 extends _i1.SmartFake - implements _i12.PointerSignalResolver { - _FakePointerSignalResolver_19(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeSamplingClock_19 extends _i1.SmartFake + implements _i11.SamplingClock { + _FakeSamplingClock_19( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeSamplingClock_20 extends _i1.SmartFake - implements _i12.SamplingClock { - _FakeSamplingClock_20(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakePipelineOwner_20 extends _i1.SmartFake + implements _i12.PipelineOwner { + _FakePipelineOwner_20( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); + + @override + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => + super.toString(); } -class _FakeRenderView_21 extends _i1.SmartFake implements _i13.RenderView { - _FakeRenderView_21(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeRenderView_21 extends _i1.SmartFake implements _i12.RenderView { + _FakeRenderView_21( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); @override String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } -class _FakeMouseTracker_22 extends _i1.SmartFake implements _i13.MouseTracker { - _FakeMouseTracker_22(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeMouseTracker_22 extends _i1.SmartFake implements _i12.MouseTracker { + _FakeMouseTracker_22( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeAccessibilityFeatures_23 extends _i1.SmartFake - implements _i10.AccessibilityFeatures { - _FakeAccessibilityFeatures_23(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + implements _i9.AccessibilityFeatures { + _FakeAccessibilityFeatures_23( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeWidget_24 extends _i1.SmartFake implements _i14.Widget { - _FakeWidget_24(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeWidget_24 extends _i1.SmartFake implements _i13.Widget { + _FakeWidget_24( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); @override String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => @@ -202,48 +329,81 @@ class _FakeWidget_24 extends _i1.SmartFake implements _i14.Widget { } class _FakeViewConfiguration_25 extends _i1.SmartFake - implements _i13.ViewConfiguration { - _FakeViewConfiguration_25(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + implements _i12.ViewConfiguration { + _FakeViewConfiguration_25( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeSceneBuilder_26 extends _i1.SmartFake implements _i10.SceneBuilder { - _FakeSceneBuilder_26(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeSceneBuilder_26 extends _i1.SmartFake implements _i9.SceneBuilder { + _FakeSceneBuilder_26( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakePictureRecorder_27 extends _i1.SmartFake - implements _i10.PictureRecorder { - _FakePictureRecorder_27(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + implements _i9.PictureRecorder { + _FakePictureRecorder_27( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } -class _FakeCanvas_28 extends _i1.SmartFake implements _i10.Canvas { - _FakeCanvas_28(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); +class _FakeCanvas_28 extends _i1.SmartFake implements _i9.Canvas { + _FakeCanvas_28( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeSemanticsHandle_29 extends _i1.SmartFake - implements _i13.SemanticsHandle { - _FakeSemanticsHandle_29(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + implements _i12.SemanticsHandle { + _FakeSemanticsHandle_29( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeSemanticsUpdateBuilder_30 extends _i1.SmartFake - implements _i10.SemanticsUpdateBuilder { - _FakeSemanticsUpdateBuilder_30(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + implements _i9.SemanticsUpdateBuilder { + _FakeSemanticsUpdateBuilder_30( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [LogTarget]. /// /// See the documentation for Mockito's code generation for more information. -class MockLogTarget extends _i1.Mock implements _i15.LogTarget { +class MockLogTarget extends _i1.Mock implements _i14.LogTarget { @override - void parseLog(_i15.LogMessage? log) => super.noSuchMethod( - Invocation.method(#parseLog, [log]), - returnValueForMissingStub: null, - ); + void parseLog(_i14.LogMessage? log) => super.noSuchMethod( + Invocation.method( + #parseLog, + [log], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [Request]. @@ -251,206 +411,230 @@ class MockLogTarget extends _i1.Mock implements _i15.LogTarget { /// See the documentation for Mockito's code generation for more information. class MockRequest extends _i1.Mock implements _i3.Request { @override - int get contentLength => - (super.noSuchMethod( - Invocation.getter(#contentLength), - returnValue: 0, - returnValueForMissingStub: 0, - ) - as int); + int get contentLength => (super.noSuchMethod( + Invocation.getter(#contentLength), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); @override - _i2.Encoding get encoding => - (super.noSuchMethod( - Invocation.getter(#encoding), - returnValue: _FakeEncoding_0(this, Invocation.getter(#encoding)), - returnValueForMissingStub: _FakeEncoding_0( - this, - Invocation.getter(#encoding), - ), - ) - as _i2.Encoding); + set contentLength(int? value) => super.noSuchMethod( + Invocation.setter( + #contentLength, + value, + ), + returnValueForMissingStub: null, + ); @override - _i16.Uint8List get bodyBytes => - (super.noSuchMethod( - Invocation.getter(#bodyBytes), - returnValue: _i16.Uint8List(0), - returnValueForMissingStub: _i16.Uint8List(0), - ) - as _i16.Uint8List); + _i2.Encoding get encoding => (super.noSuchMethod( + Invocation.getter(#encoding), + returnValue: _FakeEncoding_0( + this, + Invocation.getter(#encoding), + ), + returnValueForMissingStub: _FakeEncoding_0( + this, + Invocation.getter(#encoding), + ), + ) as _i2.Encoding); @override - String get body => - (super.noSuchMethod( - Invocation.getter(#body), - returnValue: _i17.dummyValue( - this, - Invocation.getter(#body), - ), - returnValueForMissingStub: _i17.dummyValue( - this, - Invocation.getter(#body), - ), - ) - as String); + set encoding(_i2.Encoding? value) => super.noSuchMethod( + Invocation.setter( + #encoding, + value, + ), + returnValueForMissingStub: null, + ); @override - Map get bodyFields => - (super.noSuchMethod( - Invocation.getter(#bodyFields), - returnValue: {}, - returnValueForMissingStub: {}, - ) - as Map); + _i15.Uint8List get bodyBytes => (super.noSuchMethod( + Invocation.getter(#bodyBytes), + returnValue: _i15.Uint8List(0), + returnValueForMissingStub: _i15.Uint8List(0), + ) as _i15.Uint8List); @override - set contentLength(int? value) => super.noSuchMethod( - Invocation.setter(#contentLength, value), - returnValueForMissingStub: null, - ); + set bodyBytes(List? value) => super.noSuchMethod( + Invocation.setter( + #bodyBytes, + value, + ), + returnValueForMissingStub: null, + ); @override - set encoding(_i2.Encoding? value) => super.noSuchMethod( - Invocation.setter(#encoding, value), - returnValueForMissingStub: null, - ); + String get body => (super.noSuchMethod( + Invocation.getter(#body), + returnValue: _i16.dummyValue( + this, + Invocation.getter(#body), + ), + returnValueForMissingStub: _i16.dummyValue( + this, + Invocation.getter(#body), + ), + ) as String); @override - set bodyBytes(List? value) => super.noSuchMethod( - Invocation.setter(#bodyBytes, value), - returnValueForMissingStub: null, - ); + set body(String? value) => super.noSuchMethod( + Invocation.setter( + #body, + value, + ), + returnValueForMissingStub: null, + ); @override - set body(String? value) => super.noSuchMethod( - Invocation.setter(#body, value), - returnValueForMissingStub: null, - ); + Map get bodyFields => (super.noSuchMethod( + Invocation.getter(#bodyFields), + returnValue: {}, + returnValueForMissingStub: {}, + ) as Map); @override set bodyFields(Map? fields) => super.noSuchMethod( - Invocation.setter(#bodyFields, fields), - returnValueForMissingStub: null, - ); + Invocation.setter( + #bodyFields, + fields, + ), + returnValueForMissingStub: null, + ); @override - String get method => - (super.noSuchMethod( - Invocation.getter(#method), - returnValue: _i17.dummyValue( - this, - Invocation.getter(#method), - ), - returnValueForMissingStub: _i17.dummyValue( - this, - Invocation.getter(#method), - ), - ) - as String); + String get method => (super.noSuchMethod( + Invocation.getter(#method), + returnValue: _i16.dummyValue( + this, + Invocation.getter(#method), + ), + returnValueForMissingStub: _i16.dummyValue( + this, + Invocation.getter(#method), + ), + ) as String); @override - Uri get url => - (super.noSuchMethod( - Invocation.getter(#url), - returnValue: _FakeUri_1(this, Invocation.getter(#url)), - returnValueForMissingStub: _FakeUri_1( - this, - Invocation.getter(#url), - ), - ) - as Uri); + Uri get url => (super.noSuchMethod( + Invocation.getter(#url), + returnValue: _FakeUri_1( + this, + Invocation.getter(#url), + ), + returnValueForMissingStub: _FakeUri_1( + this, + Invocation.getter(#url), + ), + ) as Uri); @override - Map get headers => - (super.noSuchMethod( - Invocation.getter(#headers), - returnValue: {}, - returnValueForMissingStub: {}, - ) - as Map); + Map get headers => (super.noSuchMethod( + Invocation.getter(#headers), + returnValue: {}, + returnValueForMissingStub: {}, + ) as Map); @override - bool get persistentConnection => - (super.noSuchMethod( - Invocation.getter(#persistentConnection), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get persistentConnection => (super.noSuchMethod( + Invocation.getter(#persistentConnection), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool get followRedirects => - (super.noSuchMethod( - Invocation.getter(#followRedirects), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + set persistentConnection(bool? value) => super.noSuchMethod( + Invocation.setter( + #persistentConnection, + value, + ), + returnValueForMissingStub: null, + ); @override - int get maxRedirects => - (super.noSuchMethod( - Invocation.getter(#maxRedirects), - returnValue: 0, - returnValueForMissingStub: 0, - ) - as int); + bool get followRedirects => (super.noSuchMethod( + Invocation.getter(#followRedirects), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool get finalized => - (super.noSuchMethod( - Invocation.getter(#finalized), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + set followRedirects(bool? value) => super.noSuchMethod( + Invocation.setter( + #followRedirects, + value, + ), + returnValueForMissingStub: null, + ); @override - set persistentConnection(bool? value) => super.noSuchMethod( - Invocation.setter(#persistentConnection, value), - returnValueForMissingStub: null, - ); + int get maxRedirects => (super.noSuchMethod( + Invocation.getter(#maxRedirects), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); @override - set followRedirects(bool? value) => super.noSuchMethod( - Invocation.setter(#followRedirects, value), - returnValueForMissingStub: null, - ); + set maxRedirects(int? value) => super.noSuchMethod( + Invocation.setter( + #maxRedirects, + value, + ), + returnValueForMissingStub: null, + ); @override - set maxRedirects(int? value) => super.noSuchMethod( - Invocation.setter(#maxRedirects, value), - returnValueForMissingStub: null, - ); + bool get finalized => (super.noSuchMethod( + Invocation.getter(#finalized), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i18.ByteStream finalize() => - (super.noSuchMethod( - Invocation.method(#finalize, []), - returnValue: _i17.dummyValue<_i18.ByteStream>( - this, - Invocation.method(#finalize, []), - ), - returnValueForMissingStub: _i17.dummyValue<_i18.ByteStream>( - this, - Invocation.method(#finalize, []), - ), - ) - as _i18.ByteStream); + _i17.ByteStream finalize() => (super.noSuchMethod( + Invocation.method( + #finalize, + [], + ), + returnValue: _i16.dummyValue<_i17.ByteStream>( + this, + Invocation.method( + #finalize, + [], + ), + ), + returnValueForMissingStub: _i16.dummyValue<_i17.ByteStream>( + this, + Invocation.method( + #finalize, + [], + ), + ), + ) as _i17.ByteStream); @override - _i4.Future<_i3.StreamedResponse> send() => - (super.noSuchMethod( - Invocation.method(#send, []), - returnValue: _i4.Future<_i3.StreamedResponse>.value( - _FakeStreamedResponse_2(this, Invocation.method(#send, [])), - ), - returnValueForMissingStub: _i4.Future<_i3.StreamedResponse>.value( - _FakeStreamedResponse_2(this, Invocation.method(#send, [])), - ), - ) - as _i4.Future<_i3.StreamedResponse>); + _i4.Future<_i3.StreamedResponse> send() => (super.noSuchMethod( + Invocation.method( + #send, + [], + ), + returnValue: + _i4.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( + this, + Invocation.method( + #send, + [], + ), + )), + returnValueForMissingStub: + _i4.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( + this, + Invocation.method( + #send, + [], + ), + )), + ) as _i4.Future<_i3.StreamedResponse>); } /// A class which mocks [StreamSubscription]. @@ -459,303 +643,356 @@ class MockRequest extends _i1.Mock implements _i3.Request { class MockStreamSubscription extends _i1.Mock implements _i4.StreamSubscription { @override - bool get isPaused => - (super.noSuchMethod( - Invocation.getter(#isPaused), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get isPaused => (super.noSuchMethod( + Invocation.getter(#isPaused), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i4.Future cancel() => - (super.noSuchMethod( - Invocation.method(#cancel, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future cancel() => (super.noSuchMethod( + Invocation.method( + #cancel, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override void onData(void Function(T)? handleData) => super.noSuchMethod( - Invocation.method(#onData, [handleData]), - returnValueForMissingStub: null, - ); + Invocation.method( + #onData, + [handleData], + ), + returnValueForMissingStub: null, + ); @override void onError(Function? handleError) => super.noSuchMethod( - Invocation.method(#onError, [handleError]), - returnValueForMissingStub: null, - ); + Invocation.method( + #onError, + [handleError], + ), + returnValueForMissingStub: null, + ); @override void onDone(void Function()? handleDone) => super.noSuchMethod( - Invocation.method(#onDone, [handleDone]), - returnValueForMissingStub: null, - ); + Invocation.method( + #onDone, + [handleDone], + ), + returnValueForMissingStub: null, + ); @override void pause([_i4.Future? resumeSignal]) => super.noSuchMethod( - Invocation.method(#pause, [resumeSignal]), - returnValueForMissingStub: null, - ); + Invocation.method( + #pause, + [resumeSignal], + ), + returnValueForMissingStub: null, + ); @override void resume() => super.noSuchMethod( - Invocation.method(#resume, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #resume, + [], + ), + returnValueForMissingStub: null, + ); @override - _i4.Future asFuture([E? futureValue]) => - (super.noSuchMethod( - Invocation.method(#asFuture, [futureValue]), - returnValue: - _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method(#asFuture, [futureValue]), - ), - (E v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method(#asFuture, [futureValue]), + _i4.Future asFuture([E? futureValue]) => (super.noSuchMethod( + Invocation.method( + #asFuture, + [futureValue], + ), + returnValue: _i16.ifNotNull( + _i16.dummyValueOrNull( + this, + Invocation.method( + #asFuture, + [futureValue], ), - returnValueForMissingStub: - _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method(#asFuture, [futureValue]), - ), - (E v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method(#asFuture, [futureValue]), + ), + (E v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method( + #asFuture, + [futureValue], + ), + ), + returnValueForMissingStub: _i16.ifNotNull( + _i16.dummyValueOrNull( + this, + Invocation.method( + #asFuture, + [futureValue], ), - ) - as _i4.Future); + ), + (E v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method( + #asFuture, + [futureValue], + ), + ), + ) as _i4.Future); } /// A class which mocks [HTTPClient]. /// /// See the documentation for Mockito's code generation for more information. -class MockHTTPClient extends _i1.Mock implements _i19.HTTPClient { +class MockHTTPClient extends _i1.Mock implements _i18.HTTPClient { @override _i4.Future startBatchUpload( String? writeKey, - List<_i20.RawEvent>? batch, { + List<_i19.RawEvent>? batch, { String? host, }) => (super.noSuchMethod( - Invocation.method( - #startBatchUpload, - [writeKey, batch], - {#host: host}, - ), - returnValue: _i4.Future.value(false), - returnValueForMissingStub: _i4.Future.value(false), - ) - as _i4.Future); + Invocation.method( + #startBatchUpload, + [ + writeKey, + batch, + ], + {#host: host}, + ), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i4.Future<_i21.SegmentAPISettings?> settingsFor(String? writeKey) => + _i4.Future<_i20.SegmentAPISettings?> settingsFor(String? writeKey) => (super.noSuchMethod( - Invocation.method(#settingsFor, [writeKey]), - returnValue: _i4.Future<_i21.SegmentAPISettings?>.value(), - returnValueForMissingStub: - _i4.Future<_i21.SegmentAPISettings?>.value(), - ) - as _i4.Future<_i21.SegmentAPISettings?>); + Invocation.method( + #settingsFor, + [writeKey], + ), + returnValue: _i4.Future<_i20.SegmentAPISettings?>.value(), + returnValueForMissingStub: _i4.Future<_i20.SegmentAPISettings?>.value(), + ) as _i4.Future<_i20.SegmentAPISettings?>); } /// A class which mocks [Store]. /// /// See the documentation for Mockito's code generation for more information. -class MockStore extends _i1.Mock implements _i22.Store { +class MockStore extends _i1.Mock implements _i21.Store { @override - _i4.Future get ready => - (super.noSuchMethod( - Invocation.getter(#ready), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future get ready => (super.noSuchMethod( + Invocation.getter(#ready), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override _i4.Future?> getPersisted(String? key) => (super.noSuchMethod( - Invocation.method(#getPersisted, [key]), - returnValue: _i4.Future?>.value(), - returnValueForMissingStub: - _i4.Future?>.value(), - ) - as _i4.Future?>); + Invocation.method( + #getPersisted, + [key], + ), + returnValue: _i4.Future?>.value(), + returnValueForMissingStub: _i4.Future?>.value(), + ) as _i4.Future?>); @override - _i4.Future setPersisted(String? key, Map? value) => + _i4.Future setPersisted( + String? key, + Map? value, + ) => (super.noSuchMethod( - Invocation.method(#setPersisted, [key, value]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + Invocation.method( + #setPersisted, + [ + key, + value, + ], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future deletePersisted(String? key) => - (super.noSuchMethod( - Invocation.method(#deletePersisted, [key]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future deletePersisted(String? key) => (super.noSuchMethod( + Invocation.method( + #deletePersisted, + [key], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override void dispose() => super.noSuchMethod( - Invocation.method(#dispose, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #dispose, + [], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [FlushPolicy]. /// /// See the documentation for Mockito's code generation for more information. -class MockFlushPolicy extends _i1.Mock implements _i23.FlushPolicy { +class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { @override - bool get shouldFlush => - (super.noSuchMethod( - Invocation.getter(#shouldFlush), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get shouldFlush => (super.noSuchMethod( + Invocation.getter(#shouldFlush), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override set shouldFlush(bool? shouldFlush) => super.noSuchMethod( - Invocation.setter(#shouldFlush, shouldFlush), - returnValueForMissingStub: null, - ); + Invocation.setter( + #shouldFlush, + shouldFlush, + ), + returnValueForMissingStub: null, + ); @override - bool get mounted => - (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + set onError(_i23.ErrorListener? _onError) => super.noSuchMethod( + Invocation.setter( + #onError, + _onError, + ), + returnValueForMissingStub: null, + ); @override - _i4.Stream get stream => - (super.noSuchMethod( - Invocation.getter(#stream), - returnValue: _i4.Stream.empty(), - returnValueForMissingStub: _i4.Stream.empty(), - ) - as _i4.Stream); + bool get mounted => (super.noSuchMethod( + Invocation.getter(#mounted), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool get state => - (super.noSuchMethod( - Invocation.getter(#state), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + _i4.Stream get stream => (super.noSuchMethod( + Invocation.getter(#stream), + returnValue: _i4.Stream.empty(), + returnValueForMissingStub: _i4.Stream.empty(), + ) as _i4.Stream); @override - bool get debugState => - (super.noSuchMethod( - Invocation.getter(#debugState), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get state => (super.noSuchMethod( + Invocation.getter(#state), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool get hasListeners => - (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + set state(bool? value) => super.noSuchMethod( + Invocation.setter( + #state, + value, + ), + returnValueForMissingStub: null, + ); @override - set onError(_i24.ErrorListener? _onError) => super.noSuchMethod( - Invocation.setter(#onError, _onError), - returnValueForMissingStub: null, - ); + bool get debugState => (super.noSuchMethod( + Invocation.getter(#debugState), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - set state(bool? value) => super.noSuchMethod( - Invocation.setter(#state, value), - returnValueForMissingStub: null, - ); + bool get hasListeners => (super.noSuchMethod( + Invocation.getter(#hasListeners), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override void start() => super.noSuchMethod( - Invocation.method(#start, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #start, + [], + ), + returnValueForMissingStub: null, + ); @override - void onEvent(_i20.RawEvent? event) => super.noSuchMethod( - Invocation.method(#onEvent, [event]), - returnValueForMissingStub: null, - ); + void onEvent(_i19.RawEvent? event) => super.noSuchMethod( + Invocation.method( + #onEvent, + [event], + ), + returnValueForMissingStub: null, + ); @override void reset() => super.noSuchMethod( - Invocation.method(#reset, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #reset, + [], + ), + returnValueForMissingStub: null, + ); @override - bool updateShouldNotify(bool? old, bool? current) => + bool updateShouldNotify( + bool? old, + bool? current, + ) => (super.noSuchMethod( - Invocation.method(#updateShouldNotify, [old, current]), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + Invocation.method( + #updateShouldNotify, + [ + old, + current, + ], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i24.RemoveListener addListener( - _i24.Listener? listener, { + _i23.RemoveListener addListener( + _i23.Listener? listener, { bool? fireImmediately = true, }) => (super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - {#fireImmediately: fireImmediately}, - ), - returnValue: () {}, - returnValueForMissingStub: () {}, - ) - as _i24.RemoveListener); + Invocation.method( + #addListener, + [listener], + {#fireImmediately: fireImmediately}, + ), + returnValue: () {}, + returnValueForMissingStub: () {}, + ) as _i23.RemoveListener); @override void dispose() => super.noSuchMethod( - Invocation.method(#dispose, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #dispose, + [], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [Logger]. /// /// See the documentation for Mockito's code generation for more information. -class MockLogger extends _i1.Mock implements _i25.Logger { +class MockLogger extends _i1.Mock implements _i24.Logger { @override - _i4.Future get init => - (super.noSuchMethod( - Invocation.getter(#init), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future get init => (super.noSuchMethod( + Invocation.getter(#init), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override void v( @@ -763,14 +1000,19 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #v, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #v, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void t( @@ -778,14 +1020,19 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #t, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #t, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void d( @@ -793,14 +1040,19 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #d, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #d, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void i( @@ -808,14 +1060,19 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #i, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #i, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void w( @@ -823,14 +1080,19 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #w, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #w, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void e( @@ -838,14 +1100,19 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #e, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #e, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void wtf( @@ -853,14 +1120,19 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #wtf, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #wtf, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void f( @@ -868,48 +1140,63 @@ class MockLogger extends _i1.Mock implements _i25.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #f, - [message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #f, + [message], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override void log( - _i25.Level? level, + _i24.Level? level, dynamic message, { DateTime? time, Object? error, StackTrace? stackTrace, - }) => super.noSuchMethod( - Invocation.method( - #log, - [level, message], - {#time: time, #error: error, #stackTrace: stackTrace}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #log, + [ + level, + message, + ], + { + #time: time, + #error: error, + #stackTrace: stackTrace, + }, + ), + returnValueForMissingStub: null, + ); @override - bool isClosed() => - (super.noSuchMethod( - Invocation.method(#isClosed, []), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool isClosed() => (super.noSuchMethod( + Invocation.method( + #isClosed, + [], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i4.Future close() => - (super.noSuchMethod( - Invocation.method(#close, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future close() => (super.noSuchMethod( + Invocation.method( + #close, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); } /// A class which mocks [NativeContextApi]. @@ -919,906 +1206,888 @@ class MockNativeContextApi extends _i1.Mock implements _i5.NativeContextApi { @override _i4.Future<_i5.NativeContext> getContext(bool? arg_collectDeviceId) => (super.noSuchMethod( - Invocation.method(#getContext, [arg_collectDeviceId]), - returnValue: _i4.Future<_i5.NativeContext>.value( - _FakeNativeContext_4( - this, - Invocation.method(#getContext, [arg_collectDeviceId]), - ), - ), - returnValueForMissingStub: _i4.Future<_i5.NativeContext>.value( - _FakeNativeContext_4( - this, - Invocation.method(#getContext, [arg_collectDeviceId]), - ), - ), - ) - as _i4.Future<_i5.NativeContext>); + Invocation.method( + #getContext, + [arg_collectDeviceId], + ), + returnValue: _i4.Future<_i5.NativeContext>.value(_FakeNativeContext_4( + this, + Invocation.method( + #getContext, + [arg_collectDeviceId], + ), + )), + returnValueForMissingStub: + _i4.Future<_i5.NativeContext>.value(_FakeNativeContext_4( + this, + Invocation.method( + #getContext, + [arg_collectDeviceId], + ), + )), + ) as _i4.Future<_i5.NativeContext>); } /// A class which mocks [WidgetsBinding]. /// /// See the documentation for Mockito's code generation for more information. -class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { +class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override - _i6.PlatformMenuDelegate get platformMenuDelegate => - (super.noSuchMethod( - Invocation.getter(#platformMenuDelegate), - returnValue: _FakePlatformMenuDelegate_5( - this, - Invocation.getter(#platformMenuDelegate), - ), - returnValueForMissingStub: _FakePlatformMenuDelegate_5( - this, - Invocation.getter(#platformMenuDelegate), - ), - ) - as _i6.PlatformMenuDelegate); - - @override - bool get debugBuildingDirtyElements => - (super.noSuchMethod( - Invocation.getter(#debugBuildingDirtyElements), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + _i6.PlatformMenuDelegate get platformMenuDelegate => (super.noSuchMethod( + Invocation.getter(#platformMenuDelegate), + returnValue: _FakePlatformMenuDelegate_5( + this, + Invocation.getter(#platformMenuDelegate), + ), + returnValueForMissingStub: _FakePlatformMenuDelegate_5( + this, + Invocation.getter(#platformMenuDelegate), + ), + ) as _i6.PlatformMenuDelegate); @override - bool get debugShowWidgetInspectorOverride => - (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverride), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + set platformMenuDelegate(_i6.PlatformMenuDelegate? _platformMenuDelegate) => + super.noSuchMethod( + Invocation.setter( + #platformMenuDelegate, + _platformMenuDelegate, + ), + returnValueForMissingStub: null, + ); @override - _i7.ValueNotifier get debugShowWidgetInspectorOverrideNotifier => - (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - returnValue: _FakeValueNotifier_6( - this, - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - ), - returnValueForMissingStub: _FakeValueNotifier_6( - this, - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - ), - ) - as _i7.ValueNotifier); + bool get debugBuildingDirtyElements => (super.noSuchMethod( + Invocation.getter(#debugBuildingDirtyElements), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i7.ValueNotifier get debugWidgetInspectorSelectionOnTapEnabled => - (super.noSuchMethod( - Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), - returnValue: _FakeValueNotifier_6( - this, - Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), - ), - returnValueForMissingStub: _FakeValueNotifier_6( - this, - Invocation.getter(#debugWidgetInspectorSelectionOnTapEnabled), - ), - ) - as _i7.ValueNotifier); + set debugBuildingDirtyElements(bool? _debugBuildingDirtyElements) => + super.noSuchMethod( + Invocation.setter( + #debugBuildingDirtyElements, + _debugBuildingDirtyElements, + ), + returnValueForMissingStub: null, + ); @override - bool get debugExcludeRootWidgetInspector => - (super.noSuchMethod( - Invocation.getter(#debugExcludeRootWidgetInspector), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get debugShowWidgetInspectorOverride => (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverride), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i8.FocusManager get focusManager => - (super.noSuchMethod( - Invocation.getter(#focusManager), - returnValue: _FakeFocusManager_7( - this, - Invocation.getter(#focusManager), - ), - returnValueForMissingStub: _FakeFocusManager_7( - this, - Invocation.getter(#focusManager), - ), - ) - as _i8.FocusManager); + set debugShowWidgetInspectorOverride(bool? value) => super.noSuchMethod( + Invocation.setter( + #debugShowWidgetInspectorOverride, + value, + ), + returnValueForMissingStub: null, + ); @override - bool get firstFrameRasterized => + _i7.ValueNotifier get debugShowWidgetInspectorOverrideNotifier => (super.noSuchMethod( - Invocation.getter(#firstFrameRasterized), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + returnValue: _FakeValueNotifier_6( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + returnValueForMissingStub: _FakeValueNotifier_6( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + ) as _i7.ValueNotifier); @override - _i4.Future get waitUntilFirstFrameRasterized => - (super.noSuchMethod( - Invocation.getter(#waitUntilFirstFrameRasterized), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i8.FocusManager get focusManager => (super.noSuchMethod( + Invocation.getter(#focusManager), + returnValue: _FakeFocusManager_7( + this, + Invocation.getter(#focusManager), + ), + returnValueForMissingStub: _FakeFocusManager_7( + this, + Invocation.getter(#focusManager), + ), + ) as _i8.FocusManager); @override - bool get debugDidSendFirstFrameEvent => - (super.noSuchMethod( - Invocation.getter(#debugDidSendFirstFrameEvent), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get firstFrameRasterized => (super.noSuchMethod( + Invocation.getter(#firstFrameRasterized), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool get framesEnabled => - (super.noSuchMethod( - Invocation.getter(#framesEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + _i4.Future get waitUntilFirstFrameRasterized => (super.noSuchMethod( + Invocation.getter(#waitUntilFirstFrameRasterized), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - bool get isRootWidgetAttached => - (super.noSuchMethod( - Invocation.getter(#isRootWidgetAttached), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get debugDidSendFirstFrameEvent => (super.noSuchMethod( + Invocation.getter(#debugDidSendFirstFrameEvent), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i9.WindowingOwner get windowingOwner => - (super.noSuchMethod( - Invocation.getter(#windowingOwner), - returnValue: _FakeWindowingOwner_8( - this, - Invocation.getter(#windowingOwner), - ), - returnValueForMissingStub: _FakeWindowingOwner_8( - this, - Invocation.getter(#windowingOwner), - ), - ) - as _i9.WindowingOwner); + bool get framesEnabled => (super.noSuchMethod( + Invocation.getter(#framesEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - set platformMenuDelegate(_i6.PlatformMenuDelegate? _platformMenuDelegate) => - super.noSuchMethod( - Invocation.setter(#platformMenuDelegate, _platformMenuDelegate), - returnValueForMissingStub: null, - ); + bool get isRootWidgetAttached => (super.noSuchMethod( + Invocation.getter(#isRootWidgetAttached), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - set debugBuildingDirtyElements(bool? _debugBuildingDirtyElements) => - super.noSuchMethod( - Invocation.setter( - #debugBuildingDirtyElements, - _debugBuildingDirtyElements, + _i9.SingletonFlutterWindow get window => (super.noSuchMethod( + Invocation.getter(#window), + returnValue: _FakeSingletonFlutterWindow_8( + this, + Invocation.getter(#window), ), - returnValueForMissingStub: null, - ); - - @override - set debugShowWidgetInspectorOverride(bool? value) => super.noSuchMethod( - Invocation.setter(#debugShowWidgetInspectorOverride, value), - returnValueForMissingStub: null, - ); - - @override - set debugExcludeRootWidgetInspector(bool? value) => super.noSuchMethod( - Invocation.setter(#debugExcludeRootWidgetInspector, value), - returnValueForMissingStub: null, - ); - - @override - set windowingOwner(_i9.WindowingOwner? owner) => super.noSuchMethod( - Invocation.setter(#windowingOwner, owner), - returnValueForMissingStub: null, - ); + returnValueForMissingStub: _FakeSingletonFlutterWindow_8( + this, + Invocation.getter(#window), + ), + ) as _i9.SingletonFlutterWindow); @override - _i10.SingletonFlutterWindow get window => - (super.noSuchMethod( - Invocation.getter(#window), - returnValue: _FakeSingletonFlutterWindow_9( - this, - Invocation.getter(#window), - ), - returnValueForMissingStub: _FakeSingletonFlutterWindow_9( - this, - Invocation.getter(#window), - ), - ) - as _i10.SingletonFlutterWindow); + _i9.PlatformDispatcher get platformDispatcher => (super.noSuchMethod( + Invocation.getter(#platformDispatcher), + returnValue: _FakePlatformDispatcher_9( + this, + Invocation.getter(#platformDispatcher), + ), + returnValueForMissingStub: _FakePlatformDispatcher_9( + this, + Invocation.getter(#platformDispatcher), + ), + ) as _i9.PlatformDispatcher); @override - _i10.PlatformDispatcher get platformDispatcher => - (super.noSuchMethod( - Invocation.getter(#platformDispatcher), - returnValue: _FakePlatformDispatcher_10( - this, - Invocation.getter(#platformDispatcher), - ), - returnValueForMissingStub: _FakePlatformDispatcher_10( - this, - Invocation.getter(#platformDispatcher), - ), - ) - as _i10.PlatformDispatcher); + bool get locked => (super.noSuchMethod( + Invocation.getter(#locked), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool get locked => - (super.noSuchMethod( - Invocation.getter(#locked), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + _i7.ValueNotifier get accessibilityFocus => (super.noSuchMethod( + Invocation.getter(#accessibilityFocus), + returnValue: _FakeValueNotifier_6( + this, + Invocation.getter(#accessibilityFocus), + ), + returnValueForMissingStub: _FakeValueNotifier_6( + this, + Invocation.getter(#accessibilityFocus), + ), + ) as _i7.ValueNotifier); @override - _i7.ValueNotifier get accessibilityFocus => - (super.noSuchMethod( - Invocation.getter(#accessibilityFocus), - returnValue: _FakeValueNotifier_6( - this, - Invocation.getter(#accessibilityFocus), - ), - returnValueForMissingStub: _FakeValueNotifier_6( - this, - Invocation.getter(#accessibilityFocus), - ), - ) - as _i7.ValueNotifier); + _i10.HardwareKeyboard get keyboard => (super.noSuchMethod( + Invocation.getter(#keyboard), + returnValue: _FakeHardwareKeyboard_10( + this, + Invocation.getter(#keyboard), + ), + returnValueForMissingStub: _FakeHardwareKeyboard_10( + this, + Invocation.getter(#keyboard), + ), + ) as _i10.HardwareKeyboard); @override - _i11.HardwareKeyboard get keyboard => - (super.noSuchMethod( - Invocation.getter(#keyboard), - returnValue: _FakeHardwareKeyboard_11( - this, - Invocation.getter(#keyboard), - ), - returnValueForMissingStub: _FakeHardwareKeyboard_11( - this, - Invocation.getter(#keyboard), - ), - ) - as _i11.HardwareKeyboard); + _i10.KeyEventManager get keyEventManager => (super.noSuchMethod( + Invocation.getter(#keyEventManager), + returnValue: _FakeKeyEventManager_11( + this, + Invocation.getter(#keyEventManager), + ), + returnValueForMissingStub: _FakeKeyEventManager_11( + this, + Invocation.getter(#keyEventManager), + ), + ) as _i10.KeyEventManager); @override - _i11.KeyEventManager get keyEventManager => - (super.noSuchMethod( - Invocation.getter(#keyEventManager), - returnValue: _FakeKeyEventManager_12( - this, - Invocation.getter(#keyEventManager), - ), - returnValueForMissingStub: _FakeKeyEventManager_12( - this, - Invocation.getter(#keyEventManager), - ), - ) - as _i11.KeyEventManager); + _i10.BinaryMessenger get defaultBinaryMessenger => (super.noSuchMethod( + Invocation.getter(#defaultBinaryMessenger), + returnValue: _FakeBinaryMessenger_12( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + returnValueForMissingStub: _FakeBinaryMessenger_12( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + ) as _i10.BinaryMessenger); @override - _i11.BinaryMessenger get defaultBinaryMessenger => - (super.noSuchMethod( - Invocation.getter(#defaultBinaryMessenger), - returnValue: _FakeBinaryMessenger_13( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - returnValueForMissingStub: _FakeBinaryMessenger_13( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - ) - as _i11.BinaryMessenger); + _i9.ChannelBuffers get channelBuffers => (super.noSuchMethod( + Invocation.getter(#channelBuffers), + returnValue: _FakeChannelBuffers_13( + this, + Invocation.getter(#channelBuffers), + ), + returnValueForMissingStub: _FakeChannelBuffers_13( + this, + Invocation.getter(#channelBuffers), + ), + ) as _i9.ChannelBuffers); @override - _i10.ChannelBuffers get channelBuffers => - (super.noSuchMethod( - Invocation.getter(#channelBuffers), - returnValue: _FakeChannelBuffers_14( - this, - Invocation.getter(#channelBuffers), - ), - returnValueForMissingStub: _FakeChannelBuffers_14( - this, - Invocation.getter(#channelBuffers), - ), - ) - as _i10.ChannelBuffers); + _i10.RestorationManager get restorationManager => (super.noSuchMethod( + Invocation.getter(#restorationManager), + returnValue: _FakeRestorationManager_14( + this, + Invocation.getter(#restorationManager), + ), + returnValueForMissingStub: _FakeRestorationManager_14( + this, + Invocation.getter(#restorationManager), + ), + ) as _i10.RestorationManager); @override - _i11.RestorationManager get restorationManager => - (super.noSuchMethod( - Invocation.getter(#restorationManager), - returnValue: _FakeRestorationManager_15( - this, - Invocation.getter(#restorationManager), - ), - returnValueForMissingStub: _FakeRestorationManager_15( - this, - Invocation.getter(#restorationManager), - ), - ) - as _i11.RestorationManager); + _i26.SchedulingStrategy get schedulingStrategy => (super.noSuchMethod( + Invocation.getter(#schedulingStrategy), + returnValue: ({ + required int priority, + required _i26.SchedulerBinding scheduler, + }) => + false, + returnValueForMissingStub: ({ + required int priority, + required _i26.SchedulerBinding scheduler, + }) => + false, + ) as _i26.SchedulingStrategy); @override - _i27.SchedulingStrategy get schedulingStrategy => - (super.noSuchMethod( - Invocation.getter(#schedulingStrategy), - returnValue: - ({ - required int priority, - required _i27.SchedulerBinding scheduler, - }) => false, - returnValueForMissingStub: - ({ - required int priority, - required _i27.SchedulerBinding scheduler, - }) => false, - ) - as _i27.SchedulingStrategy); - - @override - int get transientCallbackCount => - (super.noSuchMethod( - Invocation.getter(#transientCallbackCount), - returnValue: 0, - returnValueForMissingStub: 0, - ) - as int); + set schedulingStrategy(_i26.SchedulingStrategy? _schedulingStrategy) => + super.noSuchMethod( + Invocation.setter( + #schedulingStrategy, + _schedulingStrategy, + ), + returnValueForMissingStub: null, + ); @override - _i4.Future get endOfFrame => - (super.noSuchMethod( - Invocation.getter(#endOfFrame), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + int get transientCallbackCount => (super.noSuchMethod( + Invocation.getter(#transientCallbackCount), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); @override - bool get hasScheduledFrame => - (super.noSuchMethod( - Invocation.getter(#hasScheduledFrame), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + _i4.Future get endOfFrame => (super.noSuchMethod( + Invocation.getter(#endOfFrame), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i27.SchedulerPhase get schedulerPhase => - (super.noSuchMethod( - Invocation.getter(#schedulerPhase), - returnValue: _i27.SchedulerPhase.idle, - returnValueForMissingStub: _i27.SchedulerPhase.idle, - ) - as _i27.SchedulerPhase); + bool get hasScheduledFrame => (super.noSuchMethod( + Invocation.getter(#hasScheduledFrame), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - Duration get currentFrameTimeStamp => - (super.noSuchMethod( - Invocation.getter(#currentFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - returnValueForMissingStub: _FakeDuration_16( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - ) - as Duration); + _i26.SchedulerPhase get schedulerPhase => (super.noSuchMethod( + Invocation.getter(#schedulerPhase), + returnValue: _i26.SchedulerPhase.idle, + returnValueForMissingStub: _i26.SchedulerPhase.idle, + ) as _i26.SchedulerPhase); @override - Duration get currentSystemFrameTimeStamp => - (super.noSuchMethod( - Invocation.getter(#currentSystemFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - returnValueForMissingStub: _FakeDuration_16( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - ) - as Duration); + Duration get currentFrameTimeStamp => (super.noSuchMethod( + Invocation.getter(#currentFrameTimeStamp), + returnValue: _FakeDuration_15( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + returnValueForMissingStub: _FakeDuration_15( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + ) as Duration); @override - set schedulingStrategy(_i27.SchedulingStrategy? _schedulingStrategy) => - super.noSuchMethod( - Invocation.setter(#schedulingStrategy, _schedulingStrategy), - returnValueForMissingStub: null, - ); + Duration get currentSystemFrameTimeStamp => (super.noSuchMethod( + Invocation.getter(#currentSystemFrameTimeStamp), + returnValue: _FakeDuration_15( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + returnValueForMissingStub: _FakeDuration_15( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + ) as Duration); @override - _i12.PointerRouter get pointerRouter => - (super.noSuchMethod( - Invocation.getter(#pointerRouter), - returnValue: _FakePointerRouter_17( - this, - Invocation.getter(#pointerRouter), - ), - returnValueForMissingStub: _FakePointerRouter_17( - this, - Invocation.getter(#pointerRouter), - ), - ) - as _i12.PointerRouter); + _i11.PointerRouter get pointerRouter => (super.noSuchMethod( + Invocation.getter(#pointerRouter), + returnValue: _FakePointerRouter_16( + this, + Invocation.getter(#pointerRouter), + ), + returnValueForMissingStub: _FakePointerRouter_16( + this, + Invocation.getter(#pointerRouter), + ), + ) as _i11.PointerRouter); @override - _i12.GestureArenaManager get gestureArena => - (super.noSuchMethod( - Invocation.getter(#gestureArena), - returnValue: _FakeGestureArenaManager_18( - this, - Invocation.getter(#gestureArena), - ), - returnValueForMissingStub: _FakeGestureArenaManager_18( - this, - Invocation.getter(#gestureArena), - ), - ) - as _i12.GestureArenaManager); + _i11.GestureArenaManager get gestureArena => (super.noSuchMethod( + Invocation.getter(#gestureArena), + returnValue: _FakeGestureArenaManager_17( + this, + Invocation.getter(#gestureArena), + ), + returnValueForMissingStub: _FakeGestureArenaManager_17( + this, + Invocation.getter(#gestureArena), + ), + ) as _i11.GestureArenaManager); @override - _i12.PointerSignalResolver get pointerSignalResolver => - (super.noSuchMethod( - Invocation.getter(#pointerSignalResolver), - returnValue: _FakePointerSignalResolver_19( - this, - Invocation.getter(#pointerSignalResolver), - ), - returnValueForMissingStub: _FakePointerSignalResolver_19( - this, - Invocation.getter(#pointerSignalResolver), - ), - ) - as _i12.PointerSignalResolver); + _i11.PointerSignalResolver get pointerSignalResolver => (super.noSuchMethod( + Invocation.getter(#pointerSignalResolver), + returnValue: _FakePointerSignalResolver_18( + this, + Invocation.getter(#pointerSignalResolver), + ), + returnValueForMissingStub: _FakePointerSignalResolver_18( + this, + Invocation.getter(#pointerSignalResolver), + ), + ) as _i11.PointerSignalResolver); @override - bool get resamplingEnabled => - (super.noSuchMethod( - Invocation.getter(#resamplingEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get resamplingEnabled => (super.noSuchMethod( + Invocation.getter(#resamplingEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - Duration get samplingOffset => - (super.noSuchMethod( - Invocation.getter(#samplingOffset), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#samplingOffset), - ), - returnValueForMissingStub: _FakeDuration_16( - this, - Invocation.getter(#samplingOffset), - ), - ) - as Duration); + set resamplingEnabled(bool? _resamplingEnabled) => super.noSuchMethod( + Invocation.setter( + #resamplingEnabled, + _resamplingEnabled, + ), + returnValueForMissingStub: null, + ); @override - _i12.SamplingClock get samplingClock => - (super.noSuchMethod( - Invocation.getter(#samplingClock), - returnValue: _FakeSamplingClock_20( - this, - Invocation.getter(#samplingClock), - ), - returnValueForMissingStub: _FakeSamplingClock_20( - this, - Invocation.getter(#samplingClock), - ), - ) - as _i12.SamplingClock); + Duration get samplingOffset => (super.noSuchMethod( + Invocation.getter(#samplingOffset), + returnValue: _FakeDuration_15( + this, + Invocation.getter(#samplingOffset), + ), + returnValueForMissingStub: _FakeDuration_15( + this, + Invocation.getter(#samplingOffset), + ), + ) as Duration); @override - set resamplingEnabled(bool? _resamplingEnabled) => super.noSuchMethod( - Invocation.setter(#resamplingEnabled, _resamplingEnabled), - returnValueForMissingStub: null, - ); + set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( + Invocation.setter( + #samplingOffset, + _samplingOffset, + ), + returnValueForMissingStub: null, + ); @override - set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( - Invocation.setter(#samplingOffset, _samplingOffset), - returnValueForMissingStub: null, - ); + _i11.SamplingClock get samplingClock => (super.noSuchMethod( + Invocation.getter(#samplingClock), + returnValue: _FakeSamplingClock_19( + this, + Invocation.getter(#samplingClock), + ), + returnValueForMissingStub: _FakeSamplingClock_19( + this, + Invocation.getter(#samplingClock), + ), + ) as _i11.SamplingClock); @override - _i13.PipelineOwner get pipelineOwner => - (super.noSuchMethod( - Invocation.getter(#pipelineOwner), - returnValue: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#pipelineOwner), - ), - returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#pipelineOwner), - ), - ) - as _i13.PipelineOwner); + _i12.PipelineOwner get pipelineOwner => (super.noSuchMethod( + Invocation.getter(#pipelineOwner), + returnValue: _FakePipelineOwner_20( + this, + Invocation.getter(#pipelineOwner), + ), + returnValueForMissingStub: _FakePipelineOwner_20( + this, + Invocation.getter(#pipelineOwner), + ), + ) as _i12.PipelineOwner); @override - _i13.RenderView get renderView => - (super.noSuchMethod( - Invocation.getter(#renderView), - returnValue: _FakeRenderView_21( - this, - Invocation.getter(#renderView), - ), - returnValueForMissingStub: _FakeRenderView_21( - this, - Invocation.getter(#renderView), - ), - ) - as _i13.RenderView); + _i12.RenderView get renderView => (super.noSuchMethod( + Invocation.getter(#renderView), + returnValue: _FakeRenderView_21( + this, + Invocation.getter(#renderView), + ), + returnValueForMissingStub: _FakeRenderView_21( + this, + Invocation.getter(#renderView), + ), + ) as _i12.RenderView); @override - _i13.MouseTracker get mouseTracker => - (super.noSuchMethod( - Invocation.getter(#mouseTracker), - returnValue: _FakeMouseTracker_22( - this, - Invocation.getter(#mouseTracker), - ), - returnValueForMissingStub: _FakeMouseTracker_22( - this, - Invocation.getter(#mouseTracker), - ), - ) - as _i13.MouseTracker); + _i12.MouseTracker get mouseTracker => (super.noSuchMethod( + Invocation.getter(#mouseTracker), + returnValue: _FakeMouseTracker_22( + this, + Invocation.getter(#mouseTracker), + ), + returnValueForMissingStub: _FakeMouseTracker_22( + this, + Invocation.getter(#mouseTracker), + ), + ) as _i12.MouseTracker); @override - _i13.PipelineOwner get rootPipelineOwner => - (super.noSuchMethod( - Invocation.getter(#rootPipelineOwner), - returnValue: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#rootPipelineOwner), - ), - returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.getter(#rootPipelineOwner), - ), - ) - as _i13.PipelineOwner); + _i12.PipelineOwner get rootPipelineOwner => (super.noSuchMethod( + Invocation.getter(#rootPipelineOwner), + returnValue: _FakePipelineOwner_20( + this, + Invocation.getter(#rootPipelineOwner), + ), + returnValueForMissingStub: _FakePipelineOwner_20( + this, + Invocation.getter(#rootPipelineOwner), + ), + ) as _i12.PipelineOwner); @override - Iterable<_i13.RenderView> get renderViews => - (super.noSuchMethod( - Invocation.getter(#renderViews), - returnValue: <_i13.RenderView>[], - returnValueForMissingStub: <_i13.RenderView>[], - ) - as Iterable<_i13.RenderView>); + Iterable<_i12.RenderView> get renderViews => (super.noSuchMethod( + Invocation.getter(#renderViews), + returnValue: <_i12.RenderView>[], + returnValueForMissingStub: <_i12.RenderView>[], + ) as Iterable<_i12.RenderView>); @override - bool get sendFramesToEngine => - (super.noSuchMethod( - Invocation.getter(#sendFramesToEngine), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get sendFramesToEngine => (super.noSuchMethod( + Invocation.getter(#sendFramesToEngine), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool get semanticsEnabled => - (super.noSuchMethod( - Invocation.getter(#semanticsEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get semanticsEnabled => (super.noSuchMethod( + Invocation.getter(#semanticsEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - int get debugOutstandingSemanticsHandles => - (super.noSuchMethod( - Invocation.getter(#debugOutstandingSemanticsHandles), - returnValue: 0, - returnValueForMissingStub: 0, - ) - as int); + int get debugOutstandingSemanticsHandles => (super.noSuchMethod( + Invocation.getter(#debugOutstandingSemanticsHandles), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); @override - _i10.AccessibilityFeatures get accessibilityFeatures => - (super.noSuchMethod( - Invocation.getter(#accessibilityFeatures), - returnValue: _FakeAccessibilityFeatures_23( - this, - Invocation.getter(#accessibilityFeatures), - ), - returnValueForMissingStub: _FakeAccessibilityFeatures_23( - this, - Invocation.getter(#accessibilityFeatures), - ), - ) - as _i10.AccessibilityFeatures); + _i9.AccessibilityFeatures get accessibilityFeatures => (super.noSuchMethod( + Invocation.getter(#accessibilityFeatures), + returnValue: _FakeAccessibilityFeatures_23( + this, + Invocation.getter(#accessibilityFeatures), + ), + returnValueForMissingStub: _FakeAccessibilityFeatures_23( + this, + Invocation.getter(#accessibilityFeatures), + ), + ) as _i9.AccessibilityFeatures); @override - bool get disableAnimations => - (super.noSuchMethod( - Invocation.getter(#disableAnimations), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool get disableAnimations => (super.noSuchMethod( + Invocation.getter(#disableAnimations), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override void initInstances() => super.noSuchMethod( - Invocation.method(#initInstances, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #initInstances, + [], + ), + returnValueForMissingStub: null, + ); @override void resetInternalState() => super.noSuchMethod( - Invocation.method(#resetInternalState, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #resetInternalState, + [], + ), + returnValueForMissingStub: null, + ); @override void initServiceExtensions() => super.noSuchMethod( - Invocation.method(#initServiceExtensions, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #initServiceExtensions, + [], + ), + returnValueForMissingStub: null, + ); @override - void addObserver(_i26.WidgetsBindingObserver? observer) => super.noSuchMethod( - Invocation.method(#addObserver, [observer]), - returnValueForMissingStub: null, - ); + void addObserver(_i25.WidgetsBindingObserver? observer) => super.noSuchMethod( + Invocation.method( + #addObserver, + [observer], + ), + returnValueForMissingStub: null, + ); @override - bool removeObserver(_i26.WidgetsBindingObserver? observer) => + bool removeObserver(_i25.WidgetsBindingObserver? observer) => (super.noSuchMethod( - Invocation.method(#removeObserver, [observer]), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + Invocation.method( + #removeObserver, + [observer], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i4.Future<_i10.AppExitResponse> handleRequestAppExit() => - (super.noSuchMethod( - Invocation.method(#handleRequestAppExit, []), - returnValue: _i4.Future<_i10.AppExitResponse>.value( - _i10.AppExitResponse.exit, - ), - returnValueForMissingStub: _i4.Future<_i10.AppExitResponse>.value( - _i10.AppExitResponse.exit, - ), - ) - as _i4.Future<_i10.AppExitResponse>); + _i4.Future<_i9.AppExitResponse> handleRequestAppExit() => (super.noSuchMethod( + Invocation.method( + #handleRequestAppExit, + [], + ), + returnValue: + _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), + returnValueForMissingStub: + _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), + ) as _i4.Future<_i9.AppExitResponse>); @override void handleMetricsChanged() => super.noSuchMethod( - Invocation.method(#handleMetricsChanged, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #handleMetricsChanged, + [], + ), + returnValueForMissingStub: null, + ); @override void handleTextScaleFactorChanged() => super.noSuchMethod( - Invocation.method(#handleTextScaleFactorChanged, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #handleTextScaleFactorChanged, + [], + ), + returnValueForMissingStub: null, + ); @override void handlePlatformBrightnessChanged() => super.noSuchMethod( - Invocation.method(#handlePlatformBrightnessChanged, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #handlePlatformBrightnessChanged, + [], + ), + returnValueForMissingStub: null, + ); @override void handleAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method(#handleAccessibilityFeaturesChanged, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #handleAccessibilityFeaturesChanged, + [], + ), + returnValueForMissingStub: null, + ); @override void handleLocaleChanged() => super.noSuchMethod( - Invocation.method(#handleLocaleChanged, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #handleLocaleChanged, + [], + ), + returnValueForMissingStub: null, + ); @override - void dispatchLocalesChanged(List<_i10.Locale>? locales) => super.noSuchMethod( - Invocation.method(#dispatchLocalesChanged, [locales]), - returnValueForMissingStub: null, - ); + void dispatchLocalesChanged(List<_i9.Locale>? locales) => super.noSuchMethod( + Invocation.method( + #dispatchLocalesChanged, + [locales], + ), + returnValueForMissingStub: null, + ); @override void dispatchAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method(#dispatchAccessibilityFeaturesChanged, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #dispatchAccessibilityFeaturesChanged, + [], + ), + returnValueForMissingStub: null, + ); @override - _i4.Future handlePopRoute() => - (super.noSuchMethod( - Invocation.method(#handlePopRoute, []), - returnValue: _i4.Future.value(false), - returnValueForMissingStub: _i4.Future.value(false), - ) - as _i4.Future); + _i4.Future handlePopRoute() => (super.noSuchMethod( + Invocation.method( + #handlePopRoute, + [], + ), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i4.Future handlePushRoute(String? route) => - (super.noSuchMethod( - Invocation.method(#handlePushRoute, [route]), - returnValue: _i4.Future.value(false), - returnValueForMissingStub: _i4.Future.value(false), - ) - as _i4.Future); + _i4.Future handlePushRoute(String? route) => (super.noSuchMethod( + Invocation.method( + #handlePushRoute, + [route], + ), + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - void handleAppLifecycleStateChanged(_i10.AppLifecycleState? state) => + void handleAppLifecycleStateChanged(_i9.AppLifecycleState? state) => super.noSuchMethod( - Invocation.method(#handleAppLifecycleStateChanged, [state]), + Invocation.method( + #handleAppLifecycleStateChanged, + [state], + ), returnValueForMissingStub: null, ); @override - void handleViewFocusChanged(_i10.ViewFocusEvent? event) => super.noSuchMethod( - Invocation.method(#handleViewFocusChanged, [event]), - returnValueForMissingStub: null, - ); + void handleViewFocusChanged(_i9.ViewFocusEvent? event) => super.noSuchMethod( + Invocation.method( + #handleViewFocusChanged, + [event], + ), + returnValueForMissingStub: null, + ); @override void handleMemoryPressure() => super.noSuchMethod( - Invocation.method(#handleMemoryPressure, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #handleMemoryPressure, + [], + ), + returnValueForMissingStub: null, + ); @override void drawFrame() => super.noSuchMethod( - Invocation.method(#drawFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #drawFrame, + [], + ), + returnValueForMissingStub: null, + ); @override - _i14.Widget wrapWithDefaultView(_i14.Widget? rootWidget) => + _i13.Widget wrapWithDefaultView(_i13.Widget? rootWidget) => (super.noSuchMethod( - Invocation.method(#wrapWithDefaultView, [rootWidget]), - returnValue: _FakeWidget_24( - this, - Invocation.method(#wrapWithDefaultView, [rootWidget]), - ), - returnValueForMissingStub: _FakeWidget_24( - this, - Invocation.method(#wrapWithDefaultView, [rootWidget]), - ), - ) - as _i14.Widget); + Invocation.method( + #wrapWithDefaultView, + [rootWidget], + ), + returnValue: _FakeWidget_24( + this, + Invocation.method( + #wrapWithDefaultView, + [rootWidget], + ), + ), + returnValueForMissingStub: _FakeWidget_24( + this, + Invocation.method( + #wrapWithDefaultView, + [rootWidget], + ), + ), + ) as _i13.Widget); @override - void scheduleAttachRootWidget(_i14.Widget? rootWidget) => super.noSuchMethod( - Invocation.method(#scheduleAttachRootWidget, [rootWidget]), - returnValueForMissingStub: null, - ); + void scheduleAttachRootWidget(_i13.Widget? rootWidget) => super.noSuchMethod( + Invocation.method( + #scheduleAttachRootWidget, + [rootWidget], + ), + returnValueForMissingStub: null, + ); @override - void attachRootWidget(_i14.Widget? rootWidget) => super.noSuchMethod( - Invocation.method(#attachRootWidget, [rootWidget]), - returnValueForMissingStub: null, - ); + void attachRootWidget(_i13.Widget? rootWidget) => super.noSuchMethod( + Invocation.method( + #attachRootWidget, + [rootWidget], + ), + returnValueForMissingStub: null, + ); @override - void attachToBuildOwner(_i26.RootWidget? widget) => super.noSuchMethod( - Invocation.method(#attachToBuildOwner, [widget]), - returnValueForMissingStub: null, - ); + void attachToBuildOwner(_i25.RootWidget? widget) => super.noSuchMethod( + Invocation.method( + #attachToBuildOwner, + [widget], + ), + returnValueForMissingStub: null, + ); @override - _i4.Future performReassemble() => - (super.noSuchMethod( - Invocation.method(#performReassemble, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future performReassemble() => (super.noSuchMethod( + Invocation.method( + #performReassemble, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i10.Locale? computePlatformResolvedLocale( - List<_i10.Locale>? supportedLocales, - ) => + _i9.Locale? computePlatformResolvedLocale( + List<_i9.Locale>? supportedLocales) => (super.noSuchMethod( - Invocation.method(#computePlatformResolvedLocale, [ - supportedLocales, - ]), - returnValueForMissingStub: null, - ) - as _i10.Locale?); + Invocation.method( + #computePlatformResolvedLocale, + [supportedLocales], + ), + returnValueForMissingStub: null, + ) as _i9.Locale?); @override - bool debugCheckZone(String? entryPoint) => - (super.noSuchMethod( - Invocation.method(#debugCheckZone, [entryPoint]), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool debugCheckZone(String? entryPoint) => (super.noSuchMethod( + Invocation.method( + #debugCheckZone, + [entryPoint], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override _i4.Future lockEvents(_i4.Future Function()? callback) => (super.noSuchMethod( - Invocation.method(#lockEvents, [callback]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + Invocation.method( + #lockEvents, + [callback], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override void unlocked() => super.noSuchMethod( - Invocation.method(#unlocked, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #unlocked, + [], + ), + returnValueForMissingStub: null, + ); @override - _i4.Future reassembleApplication() => - (super.noSuchMethod( - Invocation.method(#reassembleApplication, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future reassembleApplication() => (super.noSuchMethod( + Invocation.method( + #reassembleApplication, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override void registerSignalServiceExtension({ required String? name, required _i7.AsyncCallback? callback, - }) => super.noSuchMethod( - Invocation.method(#registerSignalServiceExtension, [], { - #name: name, - #callback: callback, - }), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #registerSignalServiceExtension, + [], + { + #name: name, + #callback: callback, + }, + ), + returnValueForMissingStub: null, + ); @override void registerBoolServiceExtension({ required String? name, required _i7.AsyncValueGetter? getter, required _i7.AsyncValueSetter? setter, - }) => super.noSuchMethod( - Invocation.method(#registerBoolServiceExtension, [], { - #name: name, - #getter: getter, - #setter: setter, - }), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #registerBoolServiceExtension, + [], + { + #name: name, + #getter: getter, + #setter: setter, + }, + ), + returnValueForMissingStub: null, + ); @override void registerNumericServiceExtension({ required String? name, required _i7.AsyncValueGetter? getter, required _i7.AsyncValueSetter? setter, - }) => super.noSuchMethod( - Invocation.method(#registerNumericServiceExtension, [], { - #name: name, - #getter: getter, - #setter: setter, - }), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #registerNumericServiceExtension, + [], + { + #name: name, + #getter: getter, + #setter: setter, + }, + ), + returnValueForMissingStub: null, + ); @override - void postEvent(String? eventKind, Map? eventData) => + void postEvent( + String? eventKind, + Map? eventData, + ) => super.noSuchMethod( - Invocation.method(#postEvent, [eventKind, eventData]), + Invocation.method( + #postEvent, + [ + eventKind, + eventData, + ], + ), returnValueForMissingStub: null, ); @@ -1827,557 +2096,763 @@ class MockWidgetsBinding extends _i1.Mock implements _i26.WidgetsBinding { required String? name, required _i7.AsyncValueGetter? getter, required _i7.AsyncValueSetter? setter, - }) => super.noSuchMethod( - Invocation.method(#registerStringServiceExtension, [], { - #name: name, - #getter: getter, - #setter: setter, - }), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #registerStringServiceExtension, + [], + { + #name: name, + #getter: getter, + #setter: setter, + }, + ), + returnValueForMissingStub: null, + ); @override void registerServiceExtension({ required String? name, required _i7.ServiceExtensionCallback? callback, - }) => super.noSuchMethod( - Invocation.method(#registerServiceExtension, [], { - #name: name, - #callback: callback, - }), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #registerServiceExtension, + [], + { + #name: name, + #callback: callback, + }, + ), + returnValueForMissingStub: null, + ); @override - _i11.BinaryMessenger createBinaryMessenger() => - (super.noSuchMethod( - Invocation.method(#createBinaryMessenger, []), - returnValue: _FakeBinaryMessenger_13( - this, - Invocation.method(#createBinaryMessenger, []), - ), - returnValueForMissingStub: _FakeBinaryMessenger_13( - this, - Invocation.method(#createBinaryMessenger, []), - ), - ) - as _i11.BinaryMessenger); + _i10.BinaryMessenger createBinaryMessenger() => (super.noSuchMethod( + Invocation.method( + #createBinaryMessenger, + [], + ), + returnValue: _FakeBinaryMessenger_12( + this, + Invocation.method( + #createBinaryMessenger, + [], + ), + ), + returnValueForMissingStub: _FakeBinaryMessenger_12( + this, + Invocation.method( + #createBinaryMessenger, + [], + ), + ), + ) as _i10.BinaryMessenger); @override _i4.Future handleSystemMessage(Object? systemMessage) => (super.noSuchMethod( - Invocation.method(#handleSystemMessage, [systemMessage]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + Invocation.method( + #handleSystemMessage, + [systemMessage], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override void initLicenses() => super.noSuchMethod( - Invocation.method(#initLicenses, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #initLicenses, + [], + ), + returnValueForMissingStub: null, + ); @override void evict(String? asset) => super.noSuchMethod( - Invocation.method(#evict, [asset]), - returnValueForMissingStub: null, - ); + Invocation.method( + #evict, + [asset], + ), + returnValueForMissingStub: null, + ); @override void readInitialLifecycleStateFromNativeWindow() => super.noSuchMethod( - Invocation.method(#readInitialLifecycleStateFromNativeWindow, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #readInitialLifecycleStateFromNativeWindow, + [], + ), + returnValueForMissingStub: null, + ); @override - _i4.Future<_i10.AppExitResponse> exitApplication( - _i10.AppExitType? exitType, [ + _i4.Future<_i9.AppExitResponse> exitApplication( + _i9.AppExitType? exitType, [ int? exitCode = 0, ]) => (super.noSuchMethod( - Invocation.method(#exitApplication, [exitType, exitCode]), - returnValue: _i4.Future<_i10.AppExitResponse>.value( - _i10.AppExitResponse.exit, - ), - returnValueForMissingStub: _i4.Future<_i10.AppExitResponse>.value( - _i10.AppExitResponse.exit, - ), - ) - as _i4.Future<_i10.AppExitResponse>); + Invocation.method( + #exitApplication, + [ + exitType, + exitCode, + ], + ), + returnValue: + _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), + returnValueForMissingStub: + _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), + ) as _i4.Future<_i9.AppExitResponse>); @override - _i11.RestorationManager createRestorationManager() => - (super.noSuchMethod( - Invocation.method(#createRestorationManager, []), - returnValue: _FakeRestorationManager_15( - this, - Invocation.method(#createRestorationManager, []), - ), - returnValueForMissingStub: _FakeRestorationManager_15( - this, - Invocation.method(#createRestorationManager, []), - ), - ) - as _i11.RestorationManager); + _i10.RestorationManager createRestorationManager() => (super.noSuchMethod( + Invocation.method( + #createRestorationManager, + [], + ), + returnValue: _FakeRestorationManager_14( + this, + Invocation.method( + #createRestorationManager, + [], + ), + ), + returnValueForMissingStub: _FakeRestorationManager_14( + this, + Invocation.method( + #createRestorationManager, + [], + ), + ), + ) as _i10.RestorationManager); @override - void setSystemUiChangeCallback(_i11.SystemUiChangeCallback? callback) => + void setSystemUiChangeCallback(_i10.SystemUiChangeCallback? callback) => super.noSuchMethod( - Invocation.method(#setSystemUiChangeCallback, [callback]), + Invocation.method( + #setSystemUiChangeCallback, + [callback], + ), returnValueForMissingStub: null, ); @override - _i4.Future initializationComplete() => - (super.noSuchMethod( - Invocation.method(#initializationComplete, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future initializationComplete() => (super.noSuchMethod( + Invocation.method( + #initializationComplete, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - void addTimingsCallback(_i10.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method(#addTimingsCallback, [callback]), - returnValueForMissingStub: null, - ); + void addTimingsCallback(_i9.TimingsCallback? callback) => super.noSuchMethod( + Invocation.method( + #addTimingsCallback, + [callback], + ), + returnValueForMissingStub: null, + ); @override - void removeTimingsCallback(_i10.TimingsCallback? callback) => + void removeTimingsCallback(_i9.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method(#removeTimingsCallback, [callback]), + Invocation.method( + #removeTimingsCallback, + [callback], + ), returnValueForMissingStub: null, ); @override _i4.Future scheduleTask( - _i27.TaskCallback? task, - _i27.Priority? priority, { + _i26.TaskCallback? task, + _i26.Priority? priority, { String? debugLabel, - _i28.Flow? flow, + _i27.Flow? flow, }) => (super.noSuchMethod( - Invocation.method( - #scheduleTask, - [task, priority], - {#debugLabel: debugLabel, #flow: flow}, - ), - returnValue: - _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method( - #scheduleTask, - [task, priority], - {#debugLabel: debugLabel, #flow: flow}, - ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method( - #scheduleTask, - [task, priority], - {#debugLabel: debugLabel, #flow: flow}, - ), + Invocation.method( + #scheduleTask, + [ + task, + priority, + ], + { + #debugLabel: debugLabel, + #flow: flow, + }, + ), + returnValue: _i16.ifNotNull( + _i16.dummyValueOrNull( + this, + Invocation.method( + #scheduleTask, + [ + task, + priority, + ], + { + #debugLabel: debugLabel, + #flow: flow, + }, ), - returnValueForMissingStub: - _i17.ifNotNull( - _i17.dummyValueOrNull( - this, - Invocation.method( - #scheduleTask, - [task, priority], - {#debugLabel: debugLabel, #flow: flow}, - ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_3( - this, - Invocation.method( - #scheduleTask, - [task, priority], - {#debugLabel: debugLabel, #flow: flow}, - ), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method( + #scheduleTask, + [ + task, + priority, + ], + { + #debugLabel: debugLabel, + #flow: flow, + }, + ), + ), + returnValueForMissingStub: _i16.ifNotNull( + _i16.dummyValueOrNull( + this, + Invocation.method( + #scheduleTask, + [ + task, + priority, + ], + { + #debugLabel: debugLabel, + #flow: flow, + }, ), - ) - as _i4.Future); + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_3( + this, + Invocation.method( + #scheduleTask, + [ + task, + priority, + ], + { + #debugLabel: debugLabel, + #flow: flow, + }, + ), + ), + ) as _i4.Future); @override - bool handleEventLoopCallback() => - (super.noSuchMethod( - Invocation.method(#handleEventLoopCallback, []), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool handleEventLoopCallback() => (super.noSuchMethod( + Invocation.method( + #handleEventLoopCallback, + [], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override int scheduleFrameCallback( - _i27.FrameCallback? callback, { + _i26.FrameCallback? callback, { bool? rescheduling = false, - bool? scheduleNewFrame = true, }) => (super.noSuchMethod( - Invocation.method( - #scheduleFrameCallback, - [callback], - { - #rescheduling: rescheduling, - #scheduleNewFrame: scheduleNewFrame, - }, - ), - returnValue: 0, - returnValueForMissingStub: 0, - ) - as int); + Invocation.method( + #scheduleFrameCallback, + [callback], + {#rescheduling: rescheduling}, + ), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); @override void cancelFrameCallbackWithId(int? id) => super.noSuchMethod( - Invocation.method(#cancelFrameCallbackWithId, [id]), - returnValueForMissingStub: null, - ); + Invocation.method( + #cancelFrameCallbackWithId, + [id], + ), + returnValueForMissingStub: null, + ); @override - bool debugAssertNoTransientCallbacks(String? reason) => - (super.noSuchMethod( - Invocation.method(#debugAssertNoTransientCallbacks, [reason]), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool debugAssertNoTransientCallbacks(String? reason) => (super.noSuchMethod( + Invocation.method( + #debugAssertNoTransientCallbacks, + [reason], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override bool debugAssertNoPendingPerformanceModeRequests(String? reason) => (super.noSuchMethod( - Invocation.method(#debugAssertNoPendingPerformanceModeRequests, [ - reason, - ]), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + Invocation.method( + #debugAssertNoPendingPerformanceModeRequests, + [reason], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - bool debugAssertNoTimeDilation(String? reason) => - (super.noSuchMethod( - Invocation.method(#debugAssertNoTimeDilation, [reason]), - returnValue: false, - returnValueForMissingStub: false, - ) - as bool); + bool debugAssertNoTimeDilation(String? reason) => (super.noSuchMethod( + Invocation.method( + #debugAssertNoTimeDilation, + [reason], + ), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - void addPersistentFrameCallback(_i27.FrameCallback? callback) => + void addPersistentFrameCallback(_i26.FrameCallback? callback) => super.noSuchMethod( - Invocation.method(#addPersistentFrameCallback, [callback]), + Invocation.method( + #addPersistentFrameCallback, + [callback], + ), returnValueForMissingStub: null, ); @override void addPostFrameCallback( - _i27.FrameCallback? callback, { - String? debugLabel = 'callback', - }) => super.noSuchMethod( - Invocation.method( - #addPostFrameCallback, - [callback], - {#debugLabel: debugLabel}, - ), - returnValueForMissingStub: null, - ); + _i26.FrameCallback? callback, { + String? debugLabel = r'callback', + }) => + super.noSuchMethod( + Invocation.method( + #addPostFrameCallback, + [callback], + {#debugLabel: debugLabel}, + ), + returnValueForMissingStub: null, + ); @override void ensureFrameCallbacksRegistered() => super.noSuchMethod( - Invocation.method(#ensureFrameCallbacksRegistered, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #ensureFrameCallbacksRegistered, + [], + ), + returnValueForMissingStub: null, + ); @override void ensureVisualUpdate() => super.noSuchMethod( - Invocation.method(#ensureVisualUpdate, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #ensureVisualUpdate, + [], + ), + returnValueForMissingStub: null, + ); @override void scheduleFrame() => super.noSuchMethod( - Invocation.method(#scheduleFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #scheduleFrame, + [], + ), + returnValueForMissingStub: null, + ); @override void scheduleForcedFrame() => super.noSuchMethod( - Invocation.method(#scheduleForcedFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #scheduleForcedFrame, + [], + ), + returnValueForMissingStub: null, + ); @override void scheduleWarmUpFrame() => super.noSuchMethod( - Invocation.method(#scheduleWarmUpFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #scheduleWarmUpFrame, + [], + ), + returnValueForMissingStub: null, + ); @override void resetEpoch() => super.noSuchMethod( - Invocation.method(#resetEpoch, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #resetEpoch, + [], + ), + returnValueForMissingStub: null, + ); @override void handleBeginFrame(Duration? rawTimeStamp) => super.noSuchMethod( - Invocation.method(#handleBeginFrame, [rawTimeStamp]), - returnValueForMissingStub: null, - ); + Invocation.method( + #handleBeginFrame, + [rawTimeStamp], + ), + returnValueForMissingStub: null, + ); @override - _i27.PerformanceModeRequestHandle? requestPerformanceMode( - _i10.DartPerformanceMode? mode, - ) => + _i26.PerformanceModeRequestHandle? requestPerformanceMode( + _i9.DartPerformanceMode? mode) => (super.noSuchMethod( - Invocation.method(#requestPerformanceMode, [mode]), - returnValueForMissingStub: null, - ) - as _i27.PerformanceModeRequestHandle?); + Invocation.method( + #requestPerformanceMode, + [mode], + ), + returnValueForMissingStub: null, + ) as _i26.PerformanceModeRequestHandle?); @override void handleDrawFrame() => super.noSuchMethod( - Invocation.method(#handleDrawFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #handleDrawFrame, + [], + ), + returnValueForMissingStub: null, + ); @override void cancelPointer(int? pointer) => super.noSuchMethod( - Invocation.method(#cancelPointer, [pointer]), - returnValueForMissingStub: null, - ); + Invocation.method( + #cancelPointer, + [pointer], + ), + returnValueForMissingStub: null, + ); @override - void handlePointerEvent(_i11.PointerEvent? event) => super.noSuchMethod( - Invocation.method(#handlePointerEvent, [event]), - returnValueForMissingStub: null, - ); + void handlePointerEvent(_i10.PointerEvent? event) => super.noSuchMethod( + Invocation.method( + #handlePointerEvent, + [event], + ), + returnValueForMissingStub: null, + ); @override void hitTestInView( - _i12.HitTestResult? result, - _i10.Offset? position, + _i11.HitTestResult? result, + _i9.Offset? position, int? viewId, - ) => super.noSuchMethod( - Invocation.method(#hitTestInView, [result, position, viewId]), - returnValueForMissingStub: null, - ); + ) => + super.noSuchMethod( + Invocation.method( + #hitTestInView, + [ + result, + position, + viewId, + ], + ), + returnValueForMissingStub: null, + ); @override - void hitTest(_i12.HitTestResult? result, _i10.Offset? position) => + void hitTest( + _i11.HitTestResult? result, + _i9.Offset? position, + ) => super.noSuchMethod( - Invocation.method(#hitTest, [result, position]), + Invocation.method( + #hitTest, + [ + result, + position, + ], + ), returnValueForMissingStub: null, ); @override void dispatchEvent( - _i11.PointerEvent? event, - _i12.HitTestResult? hitTestResult, - ) => super.noSuchMethod( - Invocation.method(#dispatchEvent, [event, hitTestResult]), - returnValueForMissingStub: null, - ); + _i10.PointerEvent? event, + _i11.HitTestResult? hitTestResult, + ) => + super.noSuchMethod( + Invocation.method( + #dispatchEvent, + [ + event, + hitTestResult, + ], + ), + returnValueForMissingStub: null, + ); @override void handleEvent( - _i11.PointerEvent? event, - _i12.HitTestEntry<_i12.HitTestTarget>? entry, - ) => super.noSuchMethod( - Invocation.method(#handleEvent, [event, entry]), - returnValueForMissingStub: null, - ); + _i10.PointerEvent? event, + _i11.HitTestEntry<_i11.HitTestTarget>? entry, + ) => + super.noSuchMethod( + Invocation.method( + #handleEvent, + [ + event, + entry, + ], + ), + returnValueForMissingStub: null, + ); @override void resetGestureBinding() => super.noSuchMethod( - Invocation.method(#resetGestureBinding, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #resetGestureBinding, + [], + ), + returnValueForMissingStub: null, + ); @override - _i13.PipelineOwner createRootPipelineOwner() => - (super.noSuchMethod( - Invocation.method(#createRootPipelineOwner, []), - returnValue: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.method(#createRootPipelineOwner, []), - ), - returnValueForMissingStub: _i17.dummyValue<_i13.PipelineOwner>( - this, - Invocation.method(#createRootPipelineOwner, []), - ), - ) - as _i13.PipelineOwner); + _i12.PipelineOwner createRootPipelineOwner() => (super.noSuchMethod( + Invocation.method( + #createRootPipelineOwner, + [], + ), + returnValue: _FakePipelineOwner_20( + this, + Invocation.method( + #createRootPipelineOwner, + [], + ), + ), + returnValueForMissingStub: _FakePipelineOwner_20( + this, + Invocation.method( + #createRootPipelineOwner, + [], + ), + ), + ) as _i12.PipelineOwner); @override - void addRenderView(_i13.RenderView? view) => super.noSuchMethod( - Invocation.method(#addRenderView, [view]), - returnValueForMissingStub: null, - ); + void addRenderView(_i12.RenderView? view) => super.noSuchMethod( + Invocation.method( + #addRenderView, + [view], + ), + returnValueForMissingStub: null, + ); @override - void removeRenderView(_i13.RenderView? view) => super.noSuchMethod( - Invocation.method(#removeRenderView, [view]), - returnValueForMissingStub: null, - ); + void removeRenderView(_i12.RenderView? view) => super.noSuchMethod( + Invocation.method( + #removeRenderView, + [view], + ), + returnValueForMissingStub: null, + ); @override - _i13.ViewConfiguration createViewConfigurationFor( - _i13.RenderView? renderView, - ) => + _i12.ViewConfiguration createViewConfigurationFor( + _i12.RenderView? renderView) => (super.noSuchMethod( - Invocation.method(#createViewConfigurationFor, [renderView]), - returnValue: _FakeViewConfiguration_25( - this, - Invocation.method(#createViewConfigurationFor, [renderView]), - ), - returnValueForMissingStub: _FakeViewConfiguration_25( - this, - Invocation.method(#createViewConfigurationFor, [renderView]), - ), - ) - as _i13.ViewConfiguration); + Invocation.method( + #createViewConfigurationFor, + [renderView], + ), + returnValue: _FakeViewConfiguration_25( + this, + Invocation.method( + #createViewConfigurationFor, + [renderView], + ), + ), + returnValueForMissingStub: _FakeViewConfiguration_25( + this, + Invocation.method( + #createViewConfigurationFor, + [renderView], + ), + ), + ) as _i12.ViewConfiguration); @override - _i10.SceneBuilder createSceneBuilder() => - (super.noSuchMethod( - Invocation.method(#createSceneBuilder, []), - returnValue: _FakeSceneBuilder_26( - this, - Invocation.method(#createSceneBuilder, []), - ), - returnValueForMissingStub: _FakeSceneBuilder_26( - this, - Invocation.method(#createSceneBuilder, []), - ), - ) - as _i10.SceneBuilder); + _i9.SceneBuilder createSceneBuilder() => (super.noSuchMethod( + Invocation.method( + #createSceneBuilder, + [], + ), + returnValue: _FakeSceneBuilder_26( + this, + Invocation.method( + #createSceneBuilder, + [], + ), + ), + returnValueForMissingStub: _FakeSceneBuilder_26( + this, + Invocation.method( + #createSceneBuilder, + [], + ), + ), + ) as _i9.SceneBuilder); @override - _i10.PictureRecorder createPictureRecorder() => - (super.noSuchMethod( - Invocation.method(#createPictureRecorder, []), - returnValue: _FakePictureRecorder_27( - this, - Invocation.method(#createPictureRecorder, []), - ), - returnValueForMissingStub: _FakePictureRecorder_27( - this, - Invocation.method(#createPictureRecorder, []), - ), - ) - as _i10.PictureRecorder); + _i9.PictureRecorder createPictureRecorder() => (super.noSuchMethod( + Invocation.method( + #createPictureRecorder, + [], + ), + returnValue: _FakePictureRecorder_27( + this, + Invocation.method( + #createPictureRecorder, + [], + ), + ), + returnValueForMissingStub: _FakePictureRecorder_27( + this, + Invocation.method( + #createPictureRecorder, + [], + ), + ), + ) as _i9.PictureRecorder); @override - _i10.Canvas createCanvas(_i10.PictureRecorder? recorder) => - (super.noSuchMethod( - Invocation.method(#createCanvas, [recorder]), - returnValue: _FakeCanvas_28( - this, - Invocation.method(#createCanvas, [recorder]), - ), - returnValueForMissingStub: _FakeCanvas_28( - this, - Invocation.method(#createCanvas, [recorder]), - ), - ) - as _i10.Canvas); + _i9.Canvas createCanvas(_i9.PictureRecorder? recorder) => (super.noSuchMethod( + Invocation.method( + #createCanvas, + [recorder], + ), + returnValue: _FakeCanvas_28( + this, + Invocation.method( + #createCanvas, + [recorder], + ), + ), + returnValueForMissingStub: _FakeCanvas_28( + this, + Invocation.method( + #createCanvas, + [recorder], + ), + ), + ) as _i9.Canvas); @override - void initMouseTracker([_i13.MouseTracker? tracker]) => super.noSuchMethod( - Invocation.method(#initMouseTracker, [tracker]), - returnValueForMissingStub: null, - ); + void initMouseTracker([_i12.MouseTracker? tracker]) => super.noSuchMethod( + Invocation.method( + #initMouseTracker, + [tracker], + ), + returnValueForMissingStub: null, + ); @override - void performSemanticsAction(_i10.SemanticsActionEvent? action) => + void performSemanticsAction(_i9.SemanticsActionEvent? action) => super.noSuchMethod( - Invocation.method(#performSemanticsAction, [action]), + Invocation.method( + #performSemanticsAction, + [action], + ), returnValueForMissingStub: null, ); @override void deferFirstFrame() => super.noSuchMethod( - Invocation.method(#deferFirstFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #deferFirstFrame, + [], + ), + returnValueForMissingStub: null, + ); @override void allowFirstFrame() => super.noSuchMethod( - Invocation.method(#allowFirstFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #allowFirstFrame, + [], + ), + returnValueForMissingStub: null, + ); @override void resetFirstFrameSent() => super.noSuchMethod( - Invocation.method(#resetFirstFrameSent, []), - returnValueForMissingStub: null, - ); + Invocation.method( + #resetFirstFrameSent, + [], + ), + returnValueForMissingStub: null, + ); @override - void addSemanticsEnabledListener(_i10.VoidCallback? listener) => + void addSemanticsEnabledListener(_i9.VoidCallback? listener) => super.noSuchMethod( - Invocation.method(#addSemanticsEnabledListener, [listener]), + Invocation.method( + #addSemanticsEnabledListener, + [listener], + ), returnValueForMissingStub: null, ); @override - void removeSemanticsEnabledListener(_i10.VoidCallback? listener) => + void removeSemanticsEnabledListener(_i9.VoidCallback? listener) => super.noSuchMethod( - Invocation.method(#removeSemanticsEnabledListener, [listener]), + Invocation.method( + #removeSemanticsEnabledListener, + [listener], + ), returnValueForMissingStub: null, ); @override - void addSemanticsActionListener( - _i7.ValueSetter<_i10.SemanticsActionEvent>? listener, - ) => super.noSuchMethod( - Invocation.method(#addSemanticsActionListener, [listener]), - returnValueForMissingStub: null, - ); - - @override - void removeSemanticsActionListener( - _i7.ValueSetter<_i10.SemanticsActionEvent>? listener, - ) => super.noSuchMethod( - Invocation.method(#removeSemanticsActionListener, [listener]), - returnValueForMissingStub: null, - ); - - @override - _i13.SemanticsHandle ensureSemantics() => - (super.noSuchMethod( - Invocation.method(#ensureSemantics, []), - returnValue: _FakeSemanticsHandle_29( - this, - Invocation.method(#ensureSemantics, []), - ), - returnValueForMissingStub: _FakeSemanticsHandle_29( - this, - Invocation.method(#ensureSemantics, []), - ), - ) - as _i13.SemanticsHandle); + _i12.SemanticsHandle ensureSemantics() => (super.noSuchMethod( + Invocation.method( + #ensureSemantics, + [], + ), + returnValue: _FakeSemanticsHandle_29( + this, + Invocation.method( + #ensureSemantics, + [], + ), + ), + returnValueForMissingStub: _FakeSemanticsHandle_29( + this, + Invocation.method( + #ensureSemantics, + [], + ), + ), + ) as _i12.SemanticsHandle); @override - _i10.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => + _i9.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => (super.noSuchMethod( - Invocation.method(#createSemanticsUpdateBuilder, []), - returnValue: _FakeSemanticsUpdateBuilder_30( - this, - Invocation.method(#createSemanticsUpdateBuilder, []), - ), - returnValueForMissingStub: _FakeSemanticsUpdateBuilder_30( - this, - Invocation.method(#createSemanticsUpdateBuilder, []), - ), - ) - as _i10.SemanticsUpdateBuilder); + Invocation.method( + #createSemanticsUpdateBuilder, + [], + ), + returnValue: _FakeSemanticsUpdateBuilder_30( + this, + Invocation.method( + #createSemanticsUpdateBuilder, + [], + ), + ), + returnValueForMissingStub: _FakeSemanticsUpdateBuilder_30( + this, + Invocation.method( + #createSemanticsUpdateBuilder, + [], + ), + ), + ) as _i9.SemanticsUpdateBuilder); }