From f42d2385e83e7500eb1b13547a21238e7aca96bf Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 20 Feb 2025 18:24:48 +0100 Subject: [PATCH] merge 8.13.2 into main (#2740) * update Android dependency to 7.22.0 (#2705) * fix: navigation breadcrumb with missing to crashes native (#2720) * release: 8.13.1 * update changelog * fix(web): use `if (dart.library.html)` instead of `if (dart.html)` (#2736) * fix * regenerate mocks * update CHANGELOG * update test * update * fix test * release: 8.13.2 --------- Co-authored-by: getsentry-bot Co-authored-by: getsentry-bot --- CHANGELOG.md | 7 + dart/lib/src/version.dart | 2 +- dart/pubspec.yaml | 2 +- dio/lib/src/version.dart | 2 +- dio/pubspec.yaml | 4 +- drift/lib/src/version.dart | 2 +- drift/pubspec.yaml | 4 +- file/lib/src/version.dart | 2 +- file/pubspec.yaml | 4 +- .../integration_test/web_sdk_test.dart | 7 +- flutter/example/pubspec.yaml | 2 +- flutter/lib/src/version.dart | 2 +- .../lib/src/web/html_sentry_js_binding.dart | 7 +- flutter/lib/src/web/sentry_js_binding.dart | 2 +- flutter/pubspec.yaml | 4 +- flutter/test/mocks.mocks.dart | 4315 +++++++---------- .../sentry_screenshot_widget_test.mocks.dart | 16 +- flutter/test/web/sentry_web_test.dart | 80 +- hive/lib/src/version.dart | 2 +- hive/pubspec.yaml | 4 +- isar/lib/src/version.dart | 2 +- isar/pubspec.yaml | 4 +- link/pubspec.yaml | 4 +- logging/lib/src/version.dart | 2 +- logging/pubspec.yaml | 4 +- sqflite/lib/src/version.dart | 2 +- sqflite/pubspec.yaml | 4 +- 27 files changed, 1876 insertions(+), 2616 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b6d3b2980..1cae79c274 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,13 @@ final db = AppDatabase(executor); - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8450) - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.44.0...8.45.0) +## 8.13.2 + +### Fixes + +- `build_web_compiler` error ([#2736](https://github.com/getsentry/sentry-dart/pull/2736)) + - Use `if (dart.library.html)` instead of `if (dart.html)` for imports + ## 8.13.1 ### Fixes diff --git a/dart/lib/src/version.dart b/dart/lib/src/version.dart index 1de225e871..e08ff1d2aa 100644 --- a/dart/lib/src/version.dart +++ b/dart/lib/src/version.dart @@ -9,7 +9,7 @@ library version; /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName; diff --git a/dart/pubspec.yaml b/dart/pubspec.yaml index 00c8b31248..9861dec87f 100644 --- a/dart/pubspec.yaml +++ b/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 8.13.1 +version: 8.13.2 description: > A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart VM and Web. For Flutter consider sentry_flutter instead. diff --git a/dio/lib/src/version.dart b/dio/lib/src/version.dart index 8f21d18a05..21684bd12b 100644 --- a/dio/lib/src/version.dart +++ b/dio/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_dio'; diff --git a/dio/pubspec.yaml b/dio/pubspec.yaml index d1b911a82b..b8dcc5363c 100644 --- a/dio/pubspec.yaml +++ b/dio/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_dio description: An integration which adds support for performance tracing for the Dio package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: dio: ^5.0.0 - sentry: 8.13.1 + sentry: 8.13.2 dev_dependencies: meta: ^1.3.0 diff --git a/drift/lib/src/version.dart b/drift/lib/src/version.dart index da8f53116d..7cd360bd12 100644 --- a/drift/lib/src/version.dart +++ b/drift/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_drift'; diff --git a/drift/pubspec.yaml b/drift/pubspec.yaml index 910aa6cc56..baaeb609bf 100644 --- a/drift/pubspec.yaml +++ b/drift/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_drift description: An integration which adds support for performance tracing for the drift package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 meta: ^1.3.0 drift: ^2.13.0 diff --git a/file/lib/src/version.dart b/file/lib/src/version.dart index ec5356f531..e8c047f70f 100644 --- a/file/lib/src/version.dart +++ b/file/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_file'; diff --git a/file/pubspec.yaml b/file/pubspec.yaml index a7768b8e8c..8813a8f633 100644 --- a/file/pubspec.yaml +++ b/file/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_file description: An integration which adds support for performance tracing for dart.io.File. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: windows: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 meta: ^1.3.0 dev_dependencies: diff --git a/flutter/example/integration_test/web_sdk_test.dart b/flutter/example/integration_test/web_sdk_test.dart index 5adf45c03a..b9436aa432 100644 --- a/flutter/example/integration_test/web_sdk_test.dart +++ b/flutter/example/integration_test/web_sdk_test.dart @@ -111,9 +111,10 @@ void main() { 'sentry.dart.flutter'); final item = (envelope[1] as List).first as List; - final itemPayload = - json.decode(utf8.decoder.convert((item[1] as List))) - as Map; + final itemPayloadJs = (item[1] as JSArray).toDart; + final itemPayload = json.decode(utf8.decoder.convert(itemPayloadJs + .map((el) => int.parse(el.dartify().toString())) + .toList())) as Map; final jsEventJson = (itemPayload).map((key, value) { return MapEntry(key.toString(), value as dynamic); diff --git a/flutter/example/pubspec.yaml b/flutter/example/pubspec.yaml index 30c70296bf..a42b7a1e71 100644 --- a/flutter/example/pubspec.yaml +++ b/flutter/example/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_flutter_example description: Demonstrates how to use the sentry_flutter plugin. -version: 8.13.1 +version: 8.13.2 publish_to: 'none' # Remove this line if you wish to publish to pub.dev diff --git a/flutter/lib/src/version.dart b/flutter/lib/src/version.dart index c57ad790f2..985fc4e63c 100644 --- a/flutter/lib/src/version.dart +++ b/flutter/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The default SDK name reported to Sentry.io in the submitted events. const String sdkName = 'sentry.dart.flutter'; diff --git a/flutter/lib/src/web/html_sentry_js_binding.dart b/flutter/lib/src/web/html_sentry_js_binding.dart index fed4ae36ea..840e48a2a3 100644 --- a/flutter/lib/src/web/html_sentry_js_binding.dart +++ b/flutter/lib/src/web/html_sentry_js_binding.dart @@ -1,3 +1,5 @@ +// Will be removed in v9 +// ignore: deprecated_member_use import 'dart:js'; import 'package:flutter/cupertino.dart'; @@ -56,7 +58,8 @@ class HtmlSentryJsBinding implements SentryJsBinding { @visibleForTesting @override getJsOptions() { - final sentry = context['Sentry'] as JsObject; - return sentry.callMethod('getClient').callMethod('getOptions').dartify(); + // newest flutter version removed dartify from JsObject + // we will remove this file in v9 anyway + return null; } } diff --git a/flutter/lib/src/web/sentry_js_binding.dart b/flutter/lib/src/web/sentry_js_binding.dart index a174e6b043..79b92af849 100644 --- a/flutter/lib/src/web/sentry_js_binding.dart +++ b/flutter/lib/src/web/sentry_js_binding.dart @@ -1,7 +1,7 @@ import 'package:flutter/cupertino.dart'; export 'noop_sentry_js_binding.dart' - if (dart.html) 'html_sentry_js_binding.dart' + if (dart.library.html) 'html_sentry_js_binding.dart' if (dart.library.js_interop) 'web_sentry_js_binding.dart'; abstract class SentryJsBinding { diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 37a2cb2910..234d25998e 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry_flutter -version: 8.13.1 +version: 8.13.2 description: Sentry SDK for Flutter. This package aims to support different Flutter targets by relying on the many platforms supported by Sentry with native SDKs. homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart @@ -23,7 +23,7 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - sentry: 8.13.1 + sentry: 8.13.2 package_info_plus: '>=1.0.0' meta: ^1.3.0 ffi: ^2.0.0 diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index 9d0e625e79..dc72f038ad 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in sentry_flutter/test/mocks.dart. // Do not manually edit this file. @@ -38,6 +38,7 @@ import 'mocks.dart' as _i13; // 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 @@ -45,469 +46,244 @@ import 'mocks.dart' as _i13; class _FakeSentrySpanContext_0 extends _i1.SmartFake implements _i2.SentrySpanContext { - _FakeSentrySpanContext_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentrySpanContext_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDateTime_1 extends _i1.SmartFake implements DateTime { - _FakeDateTime_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDateTime_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeISentrySpan_2 extends _i1.SmartFake implements _i2.ISentrySpan { - _FakeISentrySpan_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeISentrySpan_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryTraceHeader_3 extends _i1.SmartFake implements _i2.SentryTraceHeader { - _FakeSentryTraceHeader_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryTraceHeader_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryTracer_4 extends _i1.SmartFake implements _i3.SentryTracer { - _FakeSentryTracer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryTracer_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryId_5 extends _i1.SmartFake implements _i2.SentryId { - _FakeSentryId_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryId_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeContexts_6 extends _i1.SmartFake implements _i2.Contexts { - _FakeContexts_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeContexts_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryTransaction_7 extends _i1.SmartFake implements _i2.SentryTransaction { - _FakeSentryTransaction_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryTransaction_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeMethodCodec_8 extends _i1.SmartFake implements _i4.MethodCodec { - _FakeMethodCodec_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeMethodCodec_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBinaryMessenger_9 extends _i1.SmartFake implements _i4.BinaryMessenger { - _FakeBinaryMessenger_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBinaryMessenger_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidgetsBinding_10 extends _i1.SmartFake implements _i5.WidgetsBinding { - _FakeWidgetsBinding_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidgetsBinding_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSingletonFlutterWindow_11 extends _i1.SmartFake implements _i6.SingletonFlutterWindow { - _FakeSingletonFlutterWindow_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSingletonFlutterWindow_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformDispatcher_12 extends _i1.SmartFake implements _i6.PlatformDispatcher { - _FakePlatformDispatcher_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformDispatcher_12(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerRouter_13 extends _i1.SmartFake implements _i7.PointerRouter { - _FakePointerRouter_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerRouter_13(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeGestureArenaManager_14 extends _i1.SmartFake implements _i7.GestureArenaManager { - _FakeGestureArenaManager_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeGestureArenaManager_14(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerSignalResolver_15 extends _i1.SmartFake implements _i7.PointerSignalResolver { - _FakePointerSignalResolver_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerSignalResolver_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 _FakeSamplingClock_17 extends _i1.SmartFake implements _i7.SamplingClock { - _FakeSamplingClock_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSamplingClock_17(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeValueNotifier_18 extends _i1.SmartFake implements _i8.ValueNotifier { - _FakeValueNotifier_18( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeValueNotifier_18(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHardwareKeyboard_19 extends _i1.SmartFake implements _i4.HardwareKeyboard { - _FakeHardwareKeyboard_19( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHardwareKeyboard_19(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeKeyEventManager_20 extends _i1.SmartFake implements _i4.KeyEventManager { - _FakeKeyEventManager_20( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeKeyEventManager_20(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeChannelBuffers_21 extends _i1.SmartFake implements _i6.ChannelBuffers { - _FakeChannelBuffers_21( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeChannelBuffers_21(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeRestorationManager_22 extends _i1.SmartFake implements _i4.RestorationManager { - _FakeRestorationManager_22( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRestorationManager_22(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeImageCache_23 extends _i1.SmartFake implements _i9.ImageCache { - _FakeImageCache_23( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeImageCache_23(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeListenable_24 extends _i1.SmartFake implements _i8.Listenable { - _FakeListenable_24( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeListenable_24(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeAccessibilityFeatures_25 extends _i1.SmartFake implements _i6.AccessibilityFeatures { - _FakeAccessibilityFeatures_25( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeAccessibilityFeatures_25(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakePipelineOwner_26 extends _i1.SmartFake - implements _i10.PipelineOwner { - _FakePipelineOwner_26( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeRenderView_26 extends _i1.SmartFake implements _i10.RenderView { + _FakeRenderView_26(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString(); } -class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { - _FakeRenderView_27( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); - - @override - String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => - super.toString(); +class _FakeMouseTracker_27 extends _i1.SmartFake implements _i10.MouseTracker { + _FakeMouseTracker_27(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeMouseTracker_28 extends _i1.SmartFake implements _i10.MouseTracker { - _FakeMouseTracker_28( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePlatformMenuDelegate_29 extends _i1.SmartFake +class _FakePlatformMenuDelegate_28 extends _i1.SmartFake implements _i9.PlatformMenuDelegate { - _FakePlatformMenuDelegate_29( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformMenuDelegate_28(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeFocusManager_30 extends _i1.SmartFake implements _i9.FocusManager { - _FakeFocusManager_30( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeFocusManager_29 extends _i1.SmartFake implements _i9.FocusManager { + _FakeFocusManager_29(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString(); } -class _FakeFuture_31 extends _i1.SmartFake implements _i11.Future { - _FakeFuture_31( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeFuture_30 extends _i1.SmartFake implements _i11.Future { + _FakeFuture_30(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeCodec_32 extends _i1.SmartFake implements _i6.Codec { - _FakeCodec_32( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeCodec_31 extends _i1.SmartFake implements _i6.Codec { + _FakeCodec_31(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSemanticsHandle_33 extends _i1.SmartFake +class _FakeSemanticsHandle_32 extends _i1.SmartFake implements _i12.SemanticsHandle { - _FakeSemanticsHandle_33( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsHandle_32(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSemanticsUpdateBuilder_34 extends _i1.SmartFake +class _FakeSemanticsUpdateBuilder_33 extends _i1.SmartFake implements _i6.SemanticsUpdateBuilder { - _FakeSemanticsUpdateBuilder_34( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsUpdateBuilder_33(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeViewConfiguration_35 extends _i1.SmartFake +class _FakeViewConfiguration_34 extends _i1.SmartFake implements _i10.ViewConfiguration { - _FakeViewConfiguration_35( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeViewConfiguration_34(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSceneBuilder_36 extends _i1.SmartFake implements _i6.SceneBuilder { - _FakeSceneBuilder_36( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeSceneBuilder_35 extends _i1.SmartFake implements _i6.SceneBuilder { + _FakeSceneBuilder_35(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakePictureRecorder_37 extends _i1.SmartFake +class _FakePictureRecorder_36 extends _i1.SmartFake implements _i6.PictureRecorder { - _FakePictureRecorder_37( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePictureRecorder_36(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeCanvas_38 extends _i1.SmartFake implements _i6.Canvas { - _FakeCanvas_38( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeCanvas_37 extends _i1.SmartFake implements _i6.Canvas { + _FakeCanvas_37(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeWidget_39 extends _i1.SmartFake implements _i9.Widget { - _FakeWidget_39( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeWidget_38 extends _i1.SmartFake implements _i9.Widget { + _FakeWidget_38(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString(); } -class _FakeSentryOptions_40 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_40( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeSentryOptions_39 extends _i1.SmartFake implements _i2.SentryOptions { + _FakeSentryOptions_39(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeScope_41 extends _i1.SmartFake implements _i2.Scope { - _FakeScope_41( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeScope_40 extends _i1.SmartFake implements _i2.Scope { + _FakeScope_40(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeHub_42 extends _i1.SmartFake implements _i2.Hub { - _FakeHub_42( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeHub_41 extends _i1.SmartFake implements _i2.Hub { + _FakeHub_41(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Callbacks]. @@ -523,13 +299,10 @@ class MockCallbacks extends _i1.Mock implements _i13.Callbacks { String? method, [ dynamic arguments, ]) => - (super.noSuchMethod(Invocation.method( - #methodCallHandler, - [ - method, - arguments, - ], - )) as _i11.Future?); + (super.noSuchMethod( + Invocation.method(#methodCallHandler, [method, arguments]), + ) + as _i11.Future?); } /// A class which mocks [Transport]. @@ -543,12 +316,10 @@ class MockTransport extends _i1.Mock implements _i2.Transport { @override _i11.Future<_i2.SentryId?> send(_i2.SentryEnvelope? envelope) => (super.noSuchMethod( - Invocation.method( - #send, - [envelope], - ), - returnValue: _i11.Future<_i2.SentryId?>.value(), - ) as _i11.Future<_i2.SentryId?>); + Invocation.method(#send, [envelope]), + returnValue: _i11.Future<_i2.SentryId?>.value(), + ) + as _i11.Future<_i2.SentryId?>); } /// A class which mocks [SentryTracer]. @@ -560,201 +331,162 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: _i14.dummyValue( - this, - Invocation.getter(#name), - ), - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i14.dummyValue( + this, + Invocation.getter(#name), + ), + ) + as String); @override set name(String? _name) => super.noSuchMethod( - Invocation.setter( - #name, - _name, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#name, _name), + returnValueForMissingStub: null, + ); @override _i2.SentryTransactionNameSource get transactionNameSource => (super.noSuchMethod( - Invocation.getter(#transactionNameSource), - returnValue: _i2.SentryTransactionNameSource.custom, - ) as _i2.SentryTransactionNameSource); + Invocation.getter(#transactionNameSource), + returnValue: _i2.SentryTransactionNameSource.custom, + ) + as _i2.SentryTransactionNameSource); @override set transactionNameSource( - _i2.SentryTransactionNameSource? _transactionNameSource) => - super.noSuchMethod( - Invocation.setter( - #transactionNameSource, - _transactionNameSource, - ), - returnValueForMissingStub: null, - ); + _i2.SentryTransactionNameSource? _transactionNameSource, + ) => super.noSuchMethod( + Invocation.setter(#transactionNameSource, _transactionNameSource), + returnValueForMissingStub: null, + ); @override set profiler(_i15.SentryProfiler? _profiler) => super.noSuchMethod( - Invocation.setter( - #profiler, - _profiler, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profiler, _profiler), + returnValueForMissingStub: null, + ); @override set profileInfo(_i15.SentryProfileInfo? _profileInfo) => super.noSuchMethod( - Invocation.setter( - #profileInfo, - _profileInfo, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profileInfo, _profileInfo), + returnValueForMissingStub: null, + ); @override - Map get measurements => (super.noSuchMethod( - Invocation.getter(#measurements), - returnValue: {}, - ) as Map); + Map get measurements => + (super.noSuchMethod( + Invocation.getter(#measurements), + returnValue: {}, + ) + as Map); @override - _i2.SentrySpanContext get context => (super.noSuchMethod( - Invocation.getter(#context), - returnValue: _FakeSentrySpanContext_0( - this, - Invocation.getter(#context), - ), - ) as _i2.SentrySpanContext); + _i2.SentrySpanContext get context => + (super.noSuchMethod( + Invocation.getter(#context), + returnValue: _FakeSentrySpanContext_0( + this, + Invocation.getter(#context), + ), + ) + as _i2.SentrySpanContext); @override set origin(String? origin) => super.noSuchMethod( - Invocation.setter( - #origin, - origin, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#origin, origin), + returnValueForMissingStub: null, + ); @override - DateTime get startTimestamp => (super.noSuchMethod( - Invocation.getter(#startTimestamp), - returnValue: _FakeDateTime_1( - this, - Invocation.getter(#startTimestamp), - ), - ) as DateTime); + DateTime get startTimestamp => + (super.noSuchMethod( + Invocation.getter(#startTimestamp), + returnValue: _FakeDateTime_1( + this, + Invocation.getter(#startTimestamp), + ), + ) + as DateTime); @override - Map get data => (super.noSuchMethod( - Invocation.getter(#data), - returnValue: {}, - ) as Map); + Map get data => + (super.noSuchMethod( + Invocation.getter(#data), + returnValue: {}, + ) + as Map); @override - bool get finished => (super.noSuchMethod( - Invocation.getter(#finished), - returnValue: false, - ) as bool); + bool get finished => + (super.noSuchMethod(Invocation.getter(#finished), returnValue: false) + as bool); @override - List<_i2.SentrySpan> get children => (super.noSuchMethod( - Invocation.getter(#children), - returnValue: <_i2.SentrySpan>[], - ) as List<_i2.SentrySpan>); + List<_i2.SentrySpan> get children => + (super.noSuchMethod( + Invocation.getter(#children), + returnValue: <_i2.SentrySpan>[], + ) + as List<_i2.SentrySpan>); @override set throwable(dynamic throwable) => super.noSuchMethod( - Invocation.setter( - #throwable, - throwable, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#throwable, throwable), + returnValueForMissingStub: null, + ); @override set status(_i2.SpanStatus? status) => super.noSuchMethod( - Invocation.setter( - #status, - status, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#status, status), + returnValueForMissingStub: null, + ); @override - Map get tags => (super.noSuchMethod( - Invocation.getter(#tags), - returnValue: {}, - ) as Map); + Map get tags => + (super.noSuchMethod( + Invocation.getter(#tags), + returnValue: {}, + ) + as Map); @override - _i11.Future finish({ - _i2.SpanStatus? status, - DateTime? endTimestamp, - }) => + _i11.Future finish({_i2.SpanStatus? status, DateTime? endTimestamp}) => (super.noSuchMethod( - Invocation.method( - #finish, - [], - { - #status: status, - #endTimestamp: endTimestamp, - }, - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + }), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void removeData(String? key) => super.noSuchMethod( - Invocation.method( - #removeData, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeData, [key]), + returnValueForMissingStub: null, + ); @override void removeTag(String? key) => super.noSuchMethod( - Invocation.method( - #removeTag, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeTag, [key]), + returnValueForMissingStub: null, + ); @override - void setData( - String? key, - dynamic value, - ) => - super.noSuchMethod( - Invocation.method( - #setData, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setData(String? key, dynamic value) => super.noSuchMethod( + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override - void setTag( - String? key, - String? value, - ) => - super.noSuchMethod( - Invocation.method( - #setTag, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setTag(String? key, String? value) => super.noSuchMethod( + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -763,26 +495,21 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { DateTime? startTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + ), + ) + as _i2.ISentrySpan); @override _i2.ISentrySpan startChildWithParentSpanId( @@ -792,92 +519,58 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { DateTime? startTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #startChildWithParentSpanId, - [ - parentSpanId, - operation, - ], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startChildWithParentSpanId, - [ - parentSpanId, - operation, - ], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startChildWithParentSpanId, + [parentSpanId, operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startChildWithParentSpanId, + [parentSpanId, operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + ), + ) + as _i2.ISentrySpan); @override - _i2.SentryTraceHeader toSentryTrace() => (super.noSuchMethod( - Invocation.method( - #toSentryTrace, - [], - ), - returnValue: _FakeSentryTraceHeader_3( - this, - Invocation.method( - #toSentryTrace, - [], - ), - ), - ) as _i2.SentryTraceHeader); + _i2.SentryTraceHeader toSentryTrace() => + (super.noSuchMethod( + Invocation.method(#toSentryTrace, []), + returnValue: _FakeSentryTraceHeader_3( + this, + Invocation.method(#toSentryTrace, []), + ), + ) + as _i2.SentryTraceHeader); @override void setMeasurement( String? name, num? value, { _i2.SentryMeasurementUnit? unit, - }) => - super.noSuchMethod( - Invocation.method( - #setMeasurement, - [ - name, - value, - ], - {#unit: unit}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#setMeasurement, [name, value], {#unit: unit}), + returnValueForMissingStub: null, + ); @override void setMeasurementFromChild( String? name, num? value, { _i2.SentryMeasurementUnit? unit, - }) => - super.noSuchMethod( - Invocation.method( - #setMeasurementFromChild, - [ - name, - value, - ], - {#unit: unit}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#setMeasurementFromChild, [name, value], {#unit: unit}), + returnValueForMissingStub: null, + ); @override void scheduleFinish() => super.noSuchMethod( - Invocation.method( - #scheduleFinish, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFinish, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryTransaction]. @@ -890,111 +583,99 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { } @override - DateTime get startTimestamp => (super.noSuchMethod( - Invocation.getter(#startTimestamp), - returnValue: _FakeDateTime_1( - this, - Invocation.getter(#startTimestamp), - ), - ) as DateTime); + DateTime get startTimestamp => + (super.noSuchMethod( + Invocation.getter(#startTimestamp), + returnValue: _FakeDateTime_1( + this, + Invocation.getter(#startTimestamp), + ), + ) + as DateTime); @override set startTimestamp(DateTime? _startTimestamp) => super.noSuchMethod( - Invocation.setter( - #startTimestamp, - _startTimestamp, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#startTimestamp, _startTimestamp), + returnValueForMissingStub: null, + ); @override - List<_i2.SentrySpan> get spans => (super.noSuchMethod( - Invocation.getter(#spans), - returnValue: <_i2.SentrySpan>[], - ) as List<_i2.SentrySpan>); + List<_i2.SentrySpan> get spans => + (super.noSuchMethod( + Invocation.getter(#spans), + returnValue: <_i2.SentrySpan>[], + ) + as List<_i2.SentrySpan>); @override set spans(List<_i2.SentrySpan>? _spans) => super.noSuchMethod( - Invocation.setter( - #spans, - _spans, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#spans, _spans), + returnValueForMissingStub: null, + ); @override - _i3.SentryTracer get tracer => (super.noSuchMethod( - Invocation.getter(#tracer), - returnValue: _FakeSentryTracer_4( - this, - Invocation.getter(#tracer), - ), - ) as _i3.SentryTracer); + _i3.SentryTracer get tracer => + (super.noSuchMethod( + Invocation.getter(#tracer), + returnValue: _FakeSentryTracer_4(this, Invocation.getter(#tracer)), + ) + as _i3.SentryTracer); @override - Map get measurements => (super.noSuchMethod( - Invocation.getter(#measurements), - returnValue: {}, - ) as Map); + Map get measurements => + (super.noSuchMethod( + Invocation.getter(#measurements), + returnValue: {}, + ) + as Map); @override set measurements(Map? _measurements) => super.noSuchMethod( - Invocation.setter( - #measurements, - _measurements, - ), + Invocation.setter(#measurements, _measurements), returnValueForMissingStub: null, ); @override set transactionInfo(_i2.SentryTransactionInfo? _transactionInfo) => super.noSuchMethod( - Invocation.setter( - #transactionInfo, - _transactionInfo, - ), + Invocation.setter(#transactionInfo, _transactionInfo), returnValueForMissingStub: null, ); @override - bool get finished => (super.noSuchMethod( - Invocation.getter(#finished), - returnValue: false, - ) as bool); + bool get finished => + (super.noSuchMethod(Invocation.getter(#finished), returnValue: false) + as bool); @override - bool get sampled => (super.noSuchMethod( - Invocation.getter(#sampled), - returnValue: false, - ) as bool); + bool get sampled => + (super.noSuchMethod(Invocation.getter(#sampled), returnValue: false) + as bool); @override - _i2.SentryId get eventId => (super.noSuchMethod( - Invocation.getter(#eventId), - returnValue: _FakeSentryId_5( - this, - Invocation.getter(#eventId), - ), - ) as _i2.SentryId); + _i2.SentryId get eventId => + (super.noSuchMethod( + Invocation.getter(#eventId), + returnValue: _FakeSentryId_5(this, Invocation.getter(#eventId)), + ) + as _i2.SentryId); @override - _i2.Contexts get contexts => (super.noSuchMethod( - Invocation.getter(#contexts), - returnValue: _FakeContexts_6( - this, - Invocation.getter(#contexts), - ), - ) as _i2.Contexts); + _i2.Contexts get contexts => + (super.noSuchMethod( + Invocation.getter(#contexts), + returnValue: _FakeContexts_6(this, Invocation.getter(#contexts)), + ) + as _i2.Contexts); @override - Map toJson() => (super.noSuchMethod( - Invocation.method( - #toJson, - [], - ), - returnValue: {}, - ) as Map); + Map toJson() => + (super.noSuchMethod( + Invocation.method(#toJson, []), + returnValue: {}, + ) + as Map); @override _i2.SentryTransaction copyWith({ @@ -1028,46 +709,7 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { _i2.SentryTransactionInfo? transactionInfo, }) => (super.noSuchMethod( - Invocation.method( - #copyWith, - [], - { - #eventId: eventId, - #timestamp: timestamp, - #platform: platform, - #logger: logger, - #serverName: serverName, - #release: release, - #dist: dist, - #environment: environment, - #modules: modules, - #message: message, - #transaction: transaction, - #throwable: throwable, - #level: level, - #culprit: culprit, - #tags: tags, - #extra: extra, - #fingerprint: fingerprint, - #user: user, - #contexts: contexts, - #breadcrumbs: breadcrumbs, - #sdk: sdk, - #request: request, - #debugMeta: debugMeta, - #exceptions: exceptions, - #threads: threads, - #type: type, - #measurements: measurements, - #transactionInfo: transactionInfo, - }, - ), - returnValue: _FakeSentryTransaction_7( - this, - Invocation.method( - #copyWith, - [], - { + Invocation.method(#copyWith, [], { #eventId: eventId, #timestamp: timestamp, #platform: platform, @@ -1096,10 +738,42 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { #type: type, #measurements: measurements, #transactionInfo: transactionInfo, - }, - ), - ), - ) as _i2.SentryTransaction); + }), + returnValue: _FakeSentryTransaction_7( + this, + Invocation.method(#copyWith, [], { + #eventId: eventId, + #timestamp: timestamp, + #platform: platform, + #logger: logger, + #serverName: serverName, + #release: release, + #dist: dist, + #environment: environment, + #modules: modules, + #message: message, + #transaction: transaction, + #throwable: throwable, + #level: level, + #culprit: culprit, + #tags: tags, + #extra: extra, + #fingerprint: fingerprint, + #user: user, + #contexts: contexts, + #breadcrumbs: breadcrumbs, + #sdk: sdk, + #request: request, + #debugMeta: debugMeta, + #exceptions: exceptions, + #threads: threads, + #type: type, + #measurements: measurements, + #transactionInfo: transactionInfo, + }), + ), + ) + as _i2.SentryTransaction); } /// A class which mocks [SentrySpan]. @@ -1111,150 +785,114 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { } @override - bool get isRootSpan => (super.noSuchMethod( - Invocation.getter(#isRootSpan), - returnValue: false, - ) as bool); + bool get isRootSpan => + (super.noSuchMethod(Invocation.getter(#isRootSpan), returnValue: false) + as bool); @override - _i3.SentryTracer get tracer => (super.noSuchMethod( - Invocation.getter(#tracer), - returnValue: _FakeSentryTracer_4( - this, - Invocation.getter(#tracer), - ), - ) as _i3.SentryTracer); + _i3.SentryTracer get tracer => + (super.noSuchMethod( + Invocation.getter(#tracer), + returnValue: _FakeSentryTracer_4(this, Invocation.getter(#tracer)), + ) + as _i3.SentryTracer); @override set status(_i2.SpanStatus? status) => super.noSuchMethod( - Invocation.setter( - #status, - status, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#status, status), + returnValueForMissingStub: null, + ); @override - DateTime get startTimestamp => (super.noSuchMethod( - Invocation.getter(#startTimestamp), - returnValue: _FakeDateTime_1( - this, - Invocation.getter(#startTimestamp), - ), - ) as DateTime); + DateTime get startTimestamp => + (super.noSuchMethod( + Invocation.getter(#startTimestamp), + returnValue: _FakeDateTime_1( + this, + Invocation.getter(#startTimestamp), + ), + ) + as DateTime); @override - _i2.SentrySpanContext get context => (super.noSuchMethod( - Invocation.getter(#context), - returnValue: _FakeSentrySpanContext_0( - this, - Invocation.getter(#context), - ), - ) as _i2.SentrySpanContext); + _i2.SentrySpanContext get context => + (super.noSuchMethod( + Invocation.getter(#context), + returnValue: _FakeSentrySpanContext_0( + this, + Invocation.getter(#context), + ), + ) + as _i2.SentrySpanContext); @override set origin(String? origin) => super.noSuchMethod( - Invocation.setter( - #origin, - origin, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#origin, origin), + returnValueForMissingStub: null, + ); @override - bool get finished => (super.noSuchMethod( - Invocation.getter(#finished), - returnValue: false, - ) as bool); + bool get finished => + (super.noSuchMethod(Invocation.getter(#finished), returnValue: false) + as bool); @override set throwable(dynamic throwable) => super.noSuchMethod( - Invocation.setter( - #throwable, - throwable, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#throwable, throwable), + returnValueForMissingStub: null, + ); @override - Map get tags => (super.noSuchMethod( - Invocation.getter(#tags), - returnValue: {}, - ) as Map); + Map get tags => + (super.noSuchMethod( + Invocation.getter(#tags), + returnValue: {}, + ) + as Map); @override - Map get data => (super.noSuchMethod( - Invocation.getter(#data), - returnValue: {}, - ) as Map); + Map get data => + (super.noSuchMethod( + Invocation.getter(#data), + returnValue: {}, + ) + as Map); @override - _i11.Future finish({ - _i2.SpanStatus? status, - DateTime? endTimestamp, - }) => + _i11.Future finish({_i2.SpanStatus? status, DateTime? endTimestamp}) => (super.noSuchMethod( - Invocation.method( - #finish, - [], - { - #status: status, - #endTimestamp: endTimestamp, - }, - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + }), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void removeData(String? key) => super.noSuchMethod( - Invocation.method( - #removeData, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeData, [key]), + returnValueForMissingStub: null, + ); @override void removeTag(String? key) => super.noSuchMethod( - Invocation.method( - #removeTag, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeTag, [key]), + returnValueForMissingStub: null, + ); @override - void setData( - String? key, - dynamic value, - ) => - super.noSuchMethod( - Invocation.method( - #setData, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setData(String? key, dynamic value) => super.noSuchMethod( + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override - void setTag( - String? key, - String? value, - ) => - super.noSuchMethod( - Invocation.method( - #setTag, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setTag(String? key, String? value) => super.noSuchMethod( + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -1263,77 +901,56 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { DateTime? startTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + ), + ) + as _i2.ISentrySpan); @override - Map toJson() => (super.noSuchMethod( - Invocation.method( - #toJson, - [], - ), - returnValue: {}, - ) as Map); + Map toJson() => + (super.noSuchMethod( + Invocation.method(#toJson, []), + returnValue: {}, + ) + as Map); @override - _i2.SentryTraceHeader toSentryTrace() => (super.noSuchMethod( - Invocation.method( - #toSentryTrace, - [], - ), - returnValue: _FakeSentryTraceHeader_3( - this, - Invocation.method( - #toSentryTrace, - [], - ), - ), - ) as _i2.SentryTraceHeader); + _i2.SentryTraceHeader toSentryTrace() => + (super.noSuchMethod( + Invocation.method(#toSentryTrace, []), + returnValue: _FakeSentryTraceHeader_3( + this, + Invocation.method(#toSentryTrace, []), + ), + ) + as _i2.SentryTraceHeader); @override void setMeasurement( String? name, num? value, { _i2.SentryMeasurementUnit? unit, - }) => - super.noSuchMethod( - Invocation.method( - #setMeasurement, - [ - name, - value, - ], - {#unit: unit}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#setMeasurement, [name, value], {#unit: unit}), + returnValueForMissingStub: null, + ); @override void scheduleFinish() => super.noSuchMethod( - Invocation.method( - #scheduleFinish, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFinish, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryClient]. @@ -1352,28 +969,23 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureEvent, - [event], - { - #scope: scope, - #stackTrace: stackTrace, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureEvent, - [event], - { - #scope: scope, - #stackTrace: stackTrace, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureEvent, + [event], + {#scope: scope, #stackTrace: stackTrace, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureEvent, + [event], + {#scope: scope, #stackTrace: stackTrace, #hint: hint}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureException( @@ -1383,28 +995,23 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #scope: scope, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #scope: scope, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #scope: scope, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #scope: scope, #hint: hint}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureMessage( @@ -1416,32 +1023,35 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureMessage, - [formatted], - { - #level: level, - #template: template, - #params: params, - #scope: scope, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureMessage, - [formatted], - { - #level: level, - #template: template, - #params: params, - #scope: scope, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureMessage, + [formatted], + { + #level: level, + #template: template, + #params: params, + #scope: scope, + #hint: hint, + }, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureMessage, + [formatted], + { + #level: level, + #template: template, + #params: params, + #scope: scope, + #hint: hint, + }, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureTransaction( @@ -1450,47 +1060,40 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.SentryTraceContextHeader? traceContext, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - { - #scope: scope, - #traceContext: traceContext, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureTransaction, - [transaction], - { - #scope: scope, - #traceContext: traceContext, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureTransaction, + [transaction], + {#scope: scope, #traceContext: traceContext}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#scope: scope, #traceContext: traceContext}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId?> captureEnvelope(_i2.SentryEnvelope? envelope) => (super.noSuchMethod( - Invocation.method( - #captureEnvelope, - [envelope], - ), - returnValue: _i11.Future<_i2.SentryId?>.value(), - ) as _i11.Future<_i2.SentryId?>); + Invocation.method(#captureEnvelope, [envelope]), + returnValue: _i11.Future<_i2.SentryId?>.value(), + ) + as _i11.Future<_i2.SentryId?>); @override _i11.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#captureUserFeedback, [userFeedback]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override _i11.Future<_i2.SentryId> captureFeedback( @@ -1499,35 +1102,29 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureFeedback, - [feedback], - { - #scope: scope, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureFeedback, - [feedback], - { - #scope: scope, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureFeedback, + [feedback], + {#scope: scope, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#scope: scope, #hint: hint}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override void close() => super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#close, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [MethodChannel]. @@ -1539,47 +1136,42 @@ class MockMethodChannel extends _i1.Mock implements _i4.MethodChannel { } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: _i14.dummyValue( - this, - Invocation.getter(#name), - ), - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i14.dummyValue( + this, + Invocation.getter(#name), + ), + ) + as String); @override - _i4.MethodCodec get codec => (super.noSuchMethod( - Invocation.getter(#codec), - returnValue: _FakeMethodCodec_8( - this, - Invocation.getter(#codec), - ), - ) as _i4.MethodCodec); + _i4.MethodCodec get codec => + (super.noSuchMethod( + Invocation.getter(#codec), + returnValue: _FakeMethodCodec_8(this, Invocation.getter(#codec)), + ) + as _i4.MethodCodec); @override - _i4.BinaryMessenger get binaryMessenger => (super.noSuchMethod( - Invocation.getter(#binaryMessenger), - returnValue: _FakeBinaryMessenger_9( - this, - Invocation.getter(#binaryMessenger), - ), - ) as _i4.BinaryMessenger); + _i4.BinaryMessenger get binaryMessenger => + (super.noSuchMethod( + Invocation.getter(#binaryMessenger), + returnValue: _FakeBinaryMessenger_9( + this, + Invocation.getter(#binaryMessenger), + ), + ) + as _i4.BinaryMessenger); @override - _i11.Future invokeMethod( - String? method, [ - dynamic arguments, - ]) => + _i11.Future invokeMethod(String? method, [dynamic arguments]) => (super.noSuchMethod( - Invocation.method( - #invokeMethod, - [ - method, - arguments, - ], - ), - returnValue: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#invokeMethod, [method, arguments]), + returnValue: _i11.Future.value(), + ) + as _i11.Future); @override _i11.Future?> invokeListMethod( @@ -1587,15 +1179,10 @@ class MockMethodChannel extends _i1.Mock implements _i4.MethodChannel { dynamic arguments, ]) => (super.noSuchMethod( - Invocation.method( - #invokeListMethod, - [ - method, - arguments, - ], - ), - returnValue: _i11.Future?>.value(), - ) as _i11.Future?>); + Invocation.method(#invokeListMethod, [method, arguments]), + returnValue: _i11.Future?>.value(), + ) + as _i11.Future?>); @override _i11.Future?> invokeMapMethod( @@ -1603,26 +1190,18 @@ class MockMethodChannel extends _i1.Mock implements _i4.MethodChannel { dynamic arguments, ]) => (super.noSuchMethod( - Invocation.method( - #invokeMapMethod, - [ - method, - arguments, - ], - ), - returnValue: _i11.Future?>.value(), - ) as _i11.Future?>); + Invocation.method(#invokeMapMethod, [method, arguments]), + returnValue: _i11.Future?>.value(), + ) + as _i11.Future?>); @override void setMethodCallHandler( - _i11.Future Function(_i4.MethodCall)? handler) => - super.noSuchMethod( - Invocation.method( - #setMethodCallHandler, - [handler], - ), - returnValueForMissingStub: null, - ); + _i11.Future Function(_i4.MethodCall)? handler, + ) => super.noSuchMethod( + Invocation.method(#setMethodCallHandler, [handler]), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryNativeBinding]. @@ -1635,137 +1214,103 @@ class MockSentryNativeBinding extends _i1.Mock } @override - bool get supportsCaptureEnvelope => (super.noSuchMethod( - Invocation.getter(#supportsCaptureEnvelope), - returnValue: false, - ) as bool); + bool get supportsCaptureEnvelope => + (super.noSuchMethod( + Invocation.getter(#supportsCaptureEnvelope), + returnValue: false, + ) + as bool); @override - bool get supportsLoadContexts => (super.noSuchMethod( - Invocation.getter(#supportsLoadContexts), - returnValue: false, - ) as bool); + bool get supportsLoadContexts => + (super.noSuchMethod( + Invocation.getter(#supportsLoadContexts), + returnValue: false, + ) + as bool); @override - bool get supportsReplay => (super.noSuchMethod( - Invocation.getter(#supportsReplay), - returnValue: false, - ) as bool); + bool get supportsReplay => + (super.noSuchMethod( + Invocation.getter(#supportsReplay), + returnValue: false, + ) + as bool); @override _i11.FutureOr init(_i2.Hub? hub) => - (super.noSuchMethod(Invocation.method( - #init, - [hub], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#init, [hub])) + as _i11.FutureOr); @override _i11.FutureOr captureEnvelope( _i17.Uint8List? envelopeData, bool? containsUnhandledException, ) => - (super.noSuchMethod(Invocation.method( - #captureEnvelope, - [ - envelopeData, - containsUnhandledException, - ], - )) as _i11.FutureOr); + (super.noSuchMethod( + Invocation.method(#captureEnvelope, [ + envelopeData, + containsUnhandledException, + ]), + ) + as _i11.FutureOr); @override _i11.FutureOr captureStructuredEnvelope(_i2.SentryEnvelope? envelope) => - (super.noSuchMethod(Invocation.method( - #captureStructuredEnvelope, - [envelope], - )) as _i11.FutureOr); + (super.noSuchMethod( + Invocation.method(#captureStructuredEnvelope, [envelope]), + ) + as _i11.FutureOr); @override _i11.FutureOr<_i18.NativeFrames?> endNativeFrames(_i2.SentryId? id) => - (super.noSuchMethod(Invocation.method( - #endNativeFrames, - [id], - )) as _i11.FutureOr<_i18.NativeFrames?>); + (super.noSuchMethod(Invocation.method(#endNativeFrames, [id])) + as _i11.FutureOr<_i18.NativeFrames?>); @override _i11.FutureOr addBreadcrumb(_i2.Breadcrumb? breadcrumb) => - (super.noSuchMethod(Invocation.method( - #addBreadcrumb, - [breadcrumb], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#addBreadcrumb, [breadcrumb])) + as _i11.FutureOr); @override - _i11.FutureOr setContexts( - String? key, - dynamic value, - ) => - (super.noSuchMethod(Invocation.method( - #setContexts, - [ - key, - value, - ], - )) as _i11.FutureOr); + _i11.FutureOr setContexts(String? key, dynamic value) => + (super.noSuchMethod(Invocation.method(#setContexts, [key, value])) + as _i11.FutureOr); @override _i11.FutureOr removeContexts(String? key) => - (super.noSuchMethod(Invocation.method( - #removeContexts, - [key], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#removeContexts, [key])) + as _i11.FutureOr); @override - _i11.FutureOr setExtra( - String? key, - dynamic value, - ) => - (super.noSuchMethod(Invocation.method( - #setExtra, - [ - key, - value, - ], - )) as _i11.FutureOr); + _i11.FutureOr setExtra(String? key, dynamic value) => + (super.noSuchMethod(Invocation.method(#setExtra, [key, value])) + as _i11.FutureOr); @override _i11.FutureOr removeExtra(String? key) => - (super.noSuchMethod(Invocation.method( - #removeExtra, - [key], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#removeExtra, [key])) + as _i11.FutureOr); @override - _i11.FutureOr setTag( - String? key, - String? value, - ) => - (super.noSuchMethod(Invocation.method( - #setTag, - [ - key, - value, - ], - )) as _i11.FutureOr); + _i11.FutureOr setTag(String? key, String? value) => + (super.noSuchMethod(Invocation.method(#setTag, [key, value])) + as _i11.FutureOr); @override _i11.FutureOr removeTag(String? key) => - (super.noSuchMethod(Invocation.method( - #removeTag, - [key], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#removeTag, [key])) + as _i11.FutureOr); @override int? startProfiler(_i2.SentryId? traceId) => - (super.noSuchMethod(Invocation.method( - #startProfiler, - [traceId], - )) as int?); + (super.noSuchMethod(Invocation.method(#startProfiler, [traceId])) + as int?); @override _i11.FutureOr discardProfiler(_i2.SentryId? traceId) => - (super.noSuchMethod(Invocation.method( - #discardProfiler, - [traceId], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#discardProfiler, [traceId])) + as _i11.FutureOr); @override _i11.FutureOr?> collectProfile( @@ -1773,45 +1318,39 @@ class MockSentryNativeBinding extends _i1.Mock int? startTimeNs, int? endTimeNs, ) => - (super.noSuchMethod(Invocation.method( - #collectProfile, - [ - traceId, - startTimeNs, - endTimeNs, - ], - )) as _i11.FutureOr?>); + (super.noSuchMethod( + Invocation.method(#collectProfile, [ + traceId, + startTimeNs, + endTimeNs, + ]), + ) + as _i11.FutureOr?>); @override _i11.FutureOr?> loadDebugImages( - _i2.SentryStackTrace? stackTrace) => - (super.noSuchMethod(Invocation.method( - #loadDebugImages, - [stackTrace], - )) as _i11.FutureOr?>); + _i2.SentryStackTrace? stackTrace, + ) => + (super.noSuchMethod(Invocation.method(#loadDebugImages, [stackTrace])) + as _i11.FutureOr?>); @override _i11.FutureOr setReplayConfig(_i19.ReplayConfig? config) => - (super.noSuchMethod(Invocation.method( - #setReplayConfig, - [config], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#setReplayConfig, [config])) + as _i11.FutureOr); @override _i11.FutureOr<_i2.SentryId> captureReplay(bool? isCrash) => (super.noSuchMethod( - Invocation.method( - #captureReplay, - [isCrash], - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureReplay, - [isCrash], - ), - )), - ) as _i11.FutureOr<_i2.SentryId>); + Invocation.method(#captureReplay, [isCrash]), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method(#captureReplay, [isCrash]), + ), + ), + ) + as _i11.FutureOr<_i2.SentryId>); } /// A class which mocks [SentryDelayedFramesTracker]. @@ -1824,34 +1363,32 @@ class MockSentryDelayedFramesTracker extends _i1.Mock } @override - List<_i20.SentryFrameTiming> get delayedFrames => (super.noSuchMethod( - Invocation.getter(#delayedFrames), - returnValue: <_i20.SentryFrameTiming>[], - ) as List<_i20.SentryFrameTiming>); + List<_i20.SentryFrameTiming> get delayedFrames => + (super.noSuchMethod( + Invocation.getter(#delayedFrames), + returnValue: <_i20.SentryFrameTiming>[], + ) + as List<_i20.SentryFrameTiming>); @override - bool get isTrackingActive => (super.noSuchMethod( - Invocation.getter(#isTrackingActive), - returnValue: false, - ) as bool); + bool get isTrackingActive => + (super.noSuchMethod( + Invocation.getter(#isTrackingActive), + returnValue: false, + ) + as bool); @override void resume() => super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resume, []), + returnValueForMissingStub: null, + ); @override void pause() => super.noSuchMethod( - Invocation.method( - #pause, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#pause, []), + returnValueForMissingStub: null, + ); @override List<_i20.SentryFrameTiming> getFramesIntersecting({ @@ -1859,40 +1396,25 @@ class MockSentryDelayedFramesTracker extends _i1.Mock required DateTime? endTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #getFramesIntersecting, - [], - { - #startTimestamp: startTimestamp, - #endTimestamp: endTimestamp, - }, - ), - returnValue: <_i20.SentryFrameTiming>[], - ) as List<_i20.SentryFrameTiming>); + Invocation.method(#getFramesIntersecting, [], { + #startTimestamp: startTimestamp, + #endTimestamp: endTimestamp, + }), + returnValue: <_i20.SentryFrameTiming>[], + ) + as List<_i20.SentryFrameTiming>); @override - void addFrame( - DateTime? startTimestamp, - DateTime? endTimestamp, - ) => + void addFrame(DateTime? startTimestamp, DateTime? endTimestamp) => super.noSuchMethod( - Invocation.method( - #addFrame, - [ - startTimestamp, - endTimestamp, - ], - ), + Invocation.method(#addFrame, [startTimestamp, endTimestamp]), returnValueForMissingStub: null, ); @override void removeIrrelevantFrames(DateTime? spanStartTimestamp) => super.noSuchMethod( - Invocation.method( - #removeIrrelevantFrames, - [spanStartTimestamp], - ), + Invocation.method(#removeIrrelevantFrames, [spanStartTimestamp]), returnValueForMissingStub: null, ); @@ -1901,23 +1423,19 @@ class MockSentryDelayedFramesTracker extends _i1.Mock required DateTime? spanStartTimestamp, required DateTime? spanEndTimestamp, }) => - (super.noSuchMethod(Invocation.method( - #getFrameMetrics, - [], - { - #spanStartTimestamp: spanStartTimestamp, - #spanEndTimestamp: spanEndTimestamp, - }, - )) as _i20.SpanFrameMetrics?); + (super.noSuchMethod( + Invocation.method(#getFrameMetrics, [], { + #spanStartTimestamp: spanStartTimestamp, + #spanEndTimestamp: spanEndTimestamp, + }), + ) + as _i20.SpanFrameMetrics?); @override void clear() => super.noSuchMethod( - Invocation.method( - #clear, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [BindingWrapper]. @@ -1929,19 +1447,15 @@ class MockBindingWrapper extends _i1.Mock implements _i2.BindingWrapper { } @override - _i5.WidgetsBinding ensureInitialized() => (super.noSuchMethod( - Invocation.method( - #ensureInitialized, - [], - ), - returnValue: _FakeWidgetsBinding_10( - this, - Invocation.method( - #ensureInitialized, - [], - ), - ), - ) as _i5.WidgetsBinding); + _i5.WidgetsBinding ensureInitialized() => + (super.noSuchMethod( + Invocation.method(#ensureInitialized, []), + returnValue: _FakeWidgetsBinding_10( + this, + Invocation.method(#ensureInitialized, []), + ), + ) + as _i5.WidgetsBinding); } /// A class which mocks [WidgetsFlutterBinding]. @@ -1954,337 +1468,393 @@ class MockWidgetsFlutterBinding extends _i1.Mock } @override - _i6.SingletonFlutterWindow get window => (super.noSuchMethod( - Invocation.getter(#window), - returnValue: _FakeSingletonFlutterWindow_11( - this, - Invocation.getter(#window), - ), - ) as _i6.SingletonFlutterWindow); + _i6.SingletonFlutterWindow get window => + (super.noSuchMethod( + Invocation.getter(#window), + returnValue: _FakeSingletonFlutterWindow_11( + this, + Invocation.getter(#window), + ), + ) + as _i6.SingletonFlutterWindow); @override - _i6.PlatformDispatcher get platformDispatcher => (super.noSuchMethod( - Invocation.getter(#platformDispatcher), - returnValue: _FakePlatformDispatcher_12( - this, - Invocation.getter(#platformDispatcher), - ), - ) as _i6.PlatformDispatcher); + _i6.PlatformDispatcher get platformDispatcher => + (super.noSuchMethod( + Invocation.getter(#platformDispatcher), + returnValue: _FakePlatformDispatcher_12( + this, + Invocation.getter(#platformDispatcher), + ), + ) + as _i6.PlatformDispatcher); @override - bool get locked => (super.noSuchMethod( - Invocation.getter(#locked), - returnValue: false, - ) as bool); + bool get locked => + (super.noSuchMethod(Invocation.getter(#locked), returnValue: false) + as bool); @override - _i7.PointerRouter get pointerRouter => (super.noSuchMethod( - Invocation.getter(#pointerRouter), - returnValue: _FakePointerRouter_13( - this, - Invocation.getter(#pointerRouter), - ), - ) as _i7.PointerRouter); + _i7.PointerRouter get pointerRouter => + (super.noSuchMethod( + Invocation.getter(#pointerRouter), + returnValue: _FakePointerRouter_13( + this, + Invocation.getter(#pointerRouter), + ), + ) + as _i7.PointerRouter); @override - _i7.GestureArenaManager get gestureArena => (super.noSuchMethod( - Invocation.getter(#gestureArena), - returnValue: _FakeGestureArenaManager_14( - this, - Invocation.getter(#gestureArena), - ), - ) as _i7.GestureArenaManager); + _i7.GestureArenaManager get gestureArena => + (super.noSuchMethod( + Invocation.getter(#gestureArena), + returnValue: _FakeGestureArenaManager_14( + this, + Invocation.getter(#gestureArena), + ), + ) + as _i7.GestureArenaManager); @override - _i7.PointerSignalResolver get pointerSignalResolver => (super.noSuchMethod( - Invocation.getter(#pointerSignalResolver), - returnValue: _FakePointerSignalResolver_15( - this, - Invocation.getter(#pointerSignalResolver), - ), - ) as _i7.PointerSignalResolver); + _i7.PointerSignalResolver get pointerSignalResolver => + (super.noSuchMethod( + Invocation.getter(#pointerSignalResolver), + returnValue: _FakePointerSignalResolver_15( + this, + Invocation.getter(#pointerSignalResolver), + ), + ) + as _i7.PointerSignalResolver); @override - bool get resamplingEnabled => (super.noSuchMethod( - Invocation.getter(#resamplingEnabled), - returnValue: false, - ) as bool); + bool get resamplingEnabled => + (super.noSuchMethod( + Invocation.getter(#resamplingEnabled), + returnValue: false, + ) + as bool); @override set resamplingEnabled(bool? _resamplingEnabled) => super.noSuchMethod( - Invocation.setter( - #resamplingEnabled, - _resamplingEnabled, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#resamplingEnabled, _resamplingEnabled), + returnValueForMissingStub: null, + ); @override - Duration get samplingOffset => (super.noSuchMethod( - Invocation.getter(#samplingOffset), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#samplingOffset), - ), - ) as Duration); + Duration get samplingOffset => + (super.noSuchMethod( + Invocation.getter(#samplingOffset), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#samplingOffset), + ), + ) + as Duration); @override set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( - Invocation.setter( - #samplingOffset, - _samplingOffset, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#samplingOffset, _samplingOffset), + returnValueForMissingStub: null, + ); @override - _i7.SamplingClock get samplingClock => (super.noSuchMethod( - Invocation.getter(#samplingClock), - returnValue: _FakeSamplingClock_17( - this, - Invocation.getter(#samplingClock), - ), - ) as _i7.SamplingClock); + _i7.SamplingClock get samplingClock => + (super.noSuchMethod( + Invocation.getter(#samplingClock), + returnValue: _FakeSamplingClock_17( + this, + Invocation.getter(#samplingClock), + ), + ) + as _i7.SamplingClock); @override - _i21.SchedulingStrategy get schedulingStrategy => (super.noSuchMethod( - Invocation.getter(#schedulingStrategy), - returnValue: ({ - required int priority, - required _i21.SchedulerBinding scheduler, - }) => - false, - ) as _i21.SchedulingStrategy); + _i21.SchedulingStrategy get schedulingStrategy => + (super.noSuchMethod( + Invocation.getter(#schedulingStrategy), + returnValue: + ({ + required int priority, + required _i21.SchedulerBinding scheduler, + }) => false, + ) + as _i21.SchedulingStrategy); @override set schedulingStrategy(_i21.SchedulingStrategy? _schedulingStrategy) => super.noSuchMethod( - Invocation.setter( - #schedulingStrategy, - _schedulingStrategy, - ), + Invocation.setter(#schedulingStrategy, _schedulingStrategy), returnValueForMissingStub: null, ); @override - int get transientCallbackCount => (super.noSuchMethod( - Invocation.getter(#transientCallbackCount), - returnValue: 0, - ) as int); + int get transientCallbackCount => + (super.noSuchMethod( + Invocation.getter(#transientCallbackCount), + returnValue: 0, + ) + as int); @override - _i11.Future get endOfFrame => (super.noSuchMethod( - Invocation.getter(#endOfFrame), - returnValue: _i11.Future.value(), - ) as _i11.Future); + _i11.Future get endOfFrame => + (super.noSuchMethod( + Invocation.getter(#endOfFrame), + returnValue: _i11.Future.value(), + ) + as _i11.Future); @override - bool get hasScheduledFrame => (super.noSuchMethod( - Invocation.getter(#hasScheduledFrame), - returnValue: false, - ) as bool); + bool get hasScheduledFrame => + (super.noSuchMethod( + Invocation.getter(#hasScheduledFrame), + returnValue: false, + ) + as bool); @override - _i21.SchedulerPhase get schedulerPhase => (super.noSuchMethod( - Invocation.getter(#schedulerPhase), - returnValue: _i21.SchedulerPhase.idle, - ) as _i21.SchedulerPhase); + _i21.SchedulerPhase get schedulerPhase => + (super.noSuchMethod( + Invocation.getter(#schedulerPhase), + returnValue: _i21.SchedulerPhase.idle, + ) + as _i21.SchedulerPhase); @override - bool get framesEnabled => (super.noSuchMethod( - Invocation.getter(#framesEnabled), - returnValue: false, - ) as bool); + bool get framesEnabled => + (super.noSuchMethod(Invocation.getter(#framesEnabled), returnValue: false) + as bool); @override - Duration get currentFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - ) as Duration); + Duration get currentFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentFrameTimeStamp), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + ) + as Duration); @override - Duration get currentSystemFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentSystemFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - ) as Duration); + Duration get currentSystemFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentSystemFrameTimeStamp), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + ) + as Duration); @override - _i8.ValueNotifier get accessibilityFocus => (super.noSuchMethod( - Invocation.getter(#accessibilityFocus), - returnValue: _FakeValueNotifier_18( - this, - Invocation.getter(#accessibilityFocus), - ), - ) as _i8.ValueNotifier); + _i8.ValueNotifier get accessibilityFocus => + (super.noSuchMethod( + Invocation.getter(#accessibilityFocus), + returnValue: _FakeValueNotifier_18( + this, + Invocation.getter(#accessibilityFocus), + ), + ) + as _i8.ValueNotifier); @override - _i4.HardwareKeyboard get keyboard => (super.noSuchMethod( - Invocation.getter(#keyboard), - returnValue: _FakeHardwareKeyboard_19( - this, - Invocation.getter(#keyboard), - ), - ) as _i4.HardwareKeyboard); + _i4.HardwareKeyboard get keyboard => + (super.noSuchMethod( + Invocation.getter(#keyboard), + returnValue: _FakeHardwareKeyboard_19( + this, + Invocation.getter(#keyboard), + ), + ) + as _i4.HardwareKeyboard); @override - _i4.KeyEventManager get keyEventManager => (super.noSuchMethod( - Invocation.getter(#keyEventManager), - returnValue: _FakeKeyEventManager_20( - this, - Invocation.getter(#keyEventManager), - ), - ) as _i4.KeyEventManager); + _i4.KeyEventManager get keyEventManager => + (super.noSuchMethod( + Invocation.getter(#keyEventManager), + returnValue: _FakeKeyEventManager_20( + this, + Invocation.getter(#keyEventManager), + ), + ) + as _i4.KeyEventManager); @override - _i4.BinaryMessenger get defaultBinaryMessenger => (super.noSuchMethod( - Invocation.getter(#defaultBinaryMessenger), - returnValue: _FakeBinaryMessenger_9( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - ) as _i4.BinaryMessenger); + _i4.BinaryMessenger get defaultBinaryMessenger => + (super.noSuchMethod( + Invocation.getter(#defaultBinaryMessenger), + returnValue: _FakeBinaryMessenger_9( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + ) + as _i4.BinaryMessenger); @override - _i6.ChannelBuffers get channelBuffers => (super.noSuchMethod( - Invocation.getter(#channelBuffers), - returnValue: _FakeChannelBuffers_21( - this, - Invocation.getter(#channelBuffers), - ), - ) as _i6.ChannelBuffers); + _i6.ChannelBuffers get channelBuffers => + (super.noSuchMethod( + Invocation.getter(#channelBuffers), + returnValue: _FakeChannelBuffers_21( + this, + Invocation.getter(#channelBuffers), + ), + ) + as _i6.ChannelBuffers); @override - _i4.RestorationManager get restorationManager => (super.noSuchMethod( - Invocation.getter(#restorationManager), - returnValue: _FakeRestorationManager_22( - this, - Invocation.getter(#restorationManager), - ), - ) as _i4.RestorationManager); + _i4.RestorationManager get restorationManager => + (super.noSuchMethod( + Invocation.getter(#restorationManager), + returnValue: _FakeRestorationManager_22( + this, + Invocation.getter(#restorationManager), + ), + ) + as _i4.RestorationManager); @override - _i9.ImageCache get imageCache => (super.noSuchMethod( - Invocation.getter(#imageCache), - returnValue: _FakeImageCache_23( - this, - Invocation.getter(#imageCache), - ), - ) as _i9.ImageCache); + _i9.ImageCache get imageCache => + (super.noSuchMethod( + Invocation.getter(#imageCache), + returnValue: _FakeImageCache_23( + this, + Invocation.getter(#imageCache), + ), + ) + as _i9.ImageCache); @override - _i8.Listenable get systemFonts => (super.noSuchMethod( - Invocation.getter(#systemFonts), - returnValue: _FakeListenable_24( - this, - Invocation.getter(#systemFonts), - ), - ) as _i8.Listenable); + _i8.Listenable get systemFonts => + (super.noSuchMethod( + Invocation.getter(#systemFonts), + returnValue: _FakeListenable_24( + this, + Invocation.getter(#systemFonts), + ), + ) + as _i8.Listenable); @override - bool get semanticsEnabled => (super.noSuchMethod( - Invocation.getter(#semanticsEnabled), - returnValue: false, - ) as bool); + bool get semanticsEnabled => + (super.noSuchMethod( + Invocation.getter(#semanticsEnabled), + returnValue: false, + ) + as bool); @override - int get debugOutstandingSemanticsHandles => (super.noSuchMethod( - Invocation.getter(#debugOutstandingSemanticsHandles), - returnValue: 0, - ) as int); + int get debugOutstandingSemanticsHandles => + (super.noSuchMethod( + Invocation.getter(#debugOutstandingSemanticsHandles), + returnValue: 0, + ) + as int); @override - _i6.AccessibilityFeatures get accessibilityFeatures => (super.noSuchMethod( - Invocation.getter(#accessibilityFeatures), - returnValue: _FakeAccessibilityFeatures_25( - this, - Invocation.getter(#accessibilityFeatures), - ), - ) as _i6.AccessibilityFeatures); + _i6.AccessibilityFeatures get accessibilityFeatures => + (super.noSuchMethod( + Invocation.getter(#accessibilityFeatures), + returnValue: _FakeAccessibilityFeatures_25( + this, + Invocation.getter(#accessibilityFeatures), + ), + ) + as _i6.AccessibilityFeatures); @override - bool get disableAnimations => (super.noSuchMethod( - Invocation.getter(#disableAnimations), - returnValue: false, - ) as bool); + bool get disableAnimations => + (super.noSuchMethod( + Invocation.getter(#disableAnimations), + returnValue: false, + ) + as bool); @override - _i10.PipelineOwner get pipelineOwner => (super.noSuchMethod( - Invocation.getter(#pipelineOwner), - returnValue: _FakePipelineOwner_26( - this, - Invocation.getter(#pipelineOwner), - ), - ) as _i10.PipelineOwner); + _i10.PipelineOwner get pipelineOwner => + (super.noSuchMethod( + Invocation.getter(#pipelineOwner), + returnValue: _i14.dummyValue<_i10.PipelineOwner>( + this, + Invocation.getter(#pipelineOwner), + ), + ) + as _i10.PipelineOwner); @override - _i10.RenderView get renderView => (super.noSuchMethod( - Invocation.getter(#renderView), - returnValue: _FakeRenderView_27( - this, - Invocation.getter(#renderView), - ), - ) as _i10.RenderView); + _i10.RenderView get renderView => + (super.noSuchMethod( + Invocation.getter(#renderView), + returnValue: _FakeRenderView_26( + this, + Invocation.getter(#renderView), + ), + ) + as _i10.RenderView); @override - _i10.MouseTracker get mouseTracker => (super.noSuchMethod( - Invocation.getter(#mouseTracker), - returnValue: _FakeMouseTracker_28( - this, - Invocation.getter(#mouseTracker), - ), - ) as _i10.MouseTracker); + _i10.MouseTracker get mouseTracker => + (super.noSuchMethod( + Invocation.getter(#mouseTracker), + returnValue: _FakeMouseTracker_27( + this, + Invocation.getter(#mouseTracker), + ), + ) + as _i10.MouseTracker); @override - _i10.PipelineOwner get rootPipelineOwner => (super.noSuchMethod( - Invocation.getter(#rootPipelineOwner), - returnValue: _FakePipelineOwner_26( - this, - Invocation.getter(#rootPipelineOwner), - ), - ) as _i10.PipelineOwner); + _i10.PipelineOwner get rootPipelineOwner => + (super.noSuchMethod( + Invocation.getter(#rootPipelineOwner), + returnValue: _i14.dummyValue<_i10.PipelineOwner>( + this, + Invocation.getter(#rootPipelineOwner), + ), + ) + as _i10.PipelineOwner); @override - Iterable<_i10.RenderView> get renderViews => (super.noSuchMethod( - Invocation.getter(#renderViews), - returnValue: <_i10.RenderView>[], - ) as Iterable<_i10.RenderView>); + Iterable<_i10.RenderView> get renderViews => + (super.noSuchMethod( + Invocation.getter(#renderViews), + returnValue: <_i10.RenderView>[], + ) + as Iterable<_i10.RenderView>); @override - bool get sendFramesToEngine => (super.noSuchMethod( - Invocation.getter(#sendFramesToEngine), - returnValue: false, - ) as bool); + bool get sendFramesToEngine => + (super.noSuchMethod( + Invocation.getter(#sendFramesToEngine), + returnValue: false, + ) + as bool); @override - _i9.PlatformMenuDelegate get platformMenuDelegate => (super.noSuchMethod( - Invocation.getter(#platformMenuDelegate), - returnValue: _FakePlatformMenuDelegate_29( - this, - Invocation.getter(#platformMenuDelegate), - ), - ) as _i9.PlatformMenuDelegate); + _i9.PlatformMenuDelegate get platformMenuDelegate => + (super.noSuchMethod( + Invocation.getter(#platformMenuDelegate), + returnValue: _FakePlatformMenuDelegate_28( + this, + Invocation.getter(#platformMenuDelegate), + ), + ) + as _i9.PlatformMenuDelegate); @override set platformMenuDelegate(_i9.PlatformMenuDelegate? _platformMenuDelegate) => super.noSuchMethod( - Invocation.setter( - #platformMenuDelegate, - _platformMenuDelegate, - ), + Invocation.setter(#platformMenuDelegate, _platformMenuDelegate), returnValueForMissingStub: null, ); @override - bool get debugBuildingDirtyElements => (super.noSuchMethod( - Invocation.getter(#debugBuildingDirtyElements), - returnValue: false, - ) as bool); + bool get debugBuildingDirtyElements => + (super.noSuchMethod( + Invocation.getter(#debugBuildingDirtyElements), + returnValue: false, + ) + as bool); @override set debugBuildingDirtyElements(bool? _debugBuildingDirtyElements) => @@ -2297,198 +1867,170 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @override - bool get debugShowWidgetInspectorOverride => (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverride), - returnValue: false, - ) as bool); + bool get debugShowWidgetInspectorOverride => + (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverride), + returnValue: false, + ) + as bool); @override set debugShowWidgetInspectorOverride(bool? value) => super.noSuchMethod( - Invocation.setter( - #debugShowWidgetInspectorOverride, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#debugShowWidgetInspectorOverride, value), + returnValueForMissingStub: null, + ); @override _i8.ValueNotifier get debugShowWidgetInspectorOverrideNotifier => (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - returnValue: _FakeValueNotifier_18( - this, - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - ), - ) as _i8.ValueNotifier); + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + returnValue: _FakeValueNotifier_18( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + ) + as _i8.ValueNotifier); @override - _i9.FocusManager get focusManager => (super.noSuchMethod( - Invocation.getter(#focusManager), - returnValue: _FakeFocusManager_30( - this, - Invocation.getter(#focusManager), - ), - ) as _i9.FocusManager); + _i9.FocusManager get focusManager => + (super.noSuchMethod( + Invocation.getter(#focusManager), + returnValue: _FakeFocusManager_29( + this, + Invocation.getter(#focusManager), + ), + ) + as _i9.FocusManager); @override - bool get firstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#firstFrameRasterized), - returnValue: false, - ) as bool); + bool get firstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#firstFrameRasterized), + returnValue: false, + ) + as bool); @override - _i11.Future get waitUntilFirstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#waitUntilFirstFrameRasterized), - returnValue: _i11.Future.value(), - ) as _i11.Future); + _i11.Future get waitUntilFirstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#waitUntilFirstFrameRasterized), + returnValue: _i11.Future.value(), + ) + as _i11.Future); @override - bool get debugDidSendFirstFrameEvent => (super.noSuchMethod( - Invocation.getter(#debugDidSendFirstFrameEvent), - returnValue: false, - ) as bool); + bool get debugDidSendFirstFrameEvent => + (super.noSuchMethod( + Invocation.getter(#debugDidSendFirstFrameEvent), + returnValue: false, + ) + as bool); @override - bool get isRootWidgetAttached => (super.noSuchMethod( - Invocation.getter(#isRootWidgetAttached), - returnValue: false, - ) as bool); + bool get isRootWidgetAttached => + (super.noSuchMethod( + Invocation.getter(#isRootWidgetAttached), + returnValue: false, + ) + as bool); @override void initInstances() => super.noSuchMethod( - Invocation.method( - #initInstances, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initInstances, []), + returnValueForMissingStub: null, + ); @override - bool debugCheckZone(String? entryPoint) => (super.noSuchMethod( - Invocation.method( - #debugCheckZone, - [entryPoint], - ), - returnValue: false, - ) as bool); + bool debugCheckZone(String? entryPoint) => + (super.noSuchMethod( + Invocation.method(#debugCheckZone, [entryPoint]), + returnValue: false, + ) + as bool); @override void initServiceExtensions() => super.noSuchMethod( - Invocation.method( - #initServiceExtensions, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initServiceExtensions, []), + returnValueForMissingStub: null, + ); @override _i11.Future lockEvents(_i11.Future Function()? callback) => (super.noSuchMethod( - Invocation.method( - #lockEvents, - [callback], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#lockEvents, [callback]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void unlocked() => super.noSuchMethod( - Invocation.method( - #unlocked, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#unlocked, []), + returnValueForMissingStub: null, + ); @override - _i11.Future reassembleApplication() => (super.noSuchMethod( - Invocation.method( - #reassembleApplication, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future reassembleApplication() => + (super.noSuchMethod( + Invocation.method(#reassembleApplication, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override - _i11.Future performReassemble() => (super.noSuchMethod( - Invocation.method( - #performReassemble, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future performReassemble() => + (super.noSuchMethod( + Invocation.method(#performReassemble, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void registerSignalServiceExtension({ required String? name, required _i8.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 _i8.AsyncValueGetter? getter, required _i8.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 _i8.AsyncValueGetter? getter, required _i8.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, ); @@ -2497,86 +2039,53 @@ class MockWidgetsFlutterBinding extends _i1.Mock required String? name, required _i8.AsyncValueGetter? getter, required _i8.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 _i8.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 void cancelPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #cancelPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#cancelPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void handlePointerEvent(_i4.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handlePointerEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePointerEvent, [event]), + returnValueForMissingStub: null, + ); @override void hitTestInView( _i7.HitTestResult? result, _i6.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( - _i7.HitTestResult? result, - _i6.Offset? position, - ) => + void hitTest(_i7.HitTestResult? result, _i6.Offset? position) => super.noSuchMethod( - Invocation.method( - #hitTest, - [ - result, - position, - ], - ), + Invocation.method(#hitTest, [result, position]), returnValueForMissingStub: null, ); @@ -2584,78 +2093,49 @@ class MockWidgetsFlutterBinding extends _i1.Mock void dispatchEvent( _i4.PointerEvent? event, _i7.HitTestResult? hitTestResult, - ) => - super.noSuchMethod( - Invocation.method( - #dispatchEvent, - [ - event, - hitTestResult, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#dispatchEvent, [event, hitTestResult]), + returnValueForMissingStub: null, + ); @override void handleEvent( _i4.PointerEvent? event, _i7.HitTestEntry<_i7.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 void addTimingsCallback(_i6.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #addTimingsCallback, - [callback], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addTimingsCallback, [callback]), + returnValueForMissingStub: null, + ); @override void removeTimingsCallback(_i6.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #removeTimingsCallback, - [callback], - ), + Invocation.method(#removeTimingsCallback, [callback]), returnValueForMissingStub: null, ); @override void resetInternalState() => super.noSuchMethod( - Invocation.method( - #resetInternalState, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetInternalState, []), + returnValueForMissingStub: null, + ); @override void handleAppLifecycleStateChanged(_i6.AppLifecycleState? state) => super.noSuchMethod( - Invocation.method( - #handleAppLifecycleStateChanged, - [state], - ), + Invocation.method(#handleAppLifecycleStateChanged, [state]), returnValueForMissingStub: null, ); @@ -2667,58 +2147,41 @@ class MockWidgetsFlutterBinding extends _i1.Mock _i22.Flow? flow, }) => (super.noSuchMethod( - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - returnValue: _i14.ifNotNull( - _i14.dummyValueOrNull( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - ), - (T v) => _i11.Future.value(v), - ) ?? - _FakeFuture_31( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, ), - ) as _i11.Future); + returnValue: + _i14.ifNotNull( + _i14.dummyValueOrNull( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + (T v) => _i11.Future.value(v), + ) ?? + _FakeFuture_30( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + ) + as _i11.Future); @override - bool handleEventLoopCallback() => (super.noSuchMethod( - Invocation.method( - #handleEventLoopCallback, - [], - ), - returnValue: false, - ) as bool); + bool handleEventLoopCallback() => + (super.noSuchMethod( + Invocation.method(#handleEventLoopCallback, []), + returnValue: false, + ) + as bool); @override int scheduleFrameCallback( @@ -2726,236 +2189,181 @@ class MockWidgetsFlutterBinding extends _i1.Mock bool? rescheduling = false, }) => (super.noSuchMethod( - Invocation.method( - #scheduleFrameCallback, - [callback], - {#rescheduling: rescheduling}, - ), - returnValue: 0, - ) as int); + Invocation.method( + #scheduleFrameCallback, + [callback], + {#rescheduling: rescheduling}, + ), + returnValue: 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, - ) as bool); + bool debugAssertNoTransientCallbacks(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTransientCallbacks, [reason]), + returnValue: false, + ) + as bool); @override bool debugAssertNoPendingPerformanceModeRequests(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoPendingPerformanceModeRequests, - [reason], - ), - returnValue: false, - ) as bool); + Invocation.method(#debugAssertNoPendingPerformanceModeRequests, [ + reason, + ]), + returnValue: false, + ) + as bool); @override - bool debugAssertNoTimeDilation(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoTimeDilation, - [reason], - ), - returnValue: false, - ) as bool); + bool debugAssertNoTimeDilation(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTimeDilation, [reason]), + returnValue: false, + ) + as bool); @override void addPersistentFrameCallback(_i21.FrameCallback? callback) => super.noSuchMethod( - Invocation.method( - #addPersistentFrameCallback, - [callback], - ), + Invocation.method(#addPersistentFrameCallback, [callback]), returnValueForMissingStub: null, ); @override void addPostFrameCallback( _i21.FrameCallback? callback, { - String? debugLabel = r'callback', - }) => - super.noSuchMethod( - Invocation.method( - #addPostFrameCallback, - [callback], - {#debugLabel: debugLabel}, - ), - returnValueForMissingStub: null, - ); + String? debugLabel = '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 _i21.PerformanceModeRequestHandle? requestPerformanceMode( - _i6.DartPerformanceMode? mode) => - (super.noSuchMethod(Invocation.method( - #requestPerformanceMode, - [mode], - )) as _i21.PerformanceModeRequestHandle?); + _i6.DartPerformanceMode? mode, + ) => + (super.noSuchMethod(Invocation.method(#requestPerformanceMode, [mode])) + as _i21.PerformanceModeRequestHandle?); @override void handleDrawFrame() => super.noSuchMethod( - Invocation.method( - #handleDrawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleDrawFrame, []), + returnValueForMissingStub: null, + ); @override - _i4.BinaryMessenger createBinaryMessenger() => (super.noSuchMethod( - Invocation.method( - #createBinaryMessenger, - [], - ), - returnValue: _FakeBinaryMessenger_9( - this, - Invocation.method( - #createBinaryMessenger, - [], - ), - ), - ) as _i4.BinaryMessenger); + _i4.BinaryMessenger createBinaryMessenger() => + (super.noSuchMethod( + Invocation.method(#createBinaryMessenger, []), + returnValue: _FakeBinaryMessenger_9( + this, + Invocation.method(#createBinaryMessenger, []), + ), + ) + as _i4.BinaryMessenger); @override void handleMemoryPressure() => super.noSuchMethod( - Invocation.method( - #handleMemoryPressure, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleMemoryPressure, []), + returnValueForMissingStub: null, + ); @override _i11.Future handleSystemMessage(Object? systemMessage) => (super.noSuchMethod( - Invocation.method( - #handleSystemMessage, - [systemMessage], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#handleSystemMessage, [systemMessage]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.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 void handleViewFocusChanged(_i6.ViewFocusEvent? event) => super.noSuchMethod( - Invocation.method( - #handleViewFocusChanged, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleViewFocusChanged, [event]), + returnValueForMissingStub: null, + ); @override _i11.Future<_i6.AppExitResponse> handleRequestAppExit() => (super.noSuchMethod( - Invocation.method( - #handleRequestAppExit, - [], - ), - returnValue: - _i11.Future<_i6.AppExitResponse>.value(_i6.AppExitResponse.exit), - ) as _i11.Future<_i6.AppExitResponse>); + Invocation.method(#handleRequestAppExit, []), + returnValue: _i11.Future<_i6.AppExitResponse>.value( + _i6.AppExitResponse.exit, + ), + ) + as _i11.Future<_i6.AppExitResponse>); @override _i11.Future<_i6.AppExitResponse> exitApplication( @@ -2963,66 +2371,50 @@ class MockWidgetsFlutterBinding extends _i1.Mock int? exitCode = 0, ]) => (super.noSuchMethod( - Invocation.method( - #exitApplication, - [ - exitType, - exitCode, - ], - ), - returnValue: - _i11.Future<_i6.AppExitResponse>.value(_i6.AppExitResponse.exit), - ) as _i11.Future<_i6.AppExitResponse>); + Invocation.method(#exitApplication, [exitType, exitCode]), + returnValue: _i11.Future<_i6.AppExitResponse>.value( + _i6.AppExitResponse.exit, + ), + ) + as _i11.Future<_i6.AppExitResponse>); @override - _i4.RestorationManager createRestorationManager() => (super.noSuchMethod( - Invocation.method( - #createRestorationManager, - [], - ), - returnValue: _FakeRestorationManager_22( - this, - Invocation.method( - #createRestorationManager, - [], - ), - ), - ) as _i4.RestorationManager); + _i4.RestorationManager createRestorationManager() => + (super.noSuchMethod( + Invocation.method(#createRestorationManager, []), + returnValue: _FakeRestorationManager_22( + this, + Invocation.method(#createRestorationManager, []), + ), + ) + as _i4.RestorationManager); @override void setSystemUiChangeCallback(_i4.SystemUiChangeCallback? callback) => super.noSuchMethod( - Invocation.method( - #setSystemUiChangeCallback, - [callback], - ), + Invocation.method(#setSystemUiChangeCallback, [callback]), returnValueForMissingStub: null, ); @override - _i11.Future initializationComplete() => (super.noSuchMethod( - Invocation.method( - #initializationComplete, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future initializationComplete() => + (super.noSuchMethod( + Invocation.method(#initializationComplete, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override - _i9.ImageCache createImageCache() => (super.noSuchMethod( - Invocation.method( - #createImageCache, - [], - ), - returnValue: _FakeImageCache_23( - this, - Invocation.method( - #createImageCache, - [], - ), - ), - ) as _i9.ImageCache); + _i9.ImageCache createImageCache() => + (super.noSuchMethod( + Invocation.method(#createImageCache, []), + returnValue: _FakeImageCache_23( + this, + Invocation.method(#createImageCache, []), + ), + ) + as _i9.ImageCache); @override _i11.Future<_i6.Codec> instantiateImageCodecFromBuffer( @@ -3032,28 +2424,31 @@ class MockWidgetsFlutterBinding extends _i1.Mock bool? allowUpscaling = false, }) => (super.noSuchMethod( - Invocation.method( - #instantiateImageCodecFromBuffer, - [buffer], - { - #cacheWidth: cacheWidth, - #cacheHeight: cacheHeight, - #allowUpscaling: allowUpscaling, - }, - ), - returnValue: _i11.Future<_i6.Codec>.value(_FakeCodec_32( - this, - Invocation.method( - #instantiateImageCodecFromBuffer, - [buffer], - { - #cacheWidth: cacheWidth, - #cacheHeight: cacheHeight, - #allowUpscaling: allowUpscaling, - }, - ), - )), - ) as _i11.Future<_i6.Codec>); + Invocation.method( + #instantiateImageCodecFromBuffer, + [buffer], + { + #cacheWidth: cacheWidth, + #cacheHeight: cacheHeight, + #allowUpscaling: allowUpscaling, + }, + ), + returnValue: _i11.Future<_i6.Codec>.value( + _FakeCodec_31( + this, + Invocation.method( + #instantiateImageCodecFromBuffer, + [buffer], + { + #cacheWidth: cacheWidth, + #cacheHeight: cacheHeight, + #allowUpscaling: allowUpscaling, + }, + ), + ), + ), + ) + as _i11.Future<_i6.Codec>); @override _i11.Future<_i6.Codec> instantiateImageCodecWithSize( @@ -3061,371 +2456,277 @@ class MockWidgetsFlutterBinding extends _i1.Mock _i6.TargetImageSizeCallback? getTargetSize, }) => (super.noSuchMethod( - Invocation.method( - #instantiateImageCodecWithSize, - [buffer], - {#getTargetSize: getTargetSize}, - ), - returnValue: _i11.Future<_i6.Codec>.value(_FakeCodec_32( - this, - Invocation.method( - #instantiateImageCodecWithSize, - [buffer], - {#getTargetSize: getTargetSize}, - ), - )), - ) as _i11.Future<_i6.Codec>); + Invocation.method( + #instantiateImageCodecWithSize, + [buffer], + {#getTargetSize: getTargetSize}, + ), + returnValue: _i11.Future<_i6.Codec>.value( + _FakeCodec_31( + this, + Invocation.method( + #instantiateImageCodecWithSize, + [buffer], + {#getTargetSize: getTargetSize}, + ), + ), + ), + ) + as _i11.Future<_i6.Codec>); @override void addSemanticsEnabledListener(_i6.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addSemanticsEnabledListener, - [listener], - ), + Invocation.method(#addSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override void removeSemanticsEnabledListener(_i6.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeSemanticsEnabledListener, - [listener], - ), + Invocation.method(#removeSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override - _i12.SemanticsHandle ensureSemantics() => (super.noSuchMethod( - Invocation.method( - #ensureSemantics, - [], - ), - returnValue: _FakeSemanticsHandle_33( - this, - Invocation.method( - #ensureSemantics, - [], - ), - ), - ) as _i12.SemanticsHandle); + _i12.SemanticsHandle ensureSemantics() => + (super.noSuchMethod( + Invocation.method(#ensureSemantics, []), + returnValue: _FakeSemanticsHandle_32( + this, + Invocation.method(#ensureSemantics, []), + ), + ) + as _i12.SemanticsHandle); @override void performSemanticsAction(_i6.SemanticsActionEvent? action) => super.noSuchMethod( - Invocation.method( - #performSemanticsAction, - [action], - ), + Invocation.method(#performSemanticsAction, [action]), returnValueForMissingStub: null, ); @override void handleAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method( - #handleAccessibilityFeaturesChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleAccessibilityFeaturesChanged, []), + returnValueForMissingStub: null, + ); @override _i6.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => (super.noSuchMethod( - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - returnValue: _FakeSemanticsUpdateBuilder_34( - this, - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - ), - ) as _i6.SemanticsUpdateBuilder); + Invocation.method(#createSemanticsUpdateBuilder, []), + returnValue: _FakeSemanticsUpdateBuilder_33( + this, + Invocation.method(#createSemanticsUpdateBuilder, []), + ), + ) + as _i6.SemanticsUpdateBuilder); @override - _i10.PipelineOwner createRootPipelineOwner() => (super.noSuchMethod( - Invocation.method( - #createRootPipelineOwner, - [], - ), - returnValue: _FakePipelineOwner_26( - this, - Invocation.method( - #createRootPipelineOwner, - [], - ), - ), - ) as _i10.PipelineOwner); + _i10.PipelineOwner createRootPipelineOwner() => + (super.noSuchMethod( + Invocation.method(#createRootPipelineOwner, []), + returnValue: _i14.dummyValue<_i10.PipelineOwner>( + this, + Invocation.method(#createRootPipelineOwner, []), + ), + ) + as _i10.PipelineOwner); @override void addRenderView(_i10.RenderView? view) => super.noSuchMethod( - Invocation.method( - #addRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addRenderView, [view]), + returnValueForMissingStub: null, + ); @override void removeRenderView(_i10.RenderView? view) => super.noSuchMethod( - Invocation.method( - #removeRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeRenderView, [view]), + returnValueForMissingStub: null, + ); @override _i10.ViewConfiguration createViewConfigurationFor( - _i10.RenderView? renderView) => + _i10.RenderView? renderView, + ) => (super.noSuchMethod( - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - returnValue: _FakeViewConfiguration_35( - this, - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - ), - ) as _i10.ViewConfiguration); + Invocation.method(#createViewConfigurationFor, [renderView]), + returnValue: _FakeViewConfiguration_34( + this, + Invocation.method(#createViewConfigurationFor, [renderView]), + ), + ) + as _i10.ViewConfiguration); @override - _i6.SceneBuilder createSceneBuilder() => (super.noSuchMethod( - Invocation.method( - #createSceneBuilder, - [], - ), - returnValue: _FakeSceneBuilder_36( - this, - Invocation.method( - #createSceneBuilder, - [], - ), - ), - ) as _i6.SceneBuilder); + _i6.SceneBuilder createSceneBuilder() => + (super.noSuchMethod( + Invocation.method(#createSceneBuilder, []), + returnValue: _FakeSceneBuilder_35( + this, + Invocation.method(#createSceneBuilder, []), + ), + ) + as _i6.SceneBuilder); @override - _i6.PictureRecorder createPictureRecorder() => (super.noSuchMethod( - Invocation.method( - #createPictureRecorder, - [], - ), - returnValue: _FakePictureRecorder_37( - this, - Invocation.method( - #createPictureRecorder, - [], - ), - ), - ) as _i6.PictureRecorder); + _i6.PictureRecorder createPictureRecorder() => + (super.noSuchMethod( + Invocation.method(#createPictureRecorder, []), + returnValue: _FakePictureRecorder_36( + this, + Invocation.method(#createPictureRecorder, []), + ), + ) + as _i6.PictureRecorder); @override - _i6.Canvas createCanvas(_i6.PictureRecorder? recorder) => (super.noSuchMethod( - Invocation.method( - #createCanvas, - [recorder], - ), - returnValue: _FakeCanvas_38( - this, - Invocation.method( - #createCanvas, - [recorder], - ), - ), - ) as _i6.Canvas); + _i6.Canvas createCanvas(_i6.PictureRecorder? recorder) => + (super.noSuchMethod( + Invocation.method(#createCanvas, [recorder]), + returnValue: _FakeCanvas_37( + this, + Invocation.method(#createCanvas, [recorder]), + ), + ) + as _i6.Canvas); @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 initMouseTracker([_i10.MouseTracker? tracker]) => super.noSuchMethod( - Invocation.method( - #initMouseTracker, - [tracker], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initMouseTracker, [tracker]), + 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 drawFrame() => super.noSuchMethod( - Invocation.method( - #drawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawFrame, []), + returnValueForMissingStub: null, + ); @override void addObserver(_i5.WidgetsBindingObserver? observer) => super.noSuchMethod( - Invocation.method( - #addObserver, - [observer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addObserver, [observer]), + returnValueForMissingStub: null, + ); @override bool removeObserver(_i5.WidgetsBindingObserver? observer) => (super.noSuchMethod( - Invocation.method( - #removeObserver, - [observer], - ), - returnValue: false, - ) as bool); + Invocation.method(#removeObserver, [observer]), + returnValue: false, + ) + as bool); @override void handleLocaleChanged() => super.noSuchMethod( - Invocation.method( - #handleLocaleChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleLocaleChanged, []), + returnValueForMissingStub: null, + ); @override void dispatchLocalesChanged(List<_i6.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 - _i11.Future handlePopRoute() => (super.noSuchMethod( - Invocation.method( - #handlePopRoute, - [], - ), - returnValue: _i11.Future.value(false), - ) as _i11.Future); + _i11.Future handlePopRoute() => + (super.noSuchMethod( + Invocation.method(#handlePopRoute, []), + returnValue: _i11.Future.value(false), + ) + as _i11.Future); @override - _i11.Future handlePushRoute(String? route) => (super.noSuchMethod( - Invocation.method( - #handlePushRoute, - [route], - ), - returnValue: _i11.Future.value(false), - ) as _i11.Future); + _i11.Future handlePushRoute(String? route) => + (super.noSuchMethod( + Invocation.method(#handlePushRoute, [route]), + returnValue: _i11.Future.value(false), + ) + as _i11.Future); @override - _i9.Widget wrapWithDefaultView(_i9.Widget? rootWidget) => (super.noSuchMethod( - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - returnValue: _FakeWidget_39( - this, - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - ), - ) as _i9.Widget); + _i9.Widget wrapWithDefaultView(_i9.Widget? rootWidget) => + (super.noSuchMethod( + Invocation.method(#wrapWithDefaultView, [rootWidget]), + returnValue: _FakeWidget_38( + this, + Invocation.method(#wrapWithDefaultView, [rootWidget]), + ), + ) + as _i9.Widget); @override void scheduleAttachRootWidget(_i9.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #scheduleAttachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleAttachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachRootWidget(_i9.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #attachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachToBuildOwner(_i5.RootWidget? widget) => super.noSuchMethod( - Invocation.method( - #attachToBuildOwner, - [widget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachToBuildOwner, [widget]), + returnValueForMissingStub: null, + ); @override _i6.Locale? computePlatformResolvedLocale( - List<_i6.Locale>? supportedLocales) => - (super.noSuchMethod(Invocation.method( - #computePlatformResolvedLocale, - [supportedLocales], - )) as _i6.Locale?); + List<_i6.Locale>? supportedLocales, + ) => + (super.noSuchMethod( + Invocation.method(#computePlatformResolvedLocale, [ + supportedLocales, + ]), + ) + as _i6.Locale?); } /// A class which mocks [SentryJsBinding]. @@ -3438,30 +2739,21 @@ class MockSentryJsBinding extends _i1.Mock implements _i23.SentryJsBinding { @override void init(Map? options) => super.noSuchMethod( - Invocation.method( - #init, - [options], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#init, [options]), + returnValueForMissingStub: null, + ); @override void close() => super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#close, []), + returnValueForMissingStub: null, + ); @override void captureEnvelope(List? envelope) => super.noSuchMethod( - Invocation.method( - #captureEnvelope, - [envelope], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#captureEnvelope, [envelope]), + returnValueForMissingStub: null, + ); } /// A class which mocks [Hub]. @@ -3473,46 +2765,42 @@ class MockHub extends _i1.Mock implements _i2.Hub { } @override - _i2.SentryOptions get options => (super.noSuchMethod( - Invocation.getter(#options), - returnValue: _FakeSentryOptions_40( - this, - Invocation.getter(#options), - ), - ) as _i2.SentryOptions); + _i2.SentryOptions get options => + (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeSentryOptions_39( + this, + Invocation.getter(#options), + ), + ) + as _i2.SentryOptions); @override - bool get isEnabled => (super.noSuchMethod( - Invocation.getter(#isEnabled), - returnValue: false, - ) as bool); + bool get isEnabled => + (super.noSuchMethod(Invocation.getter(#isEnabled), returnValue: false) + as bool); @override - _i2.SentryId get lastEventId => (super.noSuchMethod( - Invocation.getter(#lastEventId), - returnValue: _FakeSentryId_5( - this, - Invocation.getter(#lastEventId), - ), - ) as _i2.SentryId); + _i2.SentryId get lastEventId => + (super.noSuchMethod( + Invocation.getter(#lastEventId), + returnValue: _FakeSentryId_5(this, Invocation.getter(#lastEventId)), + ) + as _i2.SentryId); @override - _i2.Scope get scope => (super.noSuchMethod( - Invocation.getter(#scope), - returnValue: _FakeScope_41( - this, - Invocation.getter(#scope), - ), - ) as _i2.Scope); + _i2.Scope get scope => + (super.noSuchMethod( + Invocation.getter(#scope), + returnValue: _FakeScope_40(this, Invocation.getter(#scope)), + ) + as _i2.Scope); @override set profilerFactory(_i15.SentryProfilerFactory? value) => super.noSuchMethod( - Invocation.setter( - #profilerFactory, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profilerFactory, value), + returnValueForMissingStub: null, + ); @override _i11.Future<_i2.SentryId> captureEvent( @@ -3522,28 +2810,23 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureException( @@ -3553,28 +2836,23 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureMessage( @@ -3586,43 +2864,44 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#captureUserFeedback, [userFeedback]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override _i11.Future<_i2.SentryId> captureFeedback( @@ -3631,82 +2910,60 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureFeedback, - [feedback], - { - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureFeedback, - [feedback], - { - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); - - @override - _i11.Future addBreadcrumb( - _i2.Breadcrumb? crumb, { - _i2.Hint? hint, - }) => + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); + + @override + _i11.Future addBreadcrumb(_i2.Breadcrumb? crumb, {_i2.Hint? hint}) => (super.noSuchMethod( - Invocation.method( - #addBreadcrumb, - [crumb], - {#hint: hint}, - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void bindClient(_i2.SentryClient? client) => super.noSuchMethod( - Invocation.method( - #bindClient, - [client], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#bindClient, [client]), + returnValueForMissingStub: null, + ); @override - _i2.Hub clone() => (super.noSuchMethod( - Invocation.method( - #clone, - [], - ), - returnValue: _FakeHub_42( - this, - Invocation.method( - #clone, - [], - ), - ), - ) as _i2.Hub); + _i2.Hub clone() => + (super.noSuchMethod( + Invocation.method(#clone, []), + returnValue: _FakeHub_41(this, Invocation.method(#clone, [])), + ) + as _i2.Hub); @override - _i11.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override _i11.FutureOr configureScope(_i2.ScopeCallback? callback) => - (super.noSuchMethod(Invocation.method( - #configureScope, - [callback], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#configureScope, [callback])) + as _i11.FutureOr); @override _i2.ISentrySpan startTransaction( @@ -3722,36 +2979,34 @@ class MockHub extends _i1.Mock implements _i2.Hub { Map? customSamplingContext, }) => (super.noSuchMethod( - Invocation.method( - #startTransaction, - [ - name, - operation, - ], - { - #description: description, - #startTimestamp: startTimestamp, - #bindToScope: bindToScope, - #waitForChildren: waitForChildren, - #autoFinishAfter: autoFinishAfter, - #trimEnd: trimEnd, - #onFinish: onFinish, - #customSamplingContext: customSamplingContext, - }, - ), - returnValue: _i13.startTransactionShim( - name, - operation, - description: description, - startTimestamp: startTimestamp, - bindToScope: bindToScope, - waitForChildren: waitForChildren, - autoFinishAfter: autoFinishAfter, - trimEnd: trimEnd, - onFinish: onFinish, - customSamplingContext: customSamplingContext, - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startTransaction, + [name, operation], + { + #description: description, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + #customSamplingContext: customSamplingContext, + }, + ), + returnValue: _i13.startTransactionShim( + name, + operation, + description: description, + startTimestamp: startTimestamp, + bindToScope: bindToScope, + waitForChildren: waitForChildren, + autoFinishAfter: autoFinishAfter, + trimEnd: trimEnd, + onFinish: onFinish, + customSamplingContext: customSamplingContext, + ), + ) + as _i2.ISentrySpan); @override _i2.ISentrySpan startTransactionWithContext( @@ -3765,36 +3020,37 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.OnTransactionFinish? onFinish, }) => (super.noSuchMethod( - Invocation.method( - #startTransactionWithContext, - [transactionContext], - { - #customSamplingContext: customSamplingContext, - #startTimestamp: startTimestamp, - #bindToScope: bindToScope, - #waitForChildren: waitForChildren, - #autoFinishAfter: autoFinishAfter, - #trimEnd: trimEnd, - #onFinish: onFinish, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startTransactionWithContext, - [transactionContext], - { - #customSamplingContext: customSamplingContext, - #startTimestamp: startTimestamp, - #bindToScope: bindToScope, - #waitForChildren: waitForChildren, - #autoFinishAfter: autoFinishAfter, - #trimEnd: trimEnd, - #onFinish: onFinish, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startTransactionWithContext, + [transactionContext], + { + #customSamplingContext: customSamplingContext, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + }, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startTransactionWithContext, + [transactionContext], + { + #customSamplingContext: customSamplingContext, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + }, + ), + ), + ) + as _i2.ISentrySpan); @override _i11.Future<_i2.SentryId> captureTransaction( @@ -3802,36 +3058,31 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.SentryTraceContextHeader? traceContext, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override void setSpanContext( dynamic throwable, _i2.ISentrySpan? span, String? transaction, - ) => - super.noSuchMethod( - Invocation.method( - #setSpanContext, - [ - throwable, - span, - transaction, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#setSpanContext, [throwable, span, transaction]), + returnValueForMissingStub: null, + ); } diff --git a/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart b/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart index 10ab1df8e8..beb822fd59 100644 --- a/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart +++ b/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in sentry_flutter/test/screenshot/sentry_screenshot_widget_test.dart. // Do not manually edit this file. @@ -16,6 +16,7 @@ import 'sentry_screenshot_widget_test.dart' as _i2; // 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 @@ -35,13 +36,8 @@ class MockCallbacks extends _i1.Mock implements _i2.Callbacks { _i3.SentryScreenshotWidgetStatus? b, ) => (super.noSuchMethod( - Invocation.method( - #onBuild, - [ - a, - b, - ], - ), - returnValue: false, - ) as bool); + Invocation.method(#onBuild, [a, b]), + returnValue: false, + ) + as bool); } diff --git a/flutter/test/web/sentry_web_test.dart b/flutter/test/web/sentry_web_test.dart index 337183eff9..c3d1496a17 100644 --- a/flutter/test/web/sentry_web_test.dart +++ b/flutter/test/web/sentry_web_test.dart @@ -42,45 +42,47 @@ void main() { await sut.close(); }); - test('init: options mapped to JS SDK', () async { - const expectedDsn = 'https://random@def.ingest.sentry.io/1234567'; - const expectedRelease = 'my-random-release'; - const expectedSampleRate = 0.2; - const expectedEnv = 'my-random-env'; - const expectedDist = '999'; - const expectedAttachStacktrace = false; - const expectedMaxBreadcrumbs = 1000; - const expectedDebug = true; - - options.dsn = expectedDsn; - options.release = expectedRelease; - options.sampleRate = expectedSampleRate; - options.environment = expectedEnv; - options.dist = expectedDist; - options.attachStacktrace = expectedAttachStacktrace; - options.maxBreadcrumbs = expectedMaxBreadcrumbs; - options.debug = expectedDebug; - - // quick check that Sentry is not initialized first - expect(() => binding.getJsOptions()['dsn'], throwsA(anything)); - - await sut.init(hub); - - final jsOptions = binding.getJsOptions(); - expect(jsOptions['dsn'], expectedDsn); - expect(jsOptions['release'], expectedRelease); - expect(jsOptions['sampleRate'], expectedSampleRate); - expect(jsOptions['environment'], expectedEnv); - expect(jsOptions['dist'], expectedDist); - expect(jsOptions['attachStacktrace'], expectedAttachStacktrace); - expect(jsOptions['maxBreadcrumbs'], expectedMaxBreadcrumbs); - expect(jsOptions['debug'], expectedDebug); - expect(jsOptions['defaultIntegrations'].length, 2); - expect(jsOptions['defaultIntegrations'][0].toString(), - contains('name: GlobalHandlers')); - expect(jsOptions['defaultIntegrations'][1].toString(), - contains('name: Dedupe')); - }); + // TODO: re-enable this test in V9 + // test('init: options mapped to JS SDK', () async { + // const expectedDsn = 'https://random@def.ingest.sentry.io/1234567'; + // const expectedRelease = 'my-random-release'; + // const expectedSampleRate = 0.2; + // const expectedEnv = 'my-random-env'; + // const expectedDist = '999'; + // const expectedAttachStacktrace = false; + // const expectedMaxBreadcrumbs = 1000; + // const expectedDebug = true; + // + // options.dsn = expectedDsn; + // options.release = expectedRelease; + // options.sampleRate = expectedSampleRate; + // options.environment = expectedEnv; + // options.dist = expectedDist; + // options.attachStacktrace = expectedAttachStacktrace; + // options.maxBreadcrumbs = expectedMaxBreadcrumbs; + // options.debug = expectedDebug; + // + // // quick check that Sentry is not initialized first + // expect(() => binding.getJsOptions()['dsn'], throwsA(anything)); + // + // await sut.init(hub); + // + // final jsOptions = binding.getJsOptions(); + // + // expect(jsOptions['dsn'], expectedDsn); + // expect(jsOptions['release'], expectedRelease); + // expect(jsOptions['sampleRate'], expectedSampleRate); + // expect(jsOptions['environment'], expectedEnv); + // expect(jsOptions['dist'], expectedDist); + // expect(jsOptions['attachStacktrace'], expectedAttachStacktrace); + // expect(jsOptions['maxBreadcrumbs'], expectedMaxBreadcrumbs); + // expect(jsOptions['debug'], expectedDebug); + // expect(jsOptions['defaultIntegrations'].length, 2); + // expect(jsOptions['defaultIntegrations'][0].toString(), + // contains('name: GlobalHandlers')); + // expect(jsOptions['defaultIntegrations'][1].toString(), + // contains('name: Dedupe')); + // }); test('options getter returns the original options', () { expect(sut.options, same(options)); diff --git a/hive/lib/src/version.dart b/hive/lib/src/version.dart index 9a0dad15d5..1f305b107b 100644 --- a/hive/lib/src/version.dart +++ b/hive/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_hive'; diff --git a/hive/pubspec.yaml b/hive/pubspec.yaml index 95b9f6b34d..cbdf474d0d 100644 --- a/hive/pubspec.yaml +++ b/hive/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_hive description: An integration which adds support for performance tracing for the hive package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 hive: ^2.2.3 meta: ^1.3.0 diff --git a/isar/lib/src/version.dart b/isar/lib/src/version.dart index 2ec1bf8d62..47a31c6460 100644 --- a/isar/lib/src/version.dart +++ b/isar/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_isar'; diff --git a/isar/pubspec.yaml b/isar/pubspec.yaml index 1c709ebee9..4e7cbe3dd6 100644 --- a/isar/pubspec.yaml +++ b/isar/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_isar description: An integration which adds support for performance tracing for the isar package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -20,7 +20,7 @@ platforms: dependencies: isar: ^3.1.0 isar_flutter_libs: ^3.1.0 # contains Isar Core - sentry: 8.13.1 + sentry: 8.13.2 meta: ^1.3.0 path: ^1.8.3 diff --git a/link/pubspec.yaml b/link/pubspec.yaml index 740820bdec..b22296b6e4 100644 --- a/link/pubspec.yaml +++ b/link/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_link description: Automatic capture of exceptions and GraphQL errors for the gql eco-system, like graphql and ferry -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -13,7 +13,7 @@ dependencies: gql_exec: ">=0.4.4 <2.0.0" gql_link: ">=0.5.0 <2.0.0" gql: ">=0.14.0 <2.0.0" - sentry: 8.13.1 + sentry: 8.13.2 dev_dependencies: lints: ^4.0.0 diff --git a/logging/lib/src/version.dart b/logging/lib/src/version.dart index 34e261a816..91cc601198 100644 --- a/logging/lib/src/version.dart +++ b/logging/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_logging'; diff --git a/logging/pubspec.yaml b/logging/pubspec.yaml index f29eee5081..1ad97adef9 100644 --- a/logging/pubspec.yaml +++ b/logging/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_logging description: An integration which adds support for recording log from the logging package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: logging: ^1.0.0 - sentry: 8.13.1 + sentry: 8.13.2 dev_dependencies: lints: '>=2.0.0' diff --git a/sqflite/lib/src/version.dart b/sqflite/lib/src/version.dart index 5cce226e6a..e2e0a0447b 100644 --- a/sqflite/lib/src/version.dart +++ b/sqflite/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_sqflite'; diff --git a/sqflite/pubspec.yaml b/sqflite/pubspec.yaml index d6e4354e1b..1ccee8cca1 100644 --- a/sqflite/pubspec.yaml +++ b/sqflite/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_sqflite description: An integration which adds support for performance tracing for the sqflite package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -15,7 +15,7 @@ platforms: macos: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 sqflite: ^2.2.8 sqflite_common: ^2.0.0 meta: ^1.3.0