diff --git a/.github/actions/setup-flutter/action.yml b/.github/actions/setup-flutter/action.yml index 83c2521..3a6438c 100644 --- a/.github/actions/setup-flutter/action.yml +++ b/.github/actions/setup-flutter/action.yml @@ -9,7 +9,7 @@ inputs: flutter-version: description: "Flutter SDK version to install from the stable channel" required: false - default: "3.29.2" + default: "3.38.0" sha256: description: "Expected SHA-256 of the Linux SDK archive. Empty skips verification." required: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e1bbc2..6c2714d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ permissions: env: ARTIFACTORY_URL: ${{ vars.ARTIFACTORY_URL }} FLUTTER_SUPPRESS_ANALYTICS: "true" - FLUTTER_VERSION: "3.29.2" + FLUTTER_VERSION: "3.38.0" jobs: test: @@ -44,7 +44,7 @@ jobs: uses: ./.github/actions/setup-flutter with: flutter-version: ${{ env.FLUTTER_VERSION }} - sha256: 6096f21370773093ec19240e133664c1c12eb8b5a85605a92d16ce462a18eac4 + sha256: c9cc746283f02dbad5da2785b4837b62f7956e3135fa9af87c7dde2d2bd6c5a6 - name: Authenticate with Artifactory if: ${{ !github.event.pull_request.head.repo.fork }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fe524a7..6d5b717 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ permissions: env: ARTIFACTORY_URL: ${{ vars.ARTIFACTORY_URL }} FLUTTER_SUPPRESS_ANALYTICS: "true" - FLUTTER_VERSION: "3.29.2" + FLUTTER_VERSION: "3.38.0" jobs: test: @@ -36,7 +36,7 @@ jobs: uses: ./.github/actions/setup-flutter with: flutter-version: ${{ env.FLUTTER_VERSION }} - sha256: 6096f21370773093ec19240e133664c1c12eb8b5a85605a92d16ce462a18eac4 + sha256: c9cc746283f02dbad5da2785b4837b62f7956e3135fa9af87c7dde2d2bd6c5a6 - name: Authenticate with Artifactory uses: ./.github/actions/artifactory-oidc @@ -62,7 +62,7 @@ jobs: uses: ./.github/actions/setup-flutter with: flutter-version: ${{ env.FLUTTER_VERSION }} - sha256: 6096f21370773093ec19240e133664c1c12eb8b5a85605a92d16ce462a18eac4 + sha256: c9cc746283f02dbad5da2785b4837b62f7956e3135fa9af87c7dde2d2bd6c5a6 - name: Publish to pub.dev (Trusted Publishing) run: dart pub publish --force diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 0b159f7..42f66d6 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -10,6 +10,7 @@ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 3B5C067C318D8DD07D23BA94 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 98E2D8A73DE7B28F12DCB802 /* Pods_Runner.framework */; }; + A1B2C3D41F00000100000001 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A1B2C3D41F00000100000002 /* SceneDelegate.swift */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; @@ -36,6 +37,7 @@ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 5D511AE6D5667D367382F8FB /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + A1B2C3D41F00000100000002 /* SceneDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; @@ -115,6 +117,7 @@ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + A1B2C3D41F00000100000002 /* SceneDelegate.swift */, 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, ); path = Runner; @@ -280,6 +283,7 @@ buildActionMask = 2147483647; files = ( 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + A1B2C3D41F00000100000001 /* SceneDelegate.swift in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 70693e4..6bea110 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -1,13 +1,16 @@ import UIKit import Flutter -@UIApplicationMain -@objc class AppDelegate: FlutterAppDelegate { +@main +@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } + + func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { + GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) + } } diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 4698a4a..830a318 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -47,5 +47,37 @@ UIApplicationSupportsIndirectInputEvents + CFBundleURLTypes + + + CFBundleURLName + segment.analytics.example + CFBundleURLSchemes + + segmentexample + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneConfigurationName + flutter + UISceneStoryboardFile + Main + + + + diff --git a/example/ios/Runner/SceneDelegate.swift b/example/ios/Runner/SceneDelegate.swift new file mode 100644 index 0000000..de2a22f --- /dev/null +++ b/example/ios/Runner/SceneDelegate.swift @@ -0,0 +1,5 @@ +import Flutter +import UIKit + +class SceneDelegate: FlutterSceneDelegate { +} diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 33af41f..9e4e115 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.2.0 + +- Added iOS UIScene life cycle support (deep links are now received via `scene(_:openURLContexts:)`) +- **Breaking:** requires Flutter 3.38 or newer. Apps on an older Flutter version should stay on `segment_analytics: 1.1.13` + ## 1.1.13 - Fixed Swift Package Manager support for iOS and macOS: the package now uses the layout Flutter 3.44+ expects (#213) diff --git a/packages/core/README.md b/packages/core/README.md index 59a3fb3..196efd2 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -58,6 +58,8 @@ Run: `flutter pub add segment_analytics` +> **Flutter version compatibility:** `segment_analytics` 1.2.0 and newer require Flutter 3.38+ (iOS UIScene life cycle support). If you are on an older Flutter version, pin `segment_analytics: 1.1.13`. + ```dart import 'package:segment_analytics/client.dart'; ``` diff --git a/packages/core/analysis_options.yaml b/packages/core/analysis_options.yaml index a5744c1..46a20b2 100644 --- a/packages/core/analysis_options.yaml +++ b/packages/core/analysis_options.yaml @@ -2,3 +2,9 @@ include: package:flutter_lints/flutter.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options + +analyzer: + exclude: + # Generated by mockito; references Flutter-internal members that trigger + # invalid_use_of_internal_member on newer Flutter versions. + - test/mocks/mocks.mocks.dart diff --git a/packages/core/ios/segment_analytics/Sources/segment_analytics/AnalyticsPlugin.swift b/packages/core/ios/segment_analytics/Sources/segment_analytics/AnalyticsPlugin.swift index 0dde117..3014b46 100644 --- a/packages/core/ios/segment_analytics/Sources/segment_analytics/AnalyticsPlugin.swift +++ b/packages/core/ios/segment_analytics/Sources/segment_analytics/AnalyticsPlugin.swift @@ -2,7 +2,7 @@ import Flutter import UIKit import Foundation -public class AnalyticsPlugin: NSObject, FlutterPlugin, NativeContextApi, FlutterStreamHandler, FlutterApplicationLifeCycleDelegate { +public class AnalyticsPlugin: NSObject, FlutterPlugin, NativeContextApi, FlutterStreamHandler, FlutterApplicationLifeCycleDelegate, FlutterSceneLifeCycleDelegate { private var pendingDeeplinkEventsQueue:[[String:String?]] = [] public func onListen(withArguments arguments: Any?, eventSink events: @escaping FlutterEventSink) -> FlutterError? { _eventSink = events @@ -16,15 +16,26 @@ public class AnalyticsPlugin: NSObject, FlutterPlugin, NativeContextApi, Flutter } var _eventSink:FlutterEventSink?; - public func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool{ - let sourceApplication = options[.sourceApplication] as? String; + private func handleDeeplink(url: URL, sourceApplication: String?) { + let event: [String:String?] = ["url": url.absoluteString, "referring_application": sourceApplication] if (_eventSink != nil) { - _eventSink?(["url": url.absoluteString, "referring_application": sourceApplication]) - }else{ - pendingDeeplinkEventsQueue.append(["url": url.absoluteString, "referring_application": sourceApplication]); + _eventSink?(event) + } else { + pendingDeeplinkEventsQueue.append(event) } + } + // UIApplicationDelegate path (apps that have not adopted the UIScene life cycle). + public func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool{ + handleDeeplink(url: url, sourceApplication: options[.sourceApplication] as? String) + return false + } + // UIScene path: Flutter forwards both warm URLs and the cold-start launch URL here. + public func scene(_ scene: UIScene, openURLContexts URLContexts: Set) -> Bool { + for context in URLContexts { + handleDeeplink(url: context.url, sourceApplication: context.options.sourceApplication) + } return false } @@ -105,5 +116,6 @@ public class AnalyticsPlugin: NSObject, FlutterPlugin, NativeContextApi, Flutter let channel:FlutterEventChannel = FlutterEventChannel(name: "analytics/deep_link_events", binaryMessenger: registrar.messenger()) channel.setStreamHandler(api) registrar.addApplicationDelegate(plugin) + registrar.addSceneDelegate(plugin) } } diff --git a/packages/core/lib/version.dart b/packages/core/lib/version.dart index 03bddbe..3490806 100644 --- a/packages/core/lib/version.dart +++ b/packages/core/lib/version.dart @@ -1 +1 @@ -const segmentVersion = "1.1.13"; +const segmentVersion = "1.2.0"; diff --git a/packages/core/pubspec.yaml b/packages/core/pubspec.yaml index 5f64517..7c3aec8 100644 --- a/packages/core/pubspec.yaml +++ b/packages/core/pubspec.yaml @@ -1,13 +1,13 @@ name: segment_analytics description: The hassle-free way to add Segment analytics to your Flutter app. -version: 1.1.13 +version: 1.2.0 homepage: https://github.com/segmentio/analytics_flutter#readme repository: https://github.com/segmentio/analytics_flutter/tree/main/packages/core#readme issue_tracker: https://github.com/segmentio/analytics_flutter/issues environment: sdk: '>=3.2.0 <4.0.0' - flutter: ">=3.16.0" + flutter: ">=3.38.0" dependencies: flutter: 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); }