From 1e0e8fadbce5fa1a8b3e39fb6674e9a0196096c7 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Tue, 11 Feb 2025 00:18:11 +0100 Subject: [PATCH 1/6] remove old user feedback api --- dart/lib/sentry.dart | 69 +- dart/lib/src/hub.dart | 34 - dart/lib/src/hub_adapter.dart | 7 - dart/lib/src/noop_hub.dart | 5 - dart/lib/src/noop_sentry_client.dart | 5 - dart/lib/src/sentry.dart | 9 - dart/lib/src/sentry_client.dart | 13 - dart/lib/src/sentry_envelope.dart | 18 - dart/lib/src/sentry_envelope_item.dart | 17 - dart/lib/src/sentry_user_feedback.dart | 69 - dart/test/mocks/mock_hub.dart | 7 - dart/test/mocks/mock_sentry_client.dart | 8 - dart/test/sentry_client_test.dart | 16 - dart/test/sentry_envelope_item_test.dart | 21 - dart/test/sentry_envelope_test.dart | 30 - dart/test/sentry_user_feedback_test.dart | 243 - dio/test/mocks/mock_hub.dart | 8 - drift/test/mocks/mocks.mocks.dart | 958 ++-- .../integration_test/integration_test.dart | 16 - flutter/test/mocks.mocks.dart | 4275 +++++++---------- .../sentry_screenshot_widget_test.mocks.dart | 16 +- hive/test/mocks/mocks.mocks.dart | 1838 ++++--- isar/test/mocks/mocks.mocks.dart | 46 +- sqflite/test/mocks/mocks.mocks.dart | 2156 ++++----- 24 files changed, 4035 insertions(+), 5849 deletions(-) delete mode 100644 dart/lib/src/sentry_user_feedback.dart delete mode 100644 dart/test/sentry_user_feedback_test.dart diff --git a/dart/lib/sentry.dart b/dart/lib/sentry.dart index f9ce19842b..1ffb29b850 100644 --- a/dart/lib/sentry.dart +++ b/dart/lib/sentry.dart @@ -5,60 +5,59 @@ /// A pure Dart client for Sentry.io crash reporting. library; -export 'src/run_zoned_guarded_integration.dart'; +export 'src/event_processor.dart'; +export 'src/exception_cause.dart'; +// exception extraction +export 'src/exception_cause_extractor.dart'; +export 'src/exception_stacktrace_extractor.dart'; +export 'src/exception_type_identifier.dart'; +export 'src/hint.dart'; +export 'src/http_client/sentry_http_client.dart'; +export 'src/http_client/sentry_http_client_error.dart'; export 'src/hub.dart'; // useful for tests export 'src/hub_adapter.dart'; -export 'src/platform_checker.dart'; +export 'src/integration.dart'; export 'src/noop_isolate_error_integration.dart' if (dart.library.io) 'src/isolate_error_integration.dart'; +export 'src/performance_collector.dart'; +export 'src/platform_checker.dart'; export 'src/protocol.dart'; +// feedback +export 'src/protocol/sentry_feedback.dart'; +// proxy +export 'src/protocol/sentry_proxy.dart'; +export 'src/run_zoned_guarded_integration.dart'; export 'src/scope.dart'; export 'src/scope_observer.dart'; export 'src/sentry.dart'; +export 'src/sentry_attachment/sentry_attachment.dart'; +export 'src/sentry_baggage.dart'; +export 'src/sentry_client.dart'; export 'src/sentry_envelope.dart'; export 'src/sentry_envelope_item.dart'; -export 'src/sentry_client.dart'; export 'src/sentry_options.dart'; +// ignore: invalid_export_of_internal_element +export 'src/sentry_span_operations.dart'; +// ignore: invalid_export_of_internal_element +export 'src/sentry_trace_origins.dart'; +// constants +export 'src/span_data_convention.dart'; +// spotlight debugging +export 'src/spotlight.dart'; // useful for integrations export 'src/throwable_mechanism.dart'; -export 'src/transport/transport.dart'; -export 'src/integration.dart'; -export 'src/event_processor.dart'; -export 'src/http_client/sentry_http_client.dart'; -export 'src/http_client/sentry_http_client_error.dart'; -export 'src/sentry_attachment/sentry_attachment.dart'; -export 'src/sentry_user_feedback.dart'; -export 'src/utils/tracing_utils.dart'; -export 'src/performance_collector.dart'; // tracing export 'src/tracing.dart'; -export 'src/hint.dart'; +export 'src/transport/transport.dart'; export 'src/type_check_hint.dart'; -export 'src/sentry_baggage.dart'; -// exception extraction -export 'src/exception_cause_extractor.dart'; -export 'src/exception_cause.dart'; -export 'src/exception_stacktrace_extractor.dart'; -export 'src/exception_type_identifier.dart'; -// URL -// ignore: invalid_export_of_internal_element -export 'src/utils/http_sanitizer.dart'; // ignore: invalid_export_of_internal_element -export 'src/utils/url_details.dart'; +export 'src/utils.dart'; // ignore: invalid_export_of_internal_element export 'src/utils/http_header_utils.dart'; +// URL // ignore: invalid_export_of_internal_element -export 'src/sentry_trace_origins.dart'; -// ignore: invalid_export_of_internal_element -export 'src/sentry_span_operations.dart'; +export 'src/utils/http_sanitizer.dart'; +export 'src/utils/tracing_utils.dart'; // ignore: invalid_export_of_internal_element -export 'src/utils.dart'; -// spotlight debugging -export 'src/spotlight.dart'; -// proxy -export 'src/protocol/sentry_proxy.dart'; -// feedback -export 'src/protocol/sentry_feedback.dart'; -// constants -export 'src/span_data_convention.dart'; +export 'src/utils/url_details.dart'; diff --git a/dart/lib/src/hub.dart b/dart/lib/src/hub.dart index ff8e639998..6c51df133d 100644 --- a/dart/lib/src/hub.dart +++ b/dart/lib/src/hub.dart @@ -242,40 +242,6 @@ class Hub { return sentryId; } - @Deprecated( - 'Will be removed in a future version. Use [captureFeedback] instead') - Future captureUserFeedback(SentryUserFeedback userFeedback) async { - if (!_isEnabled) { - _options.logger( - SentryLevel.warning, - "Instance is disabled and this 'captureUserFeedback' call is a no-op.", - ); - return; - } - if (userFeedback.eventId == SentryId.empty()) { - _options.logger( - SentryLevel.warning, - 'Captured UserFeedback with empty id, dropping the feedback', - ); - return; - } - try { - final item = _peek(); - - await item.client.captureUserFeedback(userFeedback); - } catch (exception, stacktrace) { - _options.logger( - SentryLevel.error, - 'Error while capturing user feedback for ${userFeedback.eventId}', - exception: exception, - stackTrace: stacktrace, - ); - if (_options.automatedTestMode) { - rethrow; - } - } - } - /// Captures the feedback. Future captureFeedback( SentryFeedback feedback, { diff --git a/dart/lib/src/hub_adapter.dart b/dart/lib/src/hub_adapter.dart index 88b427e376..aebedf2831 100644 --- a/dart/lib/src/hub_adapter.dart +++ b/dart/lib/src/hub_adapter.dart @@ -11,7 +11,6 @@ import 'scope.dart'; import 'sentry.dart'; import 'sentry_client.dart'; import 'sentry_options.dart'; -import 'sentry_user_feedback.dart'; import 'tracing.dart'; /// Hub adapter to make Integrations testable @@ -110,12 +109,6 @@ class HubAdapter implements Hub { @override ISentrySpan? getSpan() => Sentry.currentHub.getSpan(); - @override - // ignore: deprecated_member_use_from_same_package - Future captureUserFeedback(SentryUserFeedback userFeedback) => - // ignore: deprecated_member_use_from_same_package - Sentry.captureUserFeedback(userFeedback); - @override ISentrySpan startTransactionWithContext( SentryTransactionContext transactionContext, { diff --git a/dart/lib/src/noop_hub.dart b/dart/lib/src/noop_hub.dart index d07e3c9609..ac99701a7b 100644 --- a/dart/lib/src/noop_hub.dart +++ b/dart/lib/src/noop_hub.dart @@ -10,7 +10,6 @@ import 'protocol/sentry_feedback.dart'; import 'scope.dart'; import 'sentry_client.dart'; import 'sentry_options.dart'; -import 'sentry_user_feedback.dart'; import 'tracing.dart'; class NoOpHub implements Hub { @@ -85,10 +84,6 @@ class NoOpHub implements Hub { }) async => SentryId.empty(); - @override - // ignore: deprecated_member_use_from_same_package - Future captureUserFeedback(SentryUserFeedback userFeedback) async {} - @override Future captureFeedback( SentryFeedback feedback, { diff --git a/dart/lib/src/noop_sentry_client.dart b/dart/lib/src/noop_sentry_client.dart index 7aa9aabe73..baa478f70c 100644 --- a/dart/lib/src/noop_sentry_client.dart +++ b/dart/lib/src/noop_sentry_client.dart @@ -7,7 +7,6 @@ import 'scope.dart'; import 'sentry_client.dart'; import 'sentry_envelope.dart'; import 'sentry_trace_context_header.dart'; -import 'sentry_user_feedback.dart'; class NoOpSentryClient implements SentryClient { NoOpSentryClient._(); @@ -51,10 +50,6 @@ class NoOpSentryClient implements SentryClient { Future captureEnvelope(SentryEnvelope envelope) async => SentryId.empty(); - @override - // ignore: deprecated_member_use_from_same_package - Future captureUserFeedback(SentryUserFeedback userFeedback) async {} - @override Future close() async {} diff --git a/dart/lib/src/sentry.dart b/dart/lib/src/sentry.dart index 7b62938c96..9660cd3255 100644 --- a/dart/lib/src/sentry.dart +++ b/dart/lib/src/sentry.dart @@ -22,7 +22,6 @@ import 'sentry_attachment/sentry_attachment.dart'; import 'sentry_client.dart'; import 'sentry_options.dart'; import 'sentry_run_zoned_guarded.dart'; -import 'sentry_user_feedback.dart'; import 'tracing.dart'; import 'transport/data_category.dart'; import 'transport/task_queue.dart'; @@ -249,14 +248,6 @@ class Sentry { DataCategory.unknown, ); - /// Reports a [userFeedback] to Sentry.io. - /// - /// First capture an event and use the [SentryId] to create a [SentryUserFeedback] - @Deprecated( - 'Will be removed in a future version. Use [captureFeedback] instead') - static Future captureUserFeedback(SentryUserFeedback userFeedback) => - _hub.captureUserFeedback(userFeedback); - /// Reports [SentryFeedback] to Sentry.io. /// /// Use [withScope] to add [SentryAttachment] to the feedback. diff --git a/dart/lib/src/sentry_client.dart b/dart/lib/src/sentry_client.dart index ce0e48bac7..a88740c452 100644 --- a/dart/lib/src/sentry_client.dart +++ b/dart/lib/src/sentry_client.dart @@ -17,7 +17,6 @@ import 'sentry_exception_factory.dart'; import 'sentry_options.dart'; import 'sentry_stack_trace_factory.dart'; import 'sentry_trace_context_header.dart'; -import 'sentry_user_feedback.dart'; import 'transport/client_report_transport.dart'; import 'transport/data_category.dart'; import 'transport/http_transport.dart'; @@ -443,18 +442,6 @@ class SentryClient { return _options.transport.send(envelope); } - /// Reports the [userFeedback] to Sentry.io. - @Deprecated( - 'Will be removed in a future version. Use [captureFeedback] instead') - Future captureUserFeedback(SentryUserFeedback userFeedback) { - final envelope = SentryEnvelope.fromUserFeedback( - userFeedback, - _options.sdk, - dsn: _options.dsn, - ); - return _options.transport.send(envelope); - } - /// Reports the [feedback] to Sentry.io. Future captureFeedback( SentryFeedback feedback, { diff --git a/dart/lib/src/sentry_envelope.dart b/dart/lib/src/sentry_envelope.dart index 5d83797143..10d4b3a085 100644 --- a/dart/lib/src/sentry_envelope.dart +++ b/dart/lib/src/sentry_envelope.dart @@ -8,7 +8,6 @@ import 'sentry_envelope_item.dart'; import 'sentry_item_type.dart'; import 'sentry_options.dart'; import 'sentry_trace_context_header.dart'; -import 'sentry_user_feedback.dart'; import 'utils.dart'; /// Class representation of `Envelope` file. @@ -59,23 +58,6 @@ class SentryEnvelope { ); } - @Deprecated('Will be removed in a future version.') - factory SentryEnvelope.fromUserFeedback( - SentryUserFeedback feedback, - SdkVersion sdkVersion, { - String? dsn, - }) { - return SentryEnvelope( - // no need for [traceContext] - SentryEnvelopeHeader( - feedback.eventId, - sdkVersion, - dsn: dsn, - ), - [SentryEnvelopeItem.fromUserFeedback(feedback)], - ); - } - /// Create a [SentryEnvelope] containing one [SentryEnvelopeItem] which holds the [SentryTransaction] data. factory SentryEnvelope.fromTransaction( SentryTransaction transaction, diff --git a/dart/lib/src/sentry_envelope_item.dart b/dart/lib/src/sentry_envelope_item.dart index 03164ba2a8..bfe4d818eb 100644 --- a/dart/lib/src/sentry_envelope_item.dart +++ b/dart/lib/src/sentry_envelope_item.dart @@ -5,7 +5,6 @@ import 'protocol.dart'; import 'sentry_attachment/sentry_attachment.dart'; import 'sentry_envelope_item_header.dart'; import 'sentry_item_type.dart'; -import 'sentry_user_feedback.dart'; import 'utils.dart'; /// Item holding header information and JSON encoded data. @@ -40,22 +39,6 @@ class SentryEnvelopeItem { ); } - /// Create a [SentryEnvelopeItem] which sends [SentryUserFeedback]. - @Deprecated('Will be removed in a future version.') - factory SentryEnvelopeItem.fromUserFeedback(SentryUserFeedback feedback) { - final dataFactory = () => utf8JsonEncoder.convert(feedback.toJson()); - - final header = SentryEnvelopeItemHeader( - SentryItemType.userFeedback, - contentType: 'application/json', - ); - return SentryEnvelopeItem( - header, - dataFactory, - originalObject: feedback, - ); - } - /// Create a [SentryEnvelopeItem] which holds the [SentryEvent] data. factory SentryEnvelopeItem.fromEvent(SentryEvent event) { return SentryEnvelopeItem( diff --git a/dart/lib/src/sentry_user_feedback.dart b/dart/lib/src/sentry_user_feedback.dart deleted file mode 100644 index 722a0983f1..0000000000 --- a/dart/lib/src/sentry_user_feedback.dart +++ /dev/null @@ -1,69 +0,0 @@ -import 'package:meta/meta.dart'; - -import 'protocol.dart'; -import 'protocol/access_aware_map.dart'; - -@Deprecated('Will be removed in a future version. Use [SentryFeedback] instead') -class SentryUserFeedback { - SentryUserFeedback({ - required this.eventId, - this.name, - this.email, - this.comments, - this.unknown, - }) : assert(eventId != SentryId.empty() && - (name?.isNotEmpty == true || - email?.isNotEmpty == true || - comments?.isNotEmpty == true)); - - factory SentryUserFeedback.fromJson(Map data) { - final json = AccessAwareMap(data); - return SentryUserFeedback( - eventId: SentryId.fromId(json['event_id']), - name: json['name'], - email: json['email'], - comments: json['comments'], - unknown: json.notAccessed(), - ); - } - - /// The eventId of the event to which the user feedback is associated. - final SentryId eventId; - - /// Recommended: The name of the user. - final String? name; - - /// Recommended: The name of the user. - final String? email; - - /// Recommended: Comments of the user about what happened. - final String? comments; - - @internal - final Map? unknown; - - Map toJson() { - return { - ...?unknown, - 'event_id': eventId.toString(), - if (name != null) 'name': name, - if (email != null) 'email': email, - if (comments != null) 'comments': comments, - }; - } - - SentryUserFeedback copyWith({ - SentryId? eventId, - String? name, - String? email, - String? comments, - }) { - return SentryUserFeedback( - eventId: eventId ?? this.eventId, - name: name ?? this.name, - email: email ?? this.email, - comments: comments ?? this.comments, - unknown: unknown, - ); - } -} diff --git a/dart/test/mocks/mock_hub.dart b/dart/test/mocks/mock_hub.dart index 62db6c13a4..5258dccbaa 100644 --- a/dart/test/mocks/mock_hub.dart +++ b/dart/test/mocks/mock_hub.dart @@ -13,7 +13,6 @@ class MockHub with NoSuchMethodProvider implements Hub { List bindClientCalls = []; // ignore: deprecated_member_use_from_same_package - List userFeedbackCalls = []; List captureTransactionCalls = []; int closeCalls = 0; bool _isEnabled = true; @@ -118,12 +117,6 @@ class MockHub with NoSuchMethodProvider implements Hub { return transaction.eventId; } - @override - // ignore: deprecated_member_use_from_same_package - Future captureUserFeedback(SentryUserFeedback userFeedback) async { - userFeedbackCalls.add(userFeedback); - } - @override ISentrySpan? getSpan() { getSpanCalls++; diff --git a/dart/test/mocks/mock_sentry_client.dart b/dart/test/mocks/mock_sentry_client.dart index 7a79b31f7c..90e60cc8f3 100644 --- a/dart/test/mocks/mock_sentry_client.dart +++ b/dart/test/mocks/mock_sentry_client.dart @@ -9,8 +9,6 @@ class MockSentryClient with NoSuchMethodProvider implements SentryClient { List captureEnvelopeCalls = []; List captureTransactionCalls = []; - // ignore: deprecated_member_use_from_same_package - List userFeedbackCalls = []; List captureFeedbackCalls = []; int closeCalls = 0; @@ -72,12 +70,6 @@ class MockSentryClient with NoSuchMethodProvider implements SentryClient { return envelope.header.eventId ?? SentryId.newId(); } - @override - // ignore: deprecated_member_use_from_same_package - Future captureUserFeedback(SentryUserFeedback userFeedback) async { - userFeedbackCalls.add(userFeedback); - } - @override Future captureFeedback( SentryFeedback feedback, { diff --git a/dart/test/sentry_client_test.dart b/dart/test/sentry_client_test.dart index 170dc9d36a..3a5ed06c4c 100644 --- a/dart/test/sentry_client_test.dart +++ b/dart/test/sentry_client_test.dart @@ -1856,22 +1856,6 @@ void main() { expect( fixture.recorder.discardedEvents.first.category, DataCategory.error); }); - - test('user feedback envelope contains dsn', () async { - final client = fixture.getSut(); - final event = SentryEvent(); - // ignore: deprecated_member_use_from_same_package - final feedback = SentryUserFeedback( - eventId: event.eventId, - name: 'test', - ); - // ignore: deprecated_member_use_from_same_package - await client.captureUserFeedback(feedback); - - final capturedEnvelope = (fixture.transport).envelopes.first; - - expect(capturedEnvelope.header.dsn, fixture.options.dsn); - }); }); group('Spotlight', () { diff --git a/dart/test/sentry_envelope_item_test.dart b/dart/test/sentry_envelope_item_test.dart index aac20a7fb5..9e63104a31 100644 --- a/dart/test/sentry_envelope_item_test.dart +++ b/dart/test/sentry_envelope_item_test.dart @@ -95,26 +95,5 @@ void main() { expect(sut.header.type, SentryItemType.clientReport); expect(actualData, expectedData); }); - - test('fromUserFeedback', () async { - // ignore: deprecated_member_use_from_same_package - final userFeedback = SentryUserFeedback( - eventId: SentryId.newId(), - name: 'name', - comments: 'comments', - email: 'email'); - // ignore: deprecated_member_use_from_same_package - final sut = SentryEnvelopeItem.fromUserFeedback(userFeedback); - - final expectedData = utf8.encode(jsonEncode( - userFeedback.toJson(), - toEncodable: jsonSerializationFallback, - )); - final actualData = await sut.dataFactory(); - - expect(sut.header.contentType, 'application/json'); - expect(sut.header.type, SentryItemType.userFeedback); - expect(actualData, expectedData); - }); }); } diff --git a/dart/test/sentry_envelope_test.dart b/dart/test/sentry_envelope_test.dart index e8087527e7..9f60ab4bc7 100644 --- a/dart/test/sentry_envelope_test.dart +++ b/dart/test/sentry_envelope_test.dart @@ -135,36 +135,6 @@ void main() { expect(actualItem, expectedItem); }); - test('fromUserFeedback', () async { - final eventId = SentryId.newId(); - // ignore: deprecated_member_use_from_same_package - final userFeedback = SentryUserFeedback( - eventId: eventId, name: 'name', email: 'email', comments: 'comments'); - final sdkVersion = - SdkVersion(name: 'fixture-name', version: 'fixture-version'); - // ignore: deprecated_member_use_from_same_package - final sut = SentryEnvelope.fromUserFeedback( - userFeedback, - sdkVersion, - dsn: fakeDsn, - ); - - final expectedEnvelopeItem = - // ignore: deprecated_member_use_from_same_package - SentryEnvelopeItem.fromUserFeedback(userFeedback); - - expect(sut.header.eventId, eventId); - expect(sut.header.sdkVersion, sdkVersion); - expect(sut.header.dsn, fakeDsn); - expect(sut.items[0].header.contentType, - expectedEnvelopeItem.header.contentType); - expect(sut.items[0].header.type, expectedEnvelopeItem.header.type); - - final actualItem = await sut.items[0].dataFactory(); - final expectedItem = await expectedEnvelopeItem.dataFactory(); - expect(actualItem, expectedItem); - }); - test('max attachment size', () async { final attachment = SentryAttachment.fromLoader( loader: () => Uint8List.fromList([1, 2, 3, 4]), diff --git a/dart/test/sentry_user_feedback_test.dart b/dart/test/sentry_user_feedback_test.dart deleted file mode 100644 index c724f6d8c1..0000000000 --- a/dart/test/sentry_user_feedback_test.dart +++ /dev/null @@ -1,243 +0,0 @@ -import 'package:collection/collection.dart'; -import 'package:sentry/sentry.dart'; -import 'package:sentry/src/sentry_item_type.dart'; -import 'package:test/test.dart'; - -import 'mocks.dart'; -import 'mocks/mock_transport.dart'; -import 'test_utils.dart'; - -void main() { - // ignore: deprecated_member_use_from_same_package - group('$SentryUserFeedback', () { - final id = SentryId.newId(); - - // ignore: deprecated_member_use_from_same_package - final feedback = SentryUserFeedback( - eventId: id, - comments: 'this is awesome', - email: 'sentry@example.com', - name: 'Rockstar Developer', - unknown: testUnknown, - ); - final feedbackJson = { - 'event_id': id.toString(), - 'comments': 'this is awesome', - 'email': 'sentry@example.com', - 'name': 'Rockstar Developer', - }; - feedbackJson.addAll(testUnknown); - - test('toJson', () { - final json = feedback.toJson(); - expect( - MapEquality().equals(feedbackJson, json), - true, - ); - }); - - test('fromJson', () { - final feedback = SentryRuntime.fromJson(feedbackJson); - final json = feedback.toJson(); - - expect( - MapEquality().equals(feedbackJson, json), - true, - ); - }); - - test('copyWith', () { - final id = SentryId.newId(); - // ignore: deprecated_member_use_from_same_package - final feedback = SentryUserFeedback( - eventId: id, - comments: 'this is awesome', - email: 'sentry@example.com', - name: 'Rockstar Developer', - ); - - final copyId = SentryId.newId(); - final copy = feedback.copyWith( - eventId: copyId, - comments: 'actually it is not', - email: 'example@example.com', - name: '10x developer', - ); - - expect(copy.eventId.toString(), copyId.toString()); - expect(copy.comments, 'actually it is not'); - expect(copy.email, 'example@example.com'); - expect(copy.name, '10x developer'); - }); - - test('disallow empty id', () { - final id = SentryId.empty(); - // ignore: deprecated_member_use_from_same_package - expect(() => SentryUserFeedback(eventId: id), - throwsA(isA())); - }); - }); - - // ignore: deprecated_member_use_from_same_package - group('$SentryUserFeedback to envelops', () { - test('to envelope', () { - // ignore: deprecated_member_use_from_same_package - final feedback = SentryUserFeedback( - eventId: SentryId.newId(), - name: 'test', - ); - // ignore: deprecated_member_use_from_same_package - final envelope = SentryEnvelope.fromUserFeedback( - feedback, - SdkVersion(name: 'a', version: 'b'), - dsn: fakeDsn, - ); - - expect(envelope.items.length, 1); - expect( - envelope.items.first.header.type, - SentryItemType.userFeedback, - ); - expect(envelope.header.eventId.toString(), feedback.eventId.toString()); - expect(envelope.header.dsn, fakeDsn); - }); - }); - - // ignore: deprecated_member_use_from_same_package - test('sending $SentryUserFeedback', () async { - final fixture = Fixture(); - final sut = fixture.getSut(); - // ignore: deprecated_member_use_from_same_package - await sut.captureUserFeedback(SentryUserFeedback( - eventId: SentryId.newId(), - name: 'test', - )); - - expect(fixture.transport.envelopes.length, 1); - }); - - // ignore: deprecated_member_use_from_same_package - test('cannot create $SentryUserFeedback with empty id', () async { - expect( - // ignore: deprecated_member_use_from_same_package - () => SentryUserFeedback(eventId: const SentryId.empty()), - throwsA(isA()), - ); - }); - - // ignore: deprecated_member_use_from_same_package - test('do not send $SentryUserFeedback when disabled', () async { - final fixture = Fixture(); - final sut = fixture.getSut(); - await sut.close(); - // ignore: deprecated_member_use_from_same_package - await sut.captureUserFeedback( - // ignore: deprecated_member_use_from_same_package - SentryUserFeedback( - eventId: SentryId.newId(), - name: 'test', - ), - ); - - expect(fixture.transport.envelopes.length, 0); - }); - - // ignore: deprecated_member_use_from_same_package - test('do not send $SentryUserFeedback with empty id', () async { - final fixture = Fixture(); - final sut = fixture.getSut(); - await sut.close(); - // ignore: deprecated_member_use_from_same_package - await sut.captureUserFeedback( - SentryUserFeedbackWithoutAssert( - eventId: SentryId.empty(), - ), - ); - - expect(fixture.transport.envelopes.length, 0); - }); - - test('captureUserFeedback does not throw', () async { - final options = defaultTestOptions()..automatedTestMode = false; - final transport = ThrowingTransport(); - options.transport = transport; - final sut = Hub(options); - - await expectLater(() async { - // ignore: deprecated_member_use_from_same_package - await sut.captureUserFeedback( - // ignore: deprecated_member_use_from_same_package - SentryUserFeedback(eventId: SentryId.newId(), name: 'name'), - ); - }, returnsNormally); - }); -} - -class Fixture { - late MockTransport transport; - - Hub getSut() { - final options = defaultTestOptions(); - transport = MockTransport(); - options.transport = transport; - return Hub(options); - } -} - -// You cannot create an instance of SentryUserFeedback with an empty id. -// In order to test that UserFeedback with an empty id is not sent -// we need to implement it and remove the assert. -// ignore: deprecated_member_use_from_same_package -class SentryUserFeedbackWithoutAssert implements SentryUserFeedback { - SentryUserFeedbackWithoutAssert({ - required this.eventId, - this.name, - this.email, - this.comments, - this.unknown, - }); - - @override - final SentryId eventId; - - @override - final String? name; - - @override - final String? email; - - @override - final String? comments; - - @override - Map? unknown; - - @override - Map toJson() { - return { - ...?unknown, - 'event_id': eventId.toString(), - if (name != null) 'name': name, - if (email != null) 'email': email, - if (comments != null) 'comments': comments, - }; - } - - @override - // ignore: deprecated_member_use_from_same_package - SentryUserFeedback copyWith({ - SentryId? eventId, - String? name, - String? email, - String? comments, - }) { - // ignore: deprecated_member_use_from_same_package - return SentryUserFeedback( - eventId: eventId ?? this.eventId, - name: name ?? this.name, - email: email ?? this.email, - comments: comments ?? this.comments, - unknown: unknown, - ); - } -} diff --git a/dio/test/mocks/mock_hub.dart b/dio/test/mocks/mock_hub.dart index d798b551ac..04be442b4b 100644 --- a/dio/test/mocks/mock_hub.dart +++ b/dio/test/mocks/mock_hub.dart @@ -11,8 +11,6 @@ class MockHub with NoSuchMethodProvider implements Hub { List addBreadcrumbCalls = []; List bindClientCalls = []; - // ignore: deprecated_member_use - List userFeedbackCalls = []; List captureTransactionCalls = []; int closeCalls = 0; bool _isEnabled = true; @@ -122,12 +120,6 @@ class MockHub with NoSuchMethodProvider implements Hub { return transaction.eventId; } - @override - // ignore: deprecated_member_use - Future captureUserFeedback(SentryUserFeedback userFeedback) async { - userFeedbackCalls.add(userFeedback); - } - @override ISentrySpan? getSpan() { getSpanCalls++; diff --git a/drift/test/mocks/mocks.mocks.dart b/drift/test/mocks/mocks.mocks.dart index f6a88c359a..3106054fcd 100644 --- a/drift/test/mocks/mocks.mocks.dart +++ b/drift/test/mocks/mocks.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in sentry_drift/test/mocks/mocks.dart. // Do not manually edit this file. @@ -15,82 +15,50 @@ import 'package:sentry/src/profiling.dart' as _i4; // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// 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 // ignore_for_file: subtype_of_sealed_class class _FakeSentryOptions_0 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryOptions_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryId_1 extends _i1.SmartFake implements _i2.SentryId { - _FakeSentryId_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryId_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeScope_2 extends _i1.SmartFake implements _i2.Scope { - _FakeScope_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeScope_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHub_3 extends _i1.SmartFake implements _i2.Hub { - _FakeHub_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHub_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeISentrySpan_4 extends _i1.SmartFake implements _i2.ISentrySpan { - _FakeISentrySpan_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeISentrySpan_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeQueryExecutor_5 extends _i1.SmartFake implements _i3.QueryExecutor { - _FakeQueryExecutor_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeQueryExecutor_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeTransactionExecutor_6 extends _i1.SmartFake implements _i3.TransactionExecutor { - _FakeTransactionExecutor_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeTransactionExecutor_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Hub]. @@ -102,46 +70,42 @@ class MockHub extends _i1.Mock implements _i2.Hub { } @override - _i2.SentryOptions get options => (super.noSuchMethod( - Invocation.getter(#options), - returnValue: _FakeSentryOptions_0( - this, - Invocation.getter(#options), - ), - ) as _i2.SentryOptions); + _i2.SentryOptions get options => + (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeSentryOptions_0( + 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_1( - this, - Invocation.getter(#lastEventId), - ), - ) as _i2.SentryId); + _i2.SentryId get lastEventId => + (super.noSuchMethod( + Invocation.getter(#lastEventId), + returnValue: _FakeSentryId_1(this, Invocation.getter(#lastEventId)), + ) + as _i2.SentryId); @override - _i2.Scope get scope => (super.noSuchMethod( - Invocation.getter(#scope), - returnValue: _FakeScope_2( - this, - Invocation.getter(#scope), - ), - ) as _i2.Scope); + _i2.Scope get scope => + (super.noSuchMethod( + Invocation.getter(#scope), + returnValue: _FakeScope_2(this, Invocation.getter(#scope)), + ) + as _i2.Scope); @override set profilerFactory(_i4.SentryProfilerFactory? value) => super.noSuchMethod( - Invocation.setter( - #profilerFactory, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profilerFactory, value), + returnValueForMissingStub: null, + ); @override _i5.Future<_i2.SentryId> captureEvent( @@ -151,28 +115,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: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i5.Future<_i2.SentryId>); + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); @override _i5.Future<_i2.SentryId> captureException( @@ -182,28 +141,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: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i5.Future<_i2.SentryId>); + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); @override _i5.Future<_i2.SentryId> captureMessage( @@ -215,99 +169,97 @@ 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: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i5.Future<_i2.SentryId>); - - @override - _i5.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => - (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future addBreadcrumb( - _i2.Breadcrumb? crumb, { + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); + + @override + _i5.Future<_i2.SentryId> captureFeedback( + _i2.SentryFeedback? feedback, { _i2.Hint? hint, + _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #addBreadcrumb, - [crumb], - {#hint: hint}, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); + + @override + _i5.Future addBreadcrumb(_i2.Breadcrumb? crumb, {_i2.Hint? hint}) => + (super.noSuchMethod( + Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override void bindClient(_i2.SentryClient? client) => super.noSuchMethod( - Invocation.method( - #bindClient, - [client], - ), - returnValueForMissingStub: null, - ); - - @override - _i2.Hub clone() => (super.noSuchMethod( - Invocation.method( - #clone, - [], - ), - returnValue: _FakeHub_3( - this, - Invocation.method( - #clone, - [], - ), - ), - ) as _i2.Hub); - - @override - _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#bindClient, [client]), + returnValueForMissingStub: null, + ); + + @override + _i2.Hub clone() => + (super.noSuchMethod( + Invocation.method(#clone, []), + returnValue: _FakeHub_3(this, Invocation.method(#clone, [])), + ) + as _i2.Hub); + + @override + _i5.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.FutureOr configureScope(_i2.ScopeCallback? callback) => - (super.noSuchMethod(Invocation.method( - #configureScope, - [callback], - )) as _i5.FutureOr); + (super.noSuchMethod(Invocation.method(#configureScope, [callback])) + as _i5.FutureOr); @override _i2.ISentrySpan startTransaction( @@ -323,44 +275,39 @@ 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: _FakeISentrySpan_4( - this, - Invocation.method( - #startTransaction, - [ - 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: _FakeISentrySpan_4( + this, + Invocation.method( + #startTransaction, + [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( @@ -374,36 +321,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_4( - 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_4( + this, + Invocation.method( + #startTransactionWithContext, + [transactionContext], + { + #customSamplingContext: customSamplingContext, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + }, + ), + ), + ) + as _i2.ISentrySpan); @override _i5.Future<_i2.SentryId> captureTransaction( @@ -411,38 +359,33 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.SentryTraceContextHeader? traceContext, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - returnValue: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - )), - ) as _i5.Future<_i2.SentryId>); + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + ), + ), + ) + as _i5.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, + ); } /// A class which mocks [LazyDatabase]. @@ -454,105 +397,87 @@ class MockLazyDatabase extends _i1.Mock implements _i6.LazyDatabase { } @override - _i6.DatabaseOpener get opener => (super.noSuchMethod( - Invocation.getter(#opener), - returnValue: () => - _i5.Future<_i3.QueryExecutor>.value(_FakeQueryExecutor_5( - this, - Invocation.getter(#opener), - )), - ) as _i6.DatabaseOpener); + _i6.DatabaseOpener get opener => + (super.noSuchMethod( + Invocation.getter(#opener), + returnValue: + () => _i5.Future<_i3.QueryExecutor>.value( + _FakeQueryExecutor_5(this, Invocation.getter(#opener)), + ), + ) + as _i6.DatabaseOpener); @override - _i3.SqlDialect get dialect => (super.noSuchMethod( - Invocation.getter(#dialect), - returnValue: _i3.SqlDialect.sqlite, - ) as _i3.SqlDialect); + _i3.SqlDialect get dialect => + (super.noSuchMethod( + Invocation.getter(#dialect), + returnValue: _i3.SqlDialect.sqlite, + ) + as _i3.SqlDialect); @override - _i3.TransactionExecutor beginTransaction() => (super.noSuchMethod( - Invocation.method( - #beginTransaction, - [], - ), - returnValue: _FakeTransactionExecutor_6( - this, - Invocation.method( - #beginTransaction, - [], - ), - ), - ) as _i3.TransactionExecutor); + _i3.QueryExecutor beginExclusive() => + (super.noSuchMethod( + Invocation.method(#beginExclusive, []), + returnValue: _FakeQueryExecutor_5( + this, + Invocation.method(#beginExclusive, []), + ), + ) + as _i3.QueryExecutor); + + @override + _i3.TransactionExecutor beginTransaction() => + (super.noSuchMethod( + Invocation.method(#beginTransaction, []), + returnValue: _FakeTransactionExecutor_6( + this, + Invocation.method(#beginTransaction, []), + ), + ) + as _i3.TransactionExecutor); @override _i5.Future ensureOpen(_i3.QueryExecutorUser? user) => (super.noSuchMethod( - Invocation.method( - #ensureOpen, - [user], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + Invocation.method(#ensureOpen, [user]), + returnValue: _i5.Future.value(false), + ) + as _i5.Future); @override _i5.Future runBatched(_i3.BatchedStatements? statements) => (super.noSuchMethod( - Invocation.method( - #runBatched, - [statements], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#runBatched, [statements]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future runCustom( - String? statement, [ - List? args, - ]) => + _i5.Future runCustom(String? statement, [List? args]) => (super.noSuchMethod( - Invocation.method( - #runCustom, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#runCustom, [statement, args]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future runDelete( - String? statement, - List? args, - ) => + _i5.Future runDelete(String? statement, List? args) => (super.noSuchMethod( - Invocation.method( - #runDelete, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); + Invocation.method(#runDelete, [statement, args]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); @override - _i5.Future runInsert( - String? statement, - List? args, - ) => + _i5.Future runInsert(String? statement, List? args) => (super.noSuchMethod( - Invocation.method( - #runInsert, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); + Invocation.method(#runInsert, [statement, args]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); @override _i5.Future>> runSelect( @@ -560,42 +485,29 @@ class MockLazyDatabase extends _i1.Mock implements _i6.LazyDatabase { List? args, ) => (super.noSuchMethod( - Invocation.method( - #runSelect, - [ - statement, - args, - ], - ), - returnValue: _i5.Future>>.value( - >[]), - ) as _i5.Future>>); + Invocation.method(#runSelect, [statement, args]), + returnValue: _i5.Future>>.value( + >[], + ), + ) + as _i5.Future>>); @override - _i5.Future runUpdate( - String? statement, - List? args, - ) => + _i5.Future runUpdate(String? statement, List? args) => + (super.noSuchMethod( + Invocation.method(#runUpdate, [statement, args]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); + + @override + _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #runUpdate, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - - @override - _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#close, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } /// A class which mocks [TransactionExecutor]. @@ -608,46 +520,46 @@ class MockTransactionExecutor extends _i1.Mock } @override - bool get supportsNestedTransactions => (super.noSuchMethod( - Invocation.getter(#supportsNestedTransactions), - returnValue: false, - ) as bool); + bool get supportsNestedTransactions => + (super.noSuchMethod( + Invocation.getter(#supportsNestedTransactions), + returnValue: false, + ) + as bool); @override - _i3.SqlDialect get dialect => (super.noSuchMethod( - Invocation.getter(#dialect), - returnValue: _i3.SqlDialect.sqlite, - ) as _i3.SqlDialect); + _i3.SqlDialect get dialect => + (super.noSuchMethod( + Invocation.getter(#dialect), + returnValue: _i3.SqlDialect.sqlite, + ) + as _i3.SqlDialect); @override - _i5.Future send() => (super.noSuchMethod( - Invocation.method( - #send, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future send() => + (super.noSuchMethod( + Invocation.method(#send, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future rollback() => (super.noSuchMethod( - Invocation.method( - #rollback, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future rollback() => + (super.noSuchMethod( + Invocation.method(#rollback, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future ensureOpen(_i3.QueryExecutorUser? user) => (super.noSuchMethod( - Invocation.method( - #ensureOpen, - [user], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + Invocation.method(#ensureOpen, [user]), + returnValue: _i5.Future.value(false), + ) + as _i5.Future); @override _i5.Future>> runSelect( @@ -655,115 +567,83 @@ class MockTransactionExecutor extends _i1.Mock List? args, ) => (super.noSuchMethod( - Invocation.method( - #runSelect, - [ - statement, - args, - ], - ), - returnValue: _i5.Future>>.value( - >[]), - ) as _i5.Future>>); + Invocation.method(#runSelect, [statement, args]), + returnValue: _i5.Future>>.value( + >[], + ), + ) + as _i5.Future>>); @override - _i5.Future runInsert( - String? statement, - List? args, - ) => + _i5.Future runInsert(String? statement, List? args) => (super.noSuchMethod( - Invocation.method( - #runInsert, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); + Invocation.method(#runInsert, [statement, args]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); @override - _i5.Future runUpdate( - String? statement, - List? args, - ) => + _i5.Future runUpdate(String? statement, List? args) => (super.noSuchMethod( - Invocation.method( - #runUpdate, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); + Invocation.method(#runUpdate, [statement, args]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); @override - _i5.Future runDelete( - String? statement, - List? args, - ) => + _i5.Future runDelete(String? statement, List? args) => (super.noSuchMethod( - Invocation.method( - #runDelete, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); + Invocation.method(#runDelete, [statement, args]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); @override - _i5.Future runCustom( - String? statement, [ - List? args, - ]) => + _i5.Future runCustom(String? statement, [List? args]) => (super.noSuchMethod( - Invocation.method( - #runCustom, - [ - statement, - args, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#runCustom, [statement, args]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future runBatched(_i3.BatchedStatements? statements) => (super.noSuchMethod( - Invocation.method( - #runBatched, - [statements], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i3.TransactionExecutor beginTransaction() => (super.noSuchMethod( - Invocation.method( - #beginTransaction, - [], - ), - returnValue: _FakeTransactionExecutor_6( - this, - Invocation.method( - #beginTransaction, - [], - ), - ), - ) as _i3.TransactionExecutor); - - @override - _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#runBatched, [statements]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i3.TransactionExecutor beginTransaction() => + (super.noSuchMethod( + Invocation.method(#beginTransaction, []), + returnValue: _FakeTransactionExecutor_6( + this, + Invocation.method(#beginTransaction, []), + ), + ) + as _i3.TransactionExecutor); + + @override + _i3.QueryExecutor beginExclusive() => + (super.noSuchMethod( + Invocation.method(#beginExclusive, []), + returnValue: _FakeQueryExecutor_5( + this, + Invocation.method(#beginExclusive, []), + ), + ) + as _i3.QueryExecutor); + + @override + _i5.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } diff --git a/flutter/example/integration_test/integration_test.dart b/flutter/example/integration_test/integration_test.dart index 6fd6916b7d..2d5ba7eb23 100644 --- a/flutter/example/integration_test/integration_test.dart +++ b/flutter/example/integration_test/integration_test.dart @@ -84,25 +84,9 @@ void main() { expect(sentryId != const SentryId.empty(), true); }); - testWidgets('setup sentry and capture user feedback', (tester) async { - await setupSentryAndApp(tester); - - // ignore: deprecated_member_use_from_same_package - // ignore: deprecated_member_use - final feedback = SentryUserFeedback( - eventId: SentryId.newId(), - name: 'fixture-name', - email: 'fixture@email.com', - comments: 'fixture-comments'); - // ignore: deprecated_member_use - await Sentry.captureUserFeedback(feedback); - }); - testWidgets('setup sentry and capture feedback', (tester) async { await setupSentryAndApp(tester); - // ignore: deprecated_member_use_from_same_package - // ignore: deprecated_member_use final associatedEventId = await Sentry.captureMessage('Associated'); final feedback = SentryFeedback( message: 'message', diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index 9d0e625e79..13b2507d57 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,288 +46,153 @@ 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, - ); + _FakePipelineOwner_26(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -334,13 +200,8 @@ class _FakePipelineOwner_26 extends _i1.SmartFake } class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { - _FakeRenderView_27( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRenderView_27(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -348,34 +209,19 @@ class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { } class _FakeMouseTracker_28 extends _i1.SmartFake implements _i10.MouseTracker { - _FakeMouseTracker_28( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeMouseTracker_28(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformMenuDelegate_29 extends _i1.SmartFake implements _i9.PlatformMenuDelegate { - _FakePlatformMenuDelegate_29( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformMenuDelegate_29(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, - ); + _FakeFocusManager_30(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -383,97 +229,52 @@ class _FakeFocusManager_30 extends _i1.SmartFake implements _i9.FocusManager { } class _FakeFuture_31 extends _i1.SmartFake implements _i11.Future { - _FakeFuture_31( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFuture_31(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, - ); + _FakeCodec_32(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSemanticsHandle_33 extends _i1.SmartFake implements _i12.SemanticsHandle { - _FakeSemanticsHandle_33( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsHandle_33(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSemanticsUpdateBuilder_34 extends _i1.SmartFake implements _i6.SemanticsUpdateBuilder { - _FakeSemanticsUpdateBuilder_34( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsUpdateBuilder_34(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeViewConfiguration_35 extends _i1.SmartFake implements _i10.ViewConfiguration { - _FakeViewConfiguration_35( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeViewConfiguration_35(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, - ); + _FakeSceneBuilder_36(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePictureRecorder_37 extends _i1.SmartFake implements _i6.PictureRecorder { - _FakePictureRecorder_37( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePictureRecorder_37(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, - ); + _FakeCanvas_38(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, - ); + _FakeWidget_39(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -481,33 +282,18 @@ class _FakeWidget_39 extends _i1.SmartFake implements _i9.Widget { } class _FakeSentryOptions_40 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_40( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryOptions_40(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, - ); + _FakeScope_41(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, - ); + _FakeHub_42(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Callbacks]. @@ -523,13 +309,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 +326,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 +341,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 +505,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 +529,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 +593,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 +719,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 +748,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 +795,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 +911,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 +979,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 +1005,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 +1033,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 +1070,31 @@ 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?>); - - @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(#captureEnvelope, [envelope]), + returnValue: _i11.Future<_i2.SentryId?>.value(), + ) + as _i11.Future<_i2.SentryId?>); @override _i11.Future<_i2.SentryId> captureFeedback( @@ -1499,35 +1103,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 +1137,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 +1180,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 +1191,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 +1215,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 +1319,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 +1364,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 +1397,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 +1424,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 +1448,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 +1469,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: _FakePipelineOwner_26( + 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_27( + 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_28( + 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: _FakePipelineOwner_26( + 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_29( + 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 +1868,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_30( + 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 +2040,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 +2094,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 +2148,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_31( + 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 +2190,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 +2372,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 +2425,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_32( + this, + Invocation.method( + #instantiateImageCodecFromBuffer, + [buffer], + { + #cacheWidth: cacheWidth, + #cacheHeight: cacheHeight, + #allowUpscaling: allowUpscaling, + }, + ), + ), + ), + ) + as _i11.Future<_i6.Codec>); @override _i11.Future<_i6.Codec> instantiateImageCodecWithSize( @@ -3061,371 +2457,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_32( + 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_33( + 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_34( + 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: _FakePipelineOwner_26( + 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_35( + 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_36( + 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_37( + 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_38( + 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_39( + 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 +2740,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 +2766,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_40( + 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_41(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 +2811,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 +2837,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 +2865,35 @@ 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>); - - @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( + #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<_i2.SentryId> captureFeedback( @@ -3631,82 +2902,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_42(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 +2971,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 +3012,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 +3050,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/hive/test/mocks/mocks.mocks.dart b/hive/test/mocks/mocks.mocks.dart index 5cd8fc7e30..ee006fecc6 100644 --- a/hive/test/mocks/mocks.mocks.dart +++ b/hive/test/mocks/mocks.mocks.dart @@ -1,117 +1,72 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in sentry_hive/test/mocks/mocks.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i5; -import 'dart:typed_data' as _i8; +import 'dart:typed_data' as _i9; import 'package:hive/hive.dart' as _i3; -import 'package:hive/src/box/default_compaction_strategy.dart' as _i7; -import 'package:hive/src/box/default_key_comparator.dart' as _i6; +import 'package:hive/src/box/default_compaction_strategy.dart' as _i8; +import 'package:hive/src/box/default_key_comparator.dart' as _i7; import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i6; import 'package:sentry/sentry.dart' as _i2; import 'package:sentry/src/profiling.dart' as _i4; -import 'package:hive/src/box_collection/box_collection_stub.dart' as stub; - -// ignore: implementation_imports -import 'package:hive/src/box_collection/box_collection_stub.dart' - if (dart.library.html) 'package:hive/src/box_collection/box_collection_indexed_db.dart' - if (dart.library.js_interop) 'package:hive/src/box_collection/box_collection_indexed_db.dart' - if (dart.library.io) 'package:hive/src/box_collection/box_collection.dart' - as impl; - // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// 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 // ignore_for_file: subtype_of_sealed_class class _FakeSentryOptions_0 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryOptions_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryId_1 extends _i1.SmartFake implements _i2.SentryId { - _FakeSentryId_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryId_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeScope_2 extends _i1.SmartFake implements _i2.Scope { - _FakeScope_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeScope_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHub_3 extends _i1.SmartFake implements _i2.Hub { - _FakeHub_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHub_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeISentrySpan_4 extends _i1.SmartFake implements _i2.ISentrySpan { - _FakeISentrySpan_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeISentrySpan_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBox_5 extends _i1.SmartFake implements _i3.Box { - _FakeBox_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBox_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeLazyBox_6 extends _i1.SmartFake implements _i3.LazyBox { - _FakeLazyBox_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeLazyBox_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCollectionBox_7 extends _i1.SmartFake implements _i3.CollectionBox { - _FakeCollectionBox_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCollectionBox_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Hub]. @@ -123,77 +78,68 @@ class MockHub extends _i1.Mock implements _i2.Hub { } @override - _i2.SentryOptions get options => (super.noSuchMethod( - Invocation.getter(#options), - returnValue: _FakeSentryOptions_0( - this, - Invocation.getter(#options), - ), - ) as _i2.SentryOptions); + _i2.SentryOptions get options => + (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeSentryOptions_0( + 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_1( - this, - Invocation.getter(#lastEventId), - ), - ) as _i2.SentryId); + _i2.SentryId get lastEventId => + (super.noSuchMethod( + Invocation.getter(#lastEventId), + returnValue: _FakeSentryId_1(this, Invocation.getter(#lastEventId)), + ) + as _i2.SentryId); @override - _i2.Scope get scope => (super.noSuchMethod( - Invocation.getter(#scope), - returnValue: _FakeScope_2( - this, - Invocation.getter(#scope), - ), - ) as _i2.Scope); + _i2.Scope get scope => + (super.noSuchMethod( + Invocation.getter(#scope), + returnValue: _FakeScope_2(this, Invocation.getter(#scope)), + ) + as _i2.Scope); @override set profilerFactory(_i4.SentryProfilerFactory? value) => super.noSuchMethod( - Invocation.setter( - #profilerFactory, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profilerFactory, value), + returnValueForMissingStub: null, + ); @override _i5.Future<_i2.SentryId> captureEvent( - dynamic event, { + _i2.SentryEvent? event, { dynamic stackTrace, _i2.Hint? hint, _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i5.Future<_i2.SentryId>); + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); @override _i5.Future<_i2.SentryId> captureException( @@ -203,28 +149,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: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i5.Future<_i2.SentryId>); + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); @override _i5.Future<_i2.SentryId> captureMessage( @@ -236,99 +177,97 @@ 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: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i5.Future<_i2.SentryId>); - - @override - _i5.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => - (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future addBreadcrumb( - _i2.Breadcrumb? crumb, { + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); + + @override + _i5.Future<_i2.SentryId> captureFeedback( + _i2.SentryFeedback? feedback, { _i2.Hint? hint, + _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #addBreadcrumb, - [crumb], - {#hint: hint}, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i5.Future<_i2.SentryId>); + + @override + _i5.Future addBreadcrumb(_i2.Breadcrumb? crumb, {_i2.Hint? hint}) => + (super.noSuchMethod( + Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override void bindClient(_i2.SentryClient? client) => super.noSuchMethod( - Invocation.method( - #bindClient, - [client], - ), - returnValueForMissingStub: null, - ); - - @override - _i2.Hub clone() => (super.noSuchMethod( - Invocation.method( - #clone, - [], - ), - returnValue: _FakeHub_3( - this, - Invocation.method( - #clone, - [], - ), - ), - ) as _i2.Hub); - - @override - _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#bindClient, [client]), + returnValueForMissingStub: null, + ); + + @override + _i2.Hub clone() => + (super.noSuchMethod( + Invocation.method(#clone, []), + returnValue: _FakeHub_3(this, Invocation.method(#clone, [])), + ) + as _i2.Hub); + + @override + _i5.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.FutureOr configureScope(_i2.ScopeCallback? callback) => - (super.noSuchMethod(Invocation.method( - #configureScope, - [callback], - )) as _i5.FutureOr); + (super.noSuchMethod(Invocation.method(#configureScope, [callback])) + as _i5.FutureOr); @override _i2.ISentrySpan startTransaction( @@ -344,44 +283,39 @@ 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: _FakeISentrySpan_4( - this, - Invocation.method( - #startTransaction, - [ - 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: _FakeISentrySpan_4( + this, + Invocation.method( + #startTransaction, + [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( @@ -395,36 +329,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_4( - 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_4( + this, + Invocation.method( + #startTransactionWithContext, + [transactionContext], + { + #customSamplingContext: customSamplingContext, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + }, + ), + ), + ) + as _i2.ISentrySpan); @override _i5.Future<_i2.SentryId> captureTransaction( @@ -432,38 +367,33 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.SentryTraceContextHeader? traceContext, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - returnValue: _i5.Future<_i2.SentryId>.value(_FakeSentryId_1( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - )), - ) as _i5.Future<_i2.SentryId>); + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + returnValue: _i5.Future<_i2.SentryId>.value( + _FakeSentryId_1( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + ), + ), + ) + as _i5.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, + ); } /// A class which mocks [Box]. @@ -475,250 +405,203 @@ class MockBox extends _i1.Mock implements _i3.Box { } @override - Iterable get values => (super.noSuchMethod( - Invocation.getter(#values), - returnValue: [], - ) as Iterable); + Iterable get values => + (super.noSuchMethod(Invocation.getter(#values), returnValue: []) + as Iterable); @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: '', - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i6.dummyValue(this, Invocation.getter(#name)), + ) + as String); @override - bool get isOpen => (super.noSuchMethod( - Invocation.getter(#isOpen), - returnValue: false, - ) as bool); + bool get isOpen => + (super.noSuchMethod(Invocation.getter(#isOpen), returnValue: false) + as bool); @override - bool get lazy => (super.noSuchMethod( - Invocation.getter(#lazy), - returnValue: false, - ) as bool); + bool get lazy => + (super.noSuchMethod(Invocation.getter(#lazy), returnValue: false) + as bool); @override - Iterable get keys => (super.noSuchMethod( - Invocation.getter(#keys), - returnValue: [], - ) as Iterable); + Iterable get keys => + (super.noSuchMethod(Invocation.getter(#keys), returnValue: []) + as Iterable); @override - int get length => (super.noSuchMethod( - Invocation.getter(#length), - returnValue: 0, - ) as int); + int get length => + (super.noSuchMethod(Invocation.getter(#length), returnValue: 0) as int); @override - bool get isEmpty => (super.noSuchMethod( - Invocation.getter(#isEmpty), - returnValue: false, - ) as bool); + bool get isEmpty => + (super.noSuchMethod(Invocation.getter(#isEmpty), returnValue: false) + as bool); @override - bool get isNotEmpty => (super.noSuchMethod( - Invocation.getter(#isNotEmpty), - returnValue: false, - ) as bool); + bool get isNotEmpty => + (super.noSuchMethod(Invocation.getter(#isNotEmpty), returnValue: false) + as bool); @override - Iterable valuesBetween({ - dynamic startKey, - dynamic endKey, - }) => + Iterable valuesBetween({dynamic startKey, dynamic endKey}) => + (super.noSuchMethod( + Invocation.method(#valuesBetween, [], { + #startKey: startKey, + #endKey: endKey, + }), + returnValue: [], + ) + as Iterable); + + @override + E? getAt(int? index) => + (super.noSuchMethod(Invocation.method(#getAt, [index])) as E?); + + @override + Map toMap() => + (super.noSuchMethod( + Invocation.method(#toMap, []), + returnValue: {}, + ) + as Map); + + @override + dynamic keyAt(int? index) => + super.noSuchMethod(Invocation.method(#keyAt, [index])); + + @override + _i5.Stream<_i3.BoxEvent> watch({dynamic key}) => + (super.noSuchMethod( + Invocation.method(#watch, [], {#key: key}), + returnValue: _i5.Stream<_i3.BoxEvent>.empty(), + ) + as _i5.Stream<_i3.BoxEvent>); + + @override + bool containsKey(dynamic key) => + (super.noSuchMethod( + Invocation.method(#containsKey, [key]), + returnValue: false, + ) + as bool); + + @override + _i5.Future put(dynamic key, E? value) => + (super.noSuchMethod( + Invocation.method(#put, [key, value]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future putAt(int? index, E? value) => + (super.noSuchMethod( + Invocation.method(#putAt, [index, value]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future putAll(Map? entries) => (super.noSuchMethod( - Invocation.method( - #valuesBetween, - [], - { - #startKey: startKey, - #endKey: endKey, - }, - ), - returnValue: [], - ) as Iterable); - - @override - E? getAt(int? index) => (super.noSuchMethod(Invocation.method( - #getAt, - [index], - )) as E?); - - @override - Map toMap() => (super.noSuchMethod( - Invocation.method( - #toMap, - [], - ), - returnValue: {}, - ) as Map); - - @override - dynamic keyAt(int? index) => super.noSuchMethod(Invocation.method( - #keyAt, - [index], - )); - - @override - _i5.Stream<_i3.BoxEvent> watch({dynamic key}) => (super.noSuchMethod( - Invocation.method( - #watch, - [], - {#key: key}, - ), - returnValue: _i5.Stream<_i3.BoxEvent>.empty(), - ) as _i5.Stream<_i3.BoxEvent>); - - @override - bool containsKey(dynamic key) => (super.noSuchMethod( - Invocation.method( - #containsKey, - [key], - ), - returnValue: false, - ) as bool); - - @override - _i5.Future put( - dynamic key, - E? value, - ) => - (super.noSuchMethod( - Invocation.method( - #put, - [ - key, - value, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future putAt( - int? index, - E? value, - ) => - (super.noSuchMethod( - Invocation.method( - #putAt, - [ - index, - value, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future putAll(Map? entries) => (super.noSuchMethod( - Invocation.method( - #putAll, - [entries], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future add(E? value) => (super.noSuchMethod( - Invocation.method( - #add, - [value], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - - @override - _i5.Future> addAll(Iterable? values) => (super.noSuchMethod( - Invocation.method( - #addAll, - [values], - ), - returnValue: _i5.Future>.value([]), - ) as _i5.Future>); - - @override - _i5.Future delete(dynamic key) => (super.noSuchMethod( - Invocation.method( - #delete, - [key], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future deleteAt(int? index) => (super.noSuchMethod( - Invocation.method( - #deleteAt, - [index], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future deleteAll(Iterable? keys) => (super.noSuchMethod( - Invocation.method( - #deleteAll, - [keys], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future compact() => (super.noSuchMethod( - Invocation.method( - #compact, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future clear() => (super.noSuchMethod( - Invocation.method( - #clear, - [], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - - @override - _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future deleteFromDisk() => (super.noSuchMethod( - Invocation.method( - #deleteFromDisk, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future flush() => (super.noSuchMethod( - Invocation.method( - #flush, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#putAll, [entries]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future add(E? value) => + (super.noSuchMethod( + Invocation.method(#add, [value]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); + + @override + _i5.Future> addAll(Iterable? values) => + (super.noSuchMethod( + Invocation.method(#addAll, [values]), + returnValue: _i5.Future>.value([]), + ) + as _i5.Future>); + + @override + _i5.Future delete(dynamic key) => + (super.noSuchMethod( + Invocation.method(#delete, [key]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteAt(int? index) => + (super.noSuchMethod( + Invocation.method(#deleteAt, [index]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteAll(Iterable? keys) => + (super.noSuchMethod( + Invocation.method(#deleteAll, [keys]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future compact() => + (super.noSuchMethod( + Invocation.method(#compact, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future clear() => + (super.noSuchMethod( + Invocation.method(#clear, []), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); + + @override + _i5.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteFromDisk() => + (super.noSuchMethod( + Invocation.method(#deleteFromDisk, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future flush() => + (super.noSuchMethod( + Invocation.method(#flush, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } /// A class which mocks [LazyBox]. @@ -730,235 +613,191 @@ class MockLazyBox extends _i1.Mock implements _i3.LazyBox { } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: '', - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i6.dummyValue(this, Invocation.getter(#name)), + ) + as String); @override - bool get isOpen => (super.noSuchMethod( - Invocation.getter(#isOpen), - returnValue: false, - ) as bool); + bool get isOpen => + (super.noSuchMethod(Invocation.getter(#isOpen), returnValue: false) + as bool); @override - bool get lazy => (super.noSuchMethod( - Invocation.getter(#lazy), - returnValue: false, - ) as bool); + bool get lazy => + (super.noSuchMethod(Invocation.getter(#lazy), returnValue: false) + as bool); @override - Iterable get keys => (super.noSuchMethod( - Invocation.getter(#keys), - returnValue: [], - ) as Iterable); + Iterable get keys => + (super.noSuchMethod(Invocation.getter(#keys), returnValue: []) + as Iterable); @override - int get length => (super.noSuchMethod( - Invocation.getter(#length), - returnValue: 0, - ) as int); + int get length => + (super.noSuchMethod(Invocation.getter(#length), returnValue: 0) as int); @override - bool get isEmpty => (super.noSuchMethod( - Invocation.getter(#isEmpty), - returnValue: false, - ) as bool); + bool get isEmpty => + (super.noSuchMethod(Invocation.getter(#isEmpty), returnValue: false) + as bool); @override - bool get isNotEmpty => (super.noSuchMethod( - Invocation.getter(#isNotEmpty), - returnValue: false, - ) as bool); + bool get isNotEmpty => + (super.noSuchMethod(Invocation.getter(#isNotEmpty), returnValue: false) + as bool); @override - _i5.Future get( - dynamic key, { - E? defaultValue, - }) => + _i5.Future get(dynamic key, {E? defaultValue}) => + (super.noSuchMethod( + Invocation.method(#get, [key], {#defaultValue: defaultValue}), + returnValue: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future getAt(int? index) => + (super.noSuchMethod( + Invocation.method(#getAt, [index]), + returnValue: _i5.Future.value(), + ) + as _i5.Future); + + @override + dynamic keyAt(int? index) => + super.noSuchMethod(Invocation.method(#keyAt, [index])); + + @override + _i5.Stream<_i3.BoxEvent> watch({dynamic key}) => + (super.noSuchMethod( + Invocation.method(#watch, [], {#key: key}), + returnValue: _i5.Stream<_i3.BoxEvent>.empty(), + ) + as _i5.Stream<_i3.BoxEvent>); + + @override + bool containsKey(dynamic key) => + (super.noSuchMethod( + Invocation.method(#containsKey, [key]), + returnValue: false, + ) + as bool); + + @override + _i5.Future put(dynamic key, E? value) => + (super.noSuchMethod( + Invocation.method(#put, [key, value]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future putAt(int? index, E? value) => + (super.noSuchMethod( + Invocation.method(#putAt, [index, value]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future putAll(Map? entries) => + (super.noSuchMethod( + Invocation.method(#putAll, [entries]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future add(E? value) => + (super.noSuchMethod( + Invocation.method(#add, [value]), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); + + @override + _i5.Future> addAll(Iterable? values) => + (super.noSuchMethod( + Invocation.method(#addAll, [values]), + returnValue: _i5.Future>.value([]), + ) + as _i5.Future>); + + @override + _i5.Future delete(dynamic key) => + (super.noSuchMethod( + Invocation.method(#delete, [key]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteAt(int? index) => + (super.noSuchMethod( + Invocation.method(#deleteAt, [index]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteAll(Iterable? keys) => + (super.noSuchMethod( + Invocation.method(#deleteAll, [keys]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future compact() => + (super.noSuchMethod( + Invocation.method(#compact, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future clear() => + (super.noSuchMethod( + Invocation.method(#clear, []), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); + + @override + _i5.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteFromDisk() => (super.noSuchMethod( - Invocation.method( - #get, - [key], - {#defaultValue: defaultValue}, - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future getAt(int? index) => (super.noSuchMethod( - Invocation.method( - #getAt, - [index], - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); - - @override - dynamic keyAt(int? index) => super.noSuchMethod(Invocation.method( - #keyAt, - [index], - )); - - @override - _i5.Stream<_i3.BoxEvent> watch({dynamic key}) => (super.noSuchMethod( - Invocation.method( - #watch, - [], - {#key: key}, - ), - returnValue: _i5.Stream<_i3.BoxEvent>.empty(), - ) as _i5.Stream<_i3.BoxEvent>); - - @override - bool containsKey(dynamic key) => (super.noSuchMethod( - Invocation.method( - #containsKey, - [key], - ), - returnValue: false, - ) as bool); - - @override - _i5.Future put( - dynamic key, - E? value, - ) => - (super.noSuchMethod( - Invocation.method( - #put, - [ - key, - value, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future putAt( - int? index, - E? value, - ) => - (super.noSuchMethod( - Invocation.method( - #putAt, - [ - index, - value, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future putAll(Map? entries) => (super.noSuchMethod( - Invocation.method( - #putAll, - [entries], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future add(E? value) => (super.noSuchMethod( - Invocation.method( - #add, - [value], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - - @override - _i5.Future> addAll(Iterable? values) => (super.noSuchMethod( - Invocation.method( - #addAll, - [values], - ), - returnValue: _i5.Future>.value([]), - ) as _i5.Future>); - - @override - _i5.Future delete(dynamic key) => (super.noSuchMethod( - Invocation.method( - #delete, - [key], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future deleteAt(int? index) => (super.noSuchMethod( - Invocation.method( - #deleteAt, - [index], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future deleteAll(Iterable? keys) => (super.noSuchMethod( - Invocation.method( - #deleteAll, - [keys], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future compact() => (super.noSuchMethod( - Invocation.method( - #compact, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future clear() => (super.noSuchMethod( - Invocation.method( - #clear, - [], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - - @override - _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future deleteFromDisk() => (super.noSuchMethod( - Invocation.method( - #deleteFromDisk, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future flush() => (super.noSuchMethod( - Invocation.method( - #flush, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#deleteFromDisk, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future flush() => + (super.noSuchMethod( + Invocation.method(#flush, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } /// A class which mocks [HiveInterface]. @@ -974,299 +813,256 @@ class MockHiveInterface extends _i1.Mock implements _i3.HiveInterface { String? path, { _i3.HiveStorageBackendPreference? backendPreference = _i3.HiveStorageBackendPreference.native, - }) => - super.noSuchMethod( - Invocation.method( - #init, - [path], - {#backendPreference: backendPreference}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#init, [path], {#backendPreference: backendPreference}), + returnValueForMissingStub: null, + ); @override _i5.Future<_i3.Box> openBox( String? name, { _i3.HiveCipher? encryptionCipher, - _i3.KeyComparator? keyComparator = _i6.defaultKeyComparator, - _i3.CompactionStrategy? compactionStrategy = _i7.defaultCompactionStrategy, + _i3.KeyComparator? keyComparator = _i7.defaultKeyComparator, + _i3.CompactionStrategy? compactionStrategy = _i8.defaultCompactionStrategy, bool? crashRecovery = true, String? path, - _i8.Uint8List? bytes, + _i9.Uint8List? bytes, String? collection, List? encryptionKey, }) => (super.noSuchMethod( - Invocation.method( - #openBox, - [name], - { - #encryptionCipher: encryptionCipher, - #keyComparator: keyComparator, - #compactionStrategy: compactionStrategy, - #crashRecovery: crashRecovery, - #path: path, - #bytes: bytes, - #collection: collection, - #encryptionKey: encryptionKey, - }, - ), - returnValue: _i5.Future<_i3.Box>.value(_FakeBox_5( - this, - Invocation.method( - #openBox, - [name], - { - #encryptionCipher: encryptionCipher, - #keyComparator: keyComparator, - #compactionStrategy: compactionStrategy, - #crashRecovery: crashRecovery, - #path: path, - #bytes: bytes, - #collection: collection, - #encryptionKey: encryptionKey, - }, - ), - )), - ) as _i5.Future<_i3.Box>); + Invocation.method( + #openBox, + [name], + { + #encryptionCipher: encryptionCipher, + #keyComparator: keyComparator, + #compactionStrategy: compactionStrategy, + #crashRecovery: crashRecovery, + #path: path, + #bytes: bytes, + #collection: collection, + #encryptionKey: encryptionKey, + }, + ), + returnValue: _i5.Future<_i3.Box>.value( + _FakeBox_5( + this, + Invocation.method( + #openBox, + [name], + { + #encryptionCipher: encryptionCipher, + #keyComparator: keyComparator, + #compactionStrategy: compactionStrategy, + #crashRecovery: crashRecovery, + #path: path, + #bytes: bytes, + #collection: collection, + #encryptionKey: encryptionKey, + }, + ), + ), + ), + ) + as _i5.Future<_i3.Box>); @override _i5.Future<_i3.LazyBox> openLazyBox( String? name, { _i3.HiveCipher? encryptionCipher, - _i3.KeyComparator? keyComparator = _i6.defaultKeyComparator, - _i3.CompactionStrategy? compactionStrategy = _i7.defaultCompactionStrategy, + _i3.KeyComparator? keyComparator = _i7.defaultKeyComparator, + _i3.CompactionStrategy? compactionStrategy = _i8.defaultCompactionStrategy, bool? crashRecovery = true, String? path, String? collection, List? encryptionKey, }) => (super.noSuchMethod( - Invocation.method( - #openLazyBox, - [name], - { - #encryptionCipher: encryptionCipher, - #keyComparator: keyComparator, - #compactionStrategy: compactionStrategy, - #crashRecovery: crashRecovery, - #path: path, - #collection: collection, - #encryptionKey: encryptionKey, - }, - ), - returnValue: _i5.Future<_i3.LazyBox>.value(_FakeLazyBox_6( - this, - Invocation.method( - #openLazyBox, - [name], - { - #encryptionCipher: encryptionCipher, - #keyComparator: keyComparator, - #compactionStrategy: compactionStrategy, - #crashRecovery: crashRecovery, - #path: path, - #collection: collection, - #encryptionKey: encryptionKey, - }, - ), - )), - ) as _i5.Future<_i3.LazyBox>); - - @override - _i3.Box box(String? name) => (super.noSuchMethod( - Invocation.method( - #box, - [name], - ), - returnValue: _FakeBox_5( - this, - Invocation.method( - #box, - [name], - ), - ), - ) as _i3.Box); - - @override - _i3.LazyBox lazyBox(String? name) => (super.noSuchMethod( - Invocation.method( - #lazyBox, - [name], - ), - returnValue: _FakeLazyBox_6( - this, - Invocation.method( - #lazyBox, - [name], - ), - ), - ) as _i3.LazyBox); - - @override - bool isBoxOpen(String? name) => (super.noSuchMethod( - Invocation.method( - #isBoxOpen, - [name], - ), - returnValue: false, - ) as bool); - - @override - _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future deleteBoxFromDisk( - String? name, { - String? path, - }) => + Invocation.method( + #openLazyBox, + [name], + { + #encryptionCipher: encryptionCipher, + #keyComparator: keyComparator, + #compactionStrategy: compactionStrategy, + #crashRecovery: crashRecovery, + #path: path, + #collection: collection, + #encryptionKey: encryptionKey, + }, + ), + returnValue: _i5.Future<_i3.LazyBox>.value( + _FakeLazyBox_6( + this, + Invocation.method( + #openLazyBox, + [name], + { + #encryptionCipher: encryptionCipher, + #keyComparator: keyComparator, + #compactionStrategy: compactionStrategy, + #crashRecovery: crashRecovery, + #path: path, + #collection: collection, + #encryptionKey: encryptionKey, + }, + ), + ), + ), + ) + as _i5.Future<_i3.LazyBox>); + + @override + _i3.Box box(String? name) => (super.noSuchMethod( - Invocation.method( - #deleteBoxFromDisk, - [name], - {#path: path}, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#box, [name]), + returnValue: _FakeBox_5(this, Invocation.method(#box, [name])), + ) + as _i3.Box); @override - _i5.Future deleteFromDisk() => (super.noSuchMethod( - Invocation.method( - #deleteFromDisk, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i3.LazyBox lazyBox(String? name) => + (super.noSuchMethod( + Invocation.method(#lazyBox, [name]), + returnValue: _FakeLazyBox_6( + this, + Invocation.method(#lazyBox, [name]), + ), + ) + as _i3.LazyBox); @override - List generateSecureKey() => (super.noSuchMethod( - Invocation.method( - #generateSecureKey, - [], - ), - returnValue: [], - ) as List); + bool isBoxOpen(String? name) => + (super.noSuchMethod( + Invocation.method(#isBoxOpen, [name]), + returnValue: false, + ) + as bool); @override - _i5.Future boxExists( - String? name, { - String? path, - }) => + _i5.Future close() => (super.noSuchMethod( - Invocation.method( - #boxExists, - [name], - {#path: path}, - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + Invocation.method(#close, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteBoxFromDisk(String? name, {String? path}) => + (super.noSuchMethod( + Invocation.method(#deleteBoxFromDisk, [name], {#path: path}), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future deleteFromDisk() => + (super.noSuchMethod( + Invocation.method(#deleteFromDisk, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + List generateSecureKey() => + (super.noSuchMethod( + Invocation.method(#generateSecureKey, []), + returnValue: [], + ) + as List); + + @override + _i5.Future boxExists(String? name, {String? path}) => + (super.noSuchMethod( + Invocation.method(#boxExists, [name], {#path: path}), + returnValue: _i5.Future.value(false), + ) + as _i5.Future); @override void resetAdapters() => super.noSuchMethod( - Invocation.method( - #resetAdapters, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetAdapters, []), + returnValueForMissingStub: null, + ); @override void registerAdapter( _i3.TypeAdapter? adapter, { bool? internal = false, bool? override = false, - }) => - super.noSuchMethod( - Invocation.method( - #registerAdapter, - [adapter], - { - #internal: internal, - #override: override, - }, - ), - returnValueForMissingStub: null, - ); - - @override - bool isAdapterRegistered(int? typeId) => (super.noSuchMethod( - Invocation.method( - #isAdapterRegistered, - [typeId], - ), - returnValue: false, - ) as bool); + }) => super.noSuchMethod( + Invocation.method( + #registerAdapter, + [adapter], + {#internal: internal, #override: override}, + ), + returnValueForMissingStub: null, + ); + + @override + bool isAdapterRegistered(int? typeId) => + (super.noSuchMethod( + Invocation.method(#isAdapterRegistered, [typeId]), + returnValue: false, + ) + as bool); @override void ignoreTypeId(int? typeId) => super.noSuchMethod( - Invocation.method( - #ignoreTypeId, - [typeId], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#ignoreTypeId, [typeId]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BoxCollection]. /// /// See the documentation for Mockito's code generation for more information. -class MockBoxCollection extends _i1.Mock implements impl.BoxCollection { +class MockBoxCollection extends _i1.Mock implements _i3.BoxCollection { MockBoxCollection() { _i1.throwOnMissingStub(this); } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: '', - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i6.dummyValue(this, Invocation.getter(#name)), + ) + as String); @override - Set get boxNames => (super.noSuchMethod( - Invocation.getter(#boxNames), - returnValue: {}, - ) as Set); + Set get boxNames => + (super.noSuchMethod(Invocation.getter(#boxNames), returnValue: {}) + as Set); @override - _i5.Future> openBox( + _i5.Future<_i3.CollectionBox> openBox( String? name, { bool? preload = false, - stub.CollectionBox Function( - String, - impl.BoxCollection, - )? boxCreator, + _i3.CollectionBox Function(String, _i3.BoxCollection)? boxCreator, }) => (super.noSuchMethod( - Invocation.method( - #openBox, - [name], - { - #preload: preload, - #boxCreator: boxCreator, - }, - ), - returnValue: - _i5.Future>.value(_FakeCollectionBox_7( - this, - Invocation.method( - #openBox, - [name], - { - #preload: preload, - #boxCreator: boxCreator, - }, - ), - )), - ) as _i5.Future>); + Invocation.method( + #openBox, + [name], + {#preload: preload, #boxCreator: boxCreator}, + ), + returnValue: _i5.Future<_i3.CollectionBox>.value( + _FakeCollectionBox_7( + this, + Invocation.method( + #openBox, + [name], + {#preload: preload, #boxCreator: boxCreator}, + ), + ), + ), + ) + as _i5.Future<_i3.CollectionBox>); @override _i5.Future transaction( @@ -1275,34 +1071,28 @@ class MockBoxCollection extends _i1.Mock implements impl.BoxCollection { bool? readOnly = false, }) => (super.noSuchMethod( - Invocation.method( - #transaction, - [action], - { - #boxNames: boxNames, - #readOnly: readOnly, - }, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method( + #transaction, + [action], + {#boxNames: boxNames, #readOnly: readOnly}, + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override void close() => super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValueForMissingStub: null, - ); - - @override - _i5.Future deleteFromDisk() => (super.noSuchMethod( - Invocation.method( - #deleteFromDisk, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#close, []), + returnValueForMissingStub: null, + ); + + @override + _i5.Future deleteFromDisk() => + (super.noSuchMethod( + Invocation.method(#deleteFromDisk, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } diff --git a/isar/test/mocks/mocks.mocks.dart b/isar/test/mocks/mocks.mocks.dart index dc4cbd87a4..445a142e27 100644 --- a/isar/test/mocks/mocks.mocks.dart +++ b/isar/test/mocks/mocks.mocks.dart @@ -1,8 +1,8 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in sentry_isar/test/mocks/mocks.dart. // Do not manually edit this file. -// ignore_for_file: no_leading_underscores_for_library_prefixes, invalid_use_of_internal_member +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'dart:typed_data' as _i7; @@ -16,6 +16,8 @@ import 'package:sentry/src/profiling.dart' as _i5; // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// 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: prefer_const_constructors @@ -286,16 +288,32 @@ class MockHub extends _i1.Mock implements _i2.Hub { ) as _i3.Future<_i2.SentryId>); @override - // ignore: deprecated_member_use - _i3.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => + _i3.Future<_i2.SentryId> captureFeedback( + _i2.SentryFeedback? feedback, { + _i2.Hint? hint, + _i2.ScopeCallback? withScope, + }) => (super.noSuchMethod( Invocation.method( - #captureUserFeedback, - [userFeedback], + #captureFeedback, + [feedback], + { + #hint: hint, + #withScope: withScope, + }, ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); + returnValue: _i3.Future<_i2.SentryId>.value(_FakeSentryId_1( + this, + Invocation.method( + #captureFeedback, + [feedback], + { + #hint: hint, + #withScope: withScope, + }, + ), + )), + ) as _i3.Future<_i2.SentryId>); @override _i3.Future addBreadcrumb( @@ -500,7 +518,10 @@ class MockIsar extends _i1.Mock implements _i4.Isar { @override String get name => (super.noSuchMethod( Invocation.getter(#name), - returnValue: '', + returnValue: _i6.dummyValue( + this, + Invocation.getter(#name), + ), ) as String); @override @@ -758,7 +779,10 @@ class MockIsarCollection extends _i1.Mock @override String get name => (super.noSuchMethod( Invocation.getter(#name), - returnValue: '', + returnValue: _i6.dummyValue( + this, + Invocation.getter(#name), + ), ) as String); @override diff --git a/sqflite/test/mocks/mocks.mocks.dart b/sqflite/test/mocks/mocks.mocks.dart index 11300b2dff..e27a7a1350 100644 --- a/sqflite/test/mocks/mocks.mocks.dart +++ b/sqflite/test/mocks/mocks.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in sentry_sqflite/test/mocks/mocks.dart. // Do not manually edit this file. @@ -6,20 +6,24 @@ import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i7; +import 'package:mockito/src/dummies.dart' as _i6; import 'package:sentry/sentry.dart' as _i2; +import 'package:sentry/src/profiling.dart' as _i7; import 'package:sentry/src/sentry_tracer.dart' as _i5; -import 'package:sqflite_common/sql.dart' as _i6; +import 'package:sqflite_common/sql.dart' as _i8; import 'package:sqflite_common/sqlite_api.dart' as _i3; -import 'mocks.dart' as _i8; +import 'mocks.dart' as _i9; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// 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 @@ -27,292 +31,229 @@ import 'mocks.dart' as _i8; 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 _FakeDatabase_4 extends _i1.SmartFake implements _i3.Database { - _FakeDatabase_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDatabase_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeFuture_5 extends _i1.SmartFake implements _i4.Future { - _FakeFuture_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFuture_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeQueryCursor_6 extends _i1.SmartFake implements _i3.QueryCursor { - _FakeQueryCursor_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeQueryCursor_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBatch_7 extends _i1.SmartFake implements _i3.Batch { - _FakeBatch_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBatch_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryOptions_8 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryOptions_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryId_9 extends _i1.SmartFake implements _i2.SentryId { - _FakeSentryId_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryId_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeScope_10 extends _i1.SmartFake implements _i2.Scope { - _FakeScope_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeScope_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHub_11 extends _i1.SmartFake implements _i2.Hub { - _FakeHub_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHub_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [SentryTracer]. /// /// See the documentation for Mockito's code generation for more information. -// ignore: invalid_use_of_internal_member class MockSentryTracer extends _i1.Mock implements _i5.SentryTracer { MockSentryTracer() { _i1.throwOnMissingStub(this); } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: '', - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i6.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 - _i2.SentrySpanContext get context => (super.noSuchMethod( - Invocation.getter(#context), - returnValue: _FakeSentrySpanContext_0( - this, - Invocation.getter(#context), - ), - ) as _i2.SentrySpanContext); + set profiler(_i7.SentryProfiler? _profiler) => super.noSuchMethod( + Invocation.setter(#profiler, _profiler), + returnValueForMissingStub: null, + ); + + @override + set profileInfo(_i7.SentryProfileInfo? _profileInfo) => super.noSuchMethod( + Invocation.setter(#profileInfo, _profileInfo), + returnValueForMissingStub: null, + ); + + @override + 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); + @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, - ); - @override - Map get tags => (super.noSuchMethod( - Invocation.getter(#tags), - returnValue: {}, - ) as Map); + Invocation.setter(#status, status), + returnValueForMissingStub: null, + ); + @override - Map get measurements => (super.noSuchMethod( - Invocation.getter(#measurements), - returnValue: {}, - ) as Map); + Map get tags => + (super.noSuchMethod( + Invocation.getter(#tags), + returnValue: {}, + ) + as Map); + @override - _i4.Future finish({ - _i2.SpanStatus? status, - DateTime? endTimestamp, - }) => + _i4.Future finish({_i2.SpanStatus? status, DateTime? endTimestamp}) => (super.noSuchMethod( - Invocation.method( - #finish, - [], - { - #status: status, - #endTimestamp: endTimestamp, - }, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + }), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.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( String? operation, { @@ -320,26 +261,22 @@ class MockSentryTracer extends _i1.Mock implements _i5.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( _i2.SpanId? parentSpanId, @@ -348,71 +285,58 @@ class MockSentryTracer extends _i1.Mock implements _i5.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, + ); + @override void scheduleFinish() => super.noSuchMethod( - Invocation.method( - #scheduleFinish, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFinish, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [Batch]. @@ -424,10 +348,9 @@ class MockBatch extends _i1.Mock implements _i3.Batch { } @override - int get length => (super.noSuchMethod( - Invocation.getter(#length), - returnValue: 0, - ) as int); + int get length => + (super.noSuchMethod(Invocation.getter(#length), returnValue: 0) as int); + @override _i4.Future> commit({ bool? exclusive, @@ -435,154 +358,96 @@ class MockBatch extends _i1.Mock implements _i3.Batch { bool? continueOnError, }) => (super.noSuchMethod( - Invocation.method( - #commit, - [], - { - #exclusive: exclusive, - #noResult: noResult, - #continueOnError: continueOnError, - }, - ), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + Invocation.method(#commit, [], { + #exclusive: exclusive, + #noResult: noResult, + #continueOnError: continueOnError, + }), + returnValue: _i4.Future>.value([]), + ) + as _i4.Future>); + @override - _i4.Future> apply({ - bool? noResult, - bool? continueOnError, - }) => + _i4.Future> apply({bool? noResult, bool? continueOnError}) => (super.noSuchMethod( - Invocation.method( - #apply, - [], - { - #noResult: noResult, - #continueOnError: continueOnError, - }, - ), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + Invocation.method(#apply, [], { + #noResult: noResult, + #continueOnError: continueOnError, + }), + returnValue: _i4.Future>.value([]), + ) + as _i4.Future>); + @override - void rawInsert( - String? sql, [ - List? arguments, - ]) => - super.noSuchMethod( - Invocation.method( - #rawInsert, - [ - sql, - arguments, - ], - ), - returnValueForMissingStub: null, - ); + void rawInsert(String? sql, [List? arguments]) => super.noSuchMethod( + Invocation.method(#rawInsert, [sql, arguments]), + returnValueForMissingStub: null, + ); + @override void insert( String? table, Map? values, { String? nullColumnHack, - _i6.ConflictAlgorithm? conflictAlgorithm, - }) => - super.noSuchMethod( - Invocation.method( - #insert, - [ - table, - values, - ], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValueForMissingStub: null, - ); + _i8.ConflictAlgorithm? conflictAlgorithm, + }) => super.noSuchMethod( + Invocation.method( + #insert, + [table, values], + {#nullColumnHack: nullColumnHack, #conflictAlgorithm: conflictAlgorithm}, + ), + returnValueForMissingStub: null, + ); + @override - void rawUpdate( - String? sql, [ - List? arguments, - ]) => - super.noSuchMethod( - Invocation.method( - #rawUpdate, - [ - sql, - arguments, - ], - ), - returnValueForMissingStub: null, - ); + void rawUpdate(String? sql, [List? arguments]) => super.noSuchMethod( + Invocation.method(#rawUpdate, [sql, arguments]), + returnValueForMissingStub: null, + ); + @override void update( String? table, Map? values, { String? where, List? whereArgs, - _i6.ConflictAlgorithm? conflictAlgorithm, - }) => - super.noSuchMethod( - Invocation.method( - #update, - [ - table, - values, - ], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValueForMissingStub: null, - ); + _i8.ConflictAlgorithm? conflictAlgorithm, + }) => super.noSuchMethod( + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValueForMissingStub: null, + ); + @override - void rawDelete( - String? sql, [ - List? arguments, - ]) => - super.noSuchMethod( - Invocation.method( - #rawDelete, - [ - sql, - arguments, - ], - ), - returnValueForMissingStub: null, - ); + void rawDelete(String? sql, [List? arguments]) => super.noSuchMethod( + Invocation.method(#rawDelete, [sql, arguments]), + returnValueForMissingStub: null, + ); + @override - void delete( - String? table, { - String? where, - List? whereArgs, - }) => + void delete(String? table, {String? where, List? whereArgs}) => super.noSuchMethod( Invocation.method( #delete, [table], - { - #where: where, - #whereArgs: whereArgs, - }, + {#where: where, #whereArgs: whereArgs}, ), returnValueForMissingStub: null, ); + @override - void execute( - String? sql, [ - List? arguments, - ]) => - super.noSuchMethod( - Invocation.method( - #execute, - [ - sql, - arguments, - ], - ), - returnValueForMissingStub: null, - ); + void execute(String? sql, [List? arguments]) => super.noSuchMethod( + Invocation.method(#execute, [sql, arguments]), + returnValueForMissingStub: null, + ); + @override void query( String? table, { @@ -595,40 +460,30 @@ class MockBatch extends _i1.Mock implements _i3.Batch { String? orderBy, int? limit, int? offset, - }) => - super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValueForMissingStub: null, + ); + @override - void rawQuery( - String? sql, [ - List? arguments, - ]) => - super.noSuchMethod( - Invocation.method( - #rawQuery, - [ - sql, - arguments, - ], - ), - returnValueForMissingStub: null, - ); + void rawQuery(String? sql, [List? arguments]) => super.noSuchMethod( + Invocation.method(#rawQuery, [sql, arguments]), + returnValueForMissingStub: null, + ); } /// A class which mocks [Database]. @@ -640,100 +495,105 @@ class MockDatabase extends _i1.Mock implements _i3.Database { } @override - String get path => (super.noSuchMethod( - Invocation.getter(#path), - returnValue: '', - ) as String); + String get path => + (super.noSuchMethod( + Invocation.getter(#path), + returnValue: _i6.dummyValue(this, Invocation.getter(#path)), + ) + as String); + @override - bool get isOpen => (super.noSuchMethod( - Invocation.getter(#isOpen), - returnValue: false, - ) as bool); + bool get isOpen => + (super.noSuchMethod(Invocation.getter(#isOpen), returnValue: false) + as bool); + @override - _i3.Database get database => (super.noSuchMethod( - Invocation.getter(#database), - returnValue: _FakeDatabase_4( - this, - Invocation.getter(#database), - ), - ) as _i3.Database); + _i3.Database get database => + (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), + ) + as _i3.Database); + @override - _i4.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + @override _i4.Future transaction( _i4.Future Function(_i3.Transaction)? action, { bool? exclusive, }) => (super.noSuchMethod( - Invocation.method( - #transaction, - [action], - {#exclusive: exclusive}, - ), - returnValue: _i7.ifNotNull( - _i7.dummyValueOrNull( - this, - Invocation.method( - #transaction, - [action], - {#exclusive: exclusive}, + Invocation.method(#transaction, [action], {#exclusive: exclusive}), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method( + #transaction, + [action], + {#exclusive: exclusive}, + ), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method( + #transaction, + [action], + {#exclusive: exclusive}, + ), ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method( - #transaction, - [action], - {#exclusive: exclusive}, - ), - ), - ) as _i4.Future); + ) + as _i4.Future); + @override - _i4.Future devInvokeMethod( - String? method, [ - Object? arguments, - ]) => + _i4.Future readTransaction( + _i4.Future Function(_i3.Transaction)? action, + ) => (super.noSuchMethod( - Invocation.method( - #devInvokeMethod, - [ - method, - arguments, - ], - ), - returnValue: _i7.ifNotNull( - _i7.dummyValueOrNull( - this, - Invocation.method( - #devInvokeMethod, - [ - method, - arguments, - ], + Invocation.method(#readTransaction, [action]), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#readTransaction, [action]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#readTransaction, [action]), ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method( - #devInvokeMethod, - [ - method, - arguments, - ], - ), - ), - ) as _i4.Future); + ) + as _i4.Future); + + @override + _i4.Future devInvokeMethod(String? method, [Object? arguments]) => + (super.noSuchMethod( + Invocation.method(#devInvokeMethod, [method, arguments]), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#devInvokeMethod, [method, arguments]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#devInvokeMethod, [method, arguments]), + ), + ) + as _i4.Future); + @override _i4.Future devInvokeSqlMethod( String? method, @@ -741,92 +601,67 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? arguments, ]) => (super.noSuchMethod( - Invocation.method( - #devInvokeSqlMethod, - [ - method, - sql, - arguments, - ], - ), - returnValue: _i7.ifNotNull( - _i7.dummyValueOrNull( - this, - Invocation.method( - #devInvokeSqlMethod, - [ + Invocation.method(#devInvokeSqlMethod, [method, sql, arguments]), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#devInvokeSqlMethod, [ + method, + sql, + arguments, + ]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#devInvokeSqlMethod, [ method, sql, arguments, - ], + ]), ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method( - #devInvokeSqlMethod, - [ - method, - sql, - arguments, - ], - ), - ), - ) as _i4.Future); + ) + as _i4.Future); + @override - _i4.Future execute( - String? sql, [ - List? arguments, - ]) => + _i4.Future execute(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #execute, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#execute, [sql, arguments]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + @override - _i4.Future rawInsert( - String? sql, [ - List? arguments, - ]) => + _i4.Future rawInsert(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #rawInsert, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawInsert, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future insert( String? table, Map? values, { String? nullColumnHack, - _i6.ConflictAlgorithm? conflictAlgorithm, + _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #insert, - [ - table, - values, - ], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #insert, + [table, values], + { + #nullColumnHack: nullColumnHack, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future>> query( String? table, { @@ -841,40 +676,40 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? offset, }) => (super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValue: _i4.Future>>.value( - >[]), - ) as _i4.Future>>); + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); + @override _i4.Future>> rawQuery( String? sql, [ List? arguments, ]) => (super.noSuchMethod( - Invocation.method( - #rawQuery, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future>>.value( - >[]), - ) as _i4.Future>>); + Invocation.method(#rawQuery, [sql, arguments]), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); + @override _i4.Future<_i3.QueryCursor> rawQueryCursor( String? sql, @@ -882,26 +717,24 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #rawQueryCursor, - [ - sql, - arguments, - ], - {#bufferSize: bufferSize}, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value(_FakeQueryCursor_6( - this, - Invocation.method( - #rawQueryCursor, - [ - sql, - arguments, - ], - {#bufferSize: bufferSize}, - ), - )), - ) as _i4.Future<_i3.QueryCursor>); + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); + @override _i4.Future<_i3.QueryCursor> queryCursor( String? table, { @@ -917,95 +750,84 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value(_FakeQueryCursor_6( - this, - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - )), - ) as _i4.Future<_i3.QueryCursor>); - @override - _i4.Future rawUpdate( - String? sql, [ - List? arguments, - ]) => + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); + + @override + _i4.Future rawUpdate(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #rawUpdate, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future update( String? table, Map? values, { String? where, List? whereArgs, - _i6.ConflictAlgorithm? conflictAlgorithm, + _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #update, - [ - table, - values, - ], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override - _i4.Future rawDelete( - String? sql, [ - List? arguments, - ]) => + _i4.Future rawDelete(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #rawDelete, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawDelete, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future delete( String? table, { @@ -1013,30 +835,22 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? whereArgs, }) => (super.noSuchMethod( - Invocation.method( - #delete, - [table], - { - #where: where, - #whereArgs: whereArgs, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #delete, + [table], + {#where: where, #whereArgs: whereArgs}, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override - _i3.Batch batch() => (super.noSuchMethod( - Invocation.method( - #batch, - [], - ), - returnValue: _FakeBatch_7( - this, - Invocation.method( - #batch, - [], - ), - ), - ) as _i3.Batch); + _i3.Batch batch() => + (super.noSuchMethod( + Invocation.method(#batch, []), + returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), + ) + as _i3.Batch); } /// A class which mocks [DatabaseExecutor]. @@ -1048,65 +862,50 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { } @override - _i3.Database get database => (super.noSuchMethod( - Invocation.getter(#database), - returnValue: _FakeDatabase_4( - this, - Invocation.getter(#database), - ), - ) as _i3.Database); + _i3.Database get database => + (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), + ) + as _i3.Database); + @override - _i4.Future execute( - String? sql, [ - List? arguments, - ]) => + _i4.Future execute(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #execute, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#execute, [sql, arguments]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + @override - _i4.Future rawInsert( - String? sql, [ - List? arguments, - ]) => + _i4.Future rawInsert(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #rawInsert, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawInsert, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future insert( String? table, Map? values, { String? nullColumnHack, - _i6.ConflictAlgorithm? conflictAlgorithm, + _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #insert, - [ - table, - values, - ], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #insert, + [table, values], + { + #nullColumnHack: nullColumnHack, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future>> query( String? table, { @@ -1121,40 +920,40 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? offset, }) => (super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValue: _i4.Future>>.value( - >[]), - ) as _i4.Future>>); + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); + @override _i4.Future>> rawQuery( String? sql, [ List? arguments, ]) => (super.noSuchMethod( - Invocation.method( - #rawQuery, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future>>.value( - >[]), - ) as _i4.Future>>); + Invocation.method(#rawQuery, [sql, arguments]), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); + @override _i4.Future<_i3.QueryCursor> rawQueryCursor( String? sql, @@ -1162,26 +961,24 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #rawQueryCursor, - [ - sql, - arguments, - ], - {#bufferSize: bufferSize}, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value(_FakeQueryCursor_6( - this, - Invocation.method( - #rawQueryCursor, - [ - sql, - arguments, - ], - {#bufferSize: bufferSize}, - ), - )), - ) as _i4.Future<_i3.QueryCursor>); + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); + @override _i4.Future<_i3.QueryCursor> queryCursor( String? table, { @@ -1197,95 +994,84 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value(_FakeQueryCursor_6( - this, - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - )), - ) as _i4.Future<_i3.QueryCursor>); - @override - _i4.Future rawUpdate( - String? sql, [ - List? arguments, - ]) => + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); + + @override + _i4.Future rawUpdate(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #rawUpdate, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future update( String? table, Map? values, { String? where, List? whereArgs, - _i6.ConflictAlgorithm? conflictAlgorithm, + _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #update, - [ - table, - values, - ], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override - _i4.Future rawDelete( - String? sql, [ - List? arguments, - ]) => + _i4.Future rawDelete(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method( - #rawDelete, - [ - sql, - arguments, - ], - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawDelete, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override _i4.Future delete( String? table, { @@ -1293,30 +1079,22 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { List? whereArgs, }) => (super.noSuchMethod( - Invocation.method( - #delete, - [table], - { - #where: where, - #whereArgs: whereArgs, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #delete, + [table], + {#where: where, #whereArgs: whereArgs}, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); + @override - _i3.Batch batch() => (super.noSuchMethod( - Invocation.method( - #batch, - [], - ), - returnValue: _FakeBatch_7( - this, - Invocation.method( - #batch, - [], - ), - ), - ) as _i3.Batch); + _i3.Batch batch() => + (super.noSuchMethod( + Invocation.method(#batch, []), + returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), + ) + as _i3.Batch); } /// A class which mocks [Hub]. @@ -1328,34 +1106,43 @@ class MockHub extends _i1.Mock implements _i2.Hub { } @override - _i2.SentryOptions get options => (super.noSuchMethod( - Invocation.getter(#options), - returnValue: _FakeSentryOptions_8( - this, - Invocation.getter(#options), - ), - ) as _i2.SentryOptions); - @override - bool get isEnabled => (super.noSuchMethod( - Invocation.getter(#isEnabled), - returnValue: false, - ) as bool); - @override - _i2.SentryId get lastEventId => (super.noSuchMethod( - Invocation.getter(#lastEventId), - returnValue: _FakeSentryId_9( - this, - Invocation.getter(#lastEventId), - ), - ) as _i2.SentryId); + _i2.SentryOptions get options => + (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeSentryOptions_8( + this, + Invocation.getter(#options), + ), + ) + as _i2.SentryOptions); + @override - _i2.Scope get scope => (super.noSuchMethod( - Invocation.getter(#scope), - returnValue: _FakeScope_10( - this, - Invocation.getter(#scope), - ), - ) as _i2.Scope); + bool get isEnabled => + (super.noSuchMethod(Invocation.getter(#isEnabled), returnValue: false) + as bool); + + @override + _i2.SentryId get lastEventId => + (super.noSuchMethod( + Invocation.getter(#lastEventId), + returnValue: _FakeSentryId_9(this, Invocation.getter(#lastEventId)), + ) + as _i2.SentryId); + + @override + _i2.Scope get scope => + (super.noSuchMethod( + Invocation.getter(#scope), + returnValue: _FakeScope_10(this, Invocation.getter(#scope)), + ) + as _i2.Scope); + + @override + set profilerFactory(_i7.SentryProfilerFactory? value) => super.noSuchMethod( + Invocation.setter(#profilerFactory, value), + returnValueForMissingStub: null, + ); + @override _i4.Future<_i2.SentryId> captureEvent( _i2.SentryEvent? event, { @@ -1364,28 +1151,24 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i4.Future<_i2.SentryId>.value(_FakeSentryId_9( - this, - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i4.Future<_i2.SentryId>); + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); + @override _i4.Future<_i2.SentryId> captureException( dynamic throwable, { @@ -1394,28 +1177,24 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i4.Future<_i2.SentryId>.value(_FakeSentryId_9( - this, - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i4.Future<_i2.SentryId>); + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); + @override _i4.Future<_i2.SentryId> captureMessage( String? message, { @@ -1426,94 +1205,98 @@ 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: _i4.Future<_i2.SentryId>.value(_FakeSentryId_9( - this, - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i4.Future<_i2.SentryId>); - @override - // ignore: deprecated_member_use - _i4.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => - (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); + @override - _i4.Future addBreadcrumb( - _i2.Breadcrumb? crumb, { + _i4.Future<_i2.SentryId> captureFeedback( + _i2.SentryFeedback? feedback, { _i2.Hint? hint, + _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #addBreadcrumb, - [crumb], - {#hint: hint}, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); + + @override + _i4.Future addBreadcrumb(_i2.Breadcrumb? crumb, {_i2.Hint? hint}) => + (super.noSuchMethod( + Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.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_11( - this, - Invocation.method( - #clone, - [], - ), - ), - ) as _i2.Hub); + _i2.Hub clone() => + (super.noSuchMethod( + Invocation.method(#clone, []), + returnValue: _FakeHub_11(this, Invocation.method(#clone, [])), + ) + as _i2.Hub); + @override - _i4.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + @override _i4.FutureOr configureScope(_i2.ScopeCallback? callback) => - (super.noSuchMethod(Invocation.method( - #configureScope, - [callback], - )) as _i4.FutureOr); + (super.noSuchMethod(Invocation.method(#configureScope, [callback])) + as _i4.FutureOr); + @override _i2.ISentrySpan startTransaction( String? name, @@ -1528,36 +1311,35 @@ 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: _i8.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: _i9.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( _i2.SentryTransactionContext? transactionContext, { @@ -1570,71 +1352,69 @@ 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 _i4.Future<_i2.SentryId> captureTransaction( _i2.SentryTransaction? transaction, { _i2.SentryTraceContextHeader? traceContext, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - returnValue: _i4.Future<_i2.SentryId>.value(_FakeSentryId_9( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - )), - ) as _i4.Future<_i2.SentryId>); + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + ), + ), + ) + as _i4.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, + ); } From f0b2f8cdf59055f70d66d8383774df6c19fba67c Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Tue, 11 Feb 2025 00:23:14 +0100 Subject: [PATCH 2/6] update --- dart/lib/sentry.dart | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dart/lib/sentry.dart b/dart/lib/sentry.dart index 1ffb29b850..c81923c2ce 100644 --- a/dart/lib/sentry.dart +++ b/dart/lib/sentry.dart @@ -7,7 +7,6 @@ library; export 'src/event_processor.dart'; export 'src/exception_cause.dart'; -// exception extraction export 'src/exception_cause_extractor.dart'; export 'src/exception_stacktrace_extractor.dart'; export 'src/exception_type_identifier.dart'; @@ -15,7 +14,6 @@ export 'src/hint.dart'; export 'src/http_client/sentry_http_client.dart'; export 'src/http_client/sentry_http_client_error.dart'; export 'src/hub.dart'; -// useful for tests export 'src/hub_adapter.dart'; export 'src/integration.dart'; export 'src/noop_isolate_error_integration.dart' @@ -23,9 +21,7 @@ export 'src/noop_isolate_error_integration.dart' export 'src/performance_collector.dart'; export 'src/platform_checker.dart'; export 'src/protocol.dart'; -// feedback export 'src/protocol/sentry_feedback.dart'; -// proxy export 'src/protocol/sentry_proxy.dart'; export 'src/run_zoned_guarded_integration.dart'; export 'src/scope.dart'; @@ -41,13 +37,9 @@ export 'src/sentry_options.dart'; export 'src/sentry_span_operations.dart'; // ignore: invalid_export_of_internal_element export 'src/sentry_trace_origins.dart'; -// constants export 'src/span_data_convention.dart'; -// spotlight debugging export 'src/spotlight.dart'; -// useful for integrations export 'src/throwable_mechanism.dart'; -// tracing export 'src/tracing.dart'; export 'src/transport/transport.dart'; export 'src/type_check_hint.dart'; @@ -55,7 +47,6 @@ export 'src/type_check_hint.dart'; export 'src/utils.dart'; // ignore: invalid_export_of_internal_element export 'src/utils/http_header_utils.dart'; -// URL // ignore: invalid_export_of_internal_element export 'src/utils/http_sanitizer.dart'; export 'src/utils/tracing_utils.dart'; From c9c6586034dd17f394f7fd8e8f6d3e2e92981cf7 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Tue, 11 Feb 2025 11:52:30 +0100 Subject: [PATCH 3/6] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d784ae1415..90fb687755 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Increase minimum SDK version requirements to Dart v3.5.0 and Flutter v3.24.0 ([#2643](https://github.com/getsentry/sentry-dart/pull/2643)) - Remove screenshot option `attachScreenshotOnlyWhenResumed` ([#2664](https://github.com/getsentry/sentry-dart/pull/2664)) - Remove deprecated `beforeScreenshot` ([#2662](https://github.com/getsentry/sentry-dart/pull/2662)) +- Remove old user feedback api ([#2686](https://github.com/getsentry/sentry-dart/pull/2686)) ### Dependencies From a616412df7b0fb6d806a676f232ea16b88de9b7b Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Wed, 12 Feb 2025 14:46:03 +0100 Subject: [PATCH 4/6] fix mock --- hive/test/mocks/mocks.mocks.dart | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/hive/test/mocks/mocks.mocks.dart b/hive/test/mocks/mocks.mocks.dart index ee006fecc6..4e982d388a 100644 --- a/hive/test/mocks/mocks.mocks.dart +++ b/hive/test/mocks/mocks.mocks.dart @@ -9,6 +9,13 @@ import 'dart:typed_data' as _i9; import 'package:hive/hive.dart' as _i3; import 'package:hive/src/box/default_compaction_strategy.dart' as _i8; import 'package:hive/src/box/default_key_comparator.dart' as _i7; +// ignore: implementation_imports +import 'package:hive/src/box_collection/box_collection_stub.dart' + if (dart.library.html) 'package:hive/src/box_collection/box_collection_indexed_db.dart' + if (dart.library.js_interop) 'package:hive/src/box_collection/box_collection_indexed_db.dart' + if (dart.library.io) 'package:hive/src/box_collection/box_collection.dart' + as impl; +import 'package:hive/src/box_collection/box_collection_stub.dart' as stub; import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i6; import 'package:sentry/sentry.dart' as _i2; @@ -365,12 +372,13 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i5.Future<_i2.SentryId> captureTransaction( _i2.SentryTransaction? transaction, { _i2.SentryTraceContextHeader? traceContext, + _i2.Hint? hint, }) => (super.noSuchMethod( Invocation.method( #captureTransaction, [transaction], - {#traceContext: traceContext}, + {#traceContext: traceContext, #hint: hint}, ), returnValue: _i5.Future<_i2.SentryId>.value( _FakeSentryId_1( @@ -378,7 +386,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { Invocation.method( #captureTransaction, [transaction], - {#traceContext: traceContext}, + {#traceContext: traceContext, #hint: hint}, ), ), ), @@ -1021,7 +1029,7 @@ class MockHiveInterface extends _i1.Mock implements _i3.HiveInterface { /// A class which mocks [BoxCollection]. /// /// See the documentation for Mockito's code generation for more information. -class MockBoxCollection extends _i1.Mock implements _i3.BoxCollection { +class MockBoxCollection extends _i1.Mock implements impl.BoxCollection { MockBoxCollection() { _i1.throwOnMissingStub(this); } @@ -1040,10 +1048,10 @@ class MockBoxCollection extends _i1.Mock implements _i3.BoxCollection { as Set); @override - _i5.Future<_i3.CollectionBox> openBox( + _i5.Future> openBox( String? name, { bool? preload = false, - _i3.CollectionBox Function(String, _i3.BoxCollection)? boxCreator, + stub.CollectionBox Function(String, impl.BoxCollection)? boxCreator, }) => (super.noSuchMethod( Invocation.method( @@ -1051,7 +1059,7 @@ class MockBoxCollection extends _i1.Mock implements _i3.BoxCollection { [name], {#preload: preload, #boxCreator: boxCreator}, ), - returnValue: _i5.Future<_i3.CollectionBox>.value( + returnValue: _i5.Future>.value( _FakeCollectionBox_7( this, Invocation.method( @@ -1062,7 +1070,7 @@ class MockBoxCollection extends _i1.Mock implements _i3.BoxCollection { ), ), ) - as _i5.Future<_i3.CollectionBox>); + as _i5.Future>); @override _i5.Future transaction( From d4229257f7729ef378b2b52c5e1fb543fb5fcaaa Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Thu, 13 Feb 2025 11:23:25 +0100 Subject: [PATCH 5/6] update --- flutter/test/mocks.mocks.dart | 2925 +++++++++-------- .../sentry_screenshot_widget_test.mocks.dart | 7 +- hive/test/mocks/mocks.mocks.dart | 20 +- isar/test/mocks/mocks.mocks.dart | 13 +- sqflite/test/mocks/mocks.mocks.dart | 1399 ++++---- 5 files changed, 2304 insertions(+), 2060 deletions(-) diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index 876490bef7..32ada07941 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -47,152 +47,152 @@ import 'mocks.dart' as _i13; class _FakeSentrySpanContext_0 extends _i1.SmartFake implements _i2.SentrySpanContext { _FakeSentrySpanContext_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDateTime_1 extends _i1.SmartFake implements DateTime { _FakeDateTime_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeISentrySpan_2 extends _i1.SmartFake implements _i2.ISentrySpan { _FakeISentrySpan_2(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTraceHeader_3 extends _i1.SmartFake implements _i2.SentryTraceHeader { _FakeSentryTraceHeader_3(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTracer_4 extends _i1.SmartFake implements _i3.SentryTracer { _FakeSentryTracer_4(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryId_5 extends _i1.SmartFake implements _i2.SentryId { _FakeSentryId_5(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeContexts_6 extends _i1.SmartFake implements _i2.Contexts { _FakeContexts_6(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTransaction_7 extends _i1.SmartFake implements _i2.SentryTransaction { _FakeSentryTransaction_7(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeMethodCodec_8 extends _i1.SmartFake implements _i4.MethodCodec { _FakeMethodCodec_8(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeBinaryMessenger_9 extends _i1.SmartFake implements _i4.BinaryMessenger { _FakeBinaryMessenger_9(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeWidgetsBinding_10 extends _i1.SmartFake implements _i5.WidgetsBinding { _FakeWidgetsBinding_10(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSingletonFlutterWindow_11 extends _i1.SmartFake implements _i6.SingletonFlutterWindow { _FakeSingletonFlutterWindow_11(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePlatformDispatcher_12 extends _i1.SmartFake implements _i6.PlatformDispatcher { _FakePlatformDispatcher_12(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePointerRouter_13 extends _i1.SmartFake implements _i7.PointerRouter { _FakePointerRouter_13(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeGestureArenaManager_14 extends _i1.SmartFake implements _i7.GestureArenaManager { _FakeGestureArenaManager_14(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePointerSignalResolver_15 extends _i1.SmartFake implements _i7.PointerSignalResolver { _FakePointerSignalResolver_15(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDuration_16 extends _i1.SmartFake implements Duration { _FakeDuration_16(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSamplingClock_17 extends _i1.SmartFake implements _i7.SamplingClock { _FakeSamplingClock_17(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeValueNotifier_18 extends _i1.SmartFake implements _i8.ValueNotifier { _FakeValueNotifier_18(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeHardwareKeyboard_19 extends _i1.SmartFake implements _i4.HardwareKeyboard { _FakeHardwareKeyboard_19(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeKeyEventManager_20 extends _i1.SmartFake implements _i4.KeyEventManager { _FakeKeyEventManager_20(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeChannelBuffers_21 extends _i1.SmartFake implements _i6.ChannelBuffers { _FakeChannelBuffers_21(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeRestorationManager_22 extends _i1.SmartFake implements _i4.RestorationManager { _FakeRestorationManager_22(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeImageCache_23 extends _i1.SmartFake implements _i9.ImageCache { _FakeImageCache_23(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeListenable_24 extends _i1.SmartFake implements _i8.Listenable { _FakeListenable_24(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeAccessibilityFeatures_25 extends _i1.SmartFake implements _i6.AccessibilityFeatures { _FakeAccessibilityFeatures_25(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePipelineOwner_26 extends _i1.SmartFake implements _i10.PipelineOwner { _FakePipelineOwner_26(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -201,7 +201,7 @@ class _FakePipelineOwner_26 extends _i1.SmartFake class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { _FakeRenderView_27(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -210,18 +210,18 @@ class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { class _FakeMouseTracker_28 extends _i1.SmartFake implements _i10.MouseTracker { _FakeMouseTracker_28(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePlatformMenuDelegate_29 extends _i1.SmartFake implements _i9.PlatformMenuDelegate { _FakePlatformMenuDelegate_29(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeFocusManager_30 extends _i1.SmartFake implements _i9.FocusManager { _FakeFocusManager_30(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -230,51 +230,51 @@ class _FakeFocusManager_30 extends _i1.SmartFake implements _i9.FocusManager { class _FakeFuture_31 extends _i1.SmartFake implements _i11.Future { _FakeFuture_31(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeCodec_32 extends _i1.SmartFake implements _i6.Codec { _FakeCodec_32(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSemanticsHandle_33 extends _i1.SmartFake implements _i12.SemanticsHandle { _FakeSemanticsHandle_33(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSemanticsUpdateBuilder_34 extends _i1.SmartFake implements _i6.SemanticsUpdateBuilder { _FakeSemanticsUpdateBuilder_34(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeViewConfiguration_35 extends _i1.SmartFake implements _i10.ViewConfiguration { _FakeViewConfiguration_35(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSceneBuilder_36 extends _i1.SmartFake implements _i6.SceneBuilder { _FakeSceneBuilder_36(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePictureRecorder_37 extends _i1.SmartFake implements _i6.PictureRecorder { _FakePictureRecorder_37(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeCanvas_38 extends _i1.SmartFake implements _i6.Canvas { _FakeCanvas_38(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeWidget_39 extends _i1.SmartFake implements _i9.Widget { _FakeWidget_39(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -283,17 +283,17 @@ class _FakeWidget_39 extends _i1.SmartFake implements _i9.Widget { class _FakeSentryOptions_40 extends _i1.SmartFake implements _i2.SentryOptions { _FakeSentryOptions_40(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeScope_41 extends _i1.SmartFake implements _i2.Scope { _FakeScope_41(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeHub_42 extends _i1.SmartFake implements _i2.Hub { _FakeHub_42(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } /// A class which mocks [Callbacks]. @@ -310,8 +310,9 @@ class MockCallbacks extends _i1.Mock implements _i13.Callbacks { dynamic arguments, ]) => (super.noSuchMethod( - Invocation.method(#methodCallHandler, [method, arguments]), - ) as _i11.Future?); + Invocation.method(#methodCallHandler, [method, arguments]), + ) + as _i11.Future?); } /// A class which mocks [Transport]. @@ -325,9 +326,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]. @@ -339,83 +341,93 @@ 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, - ); + ) => 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 => @@ -423,28 +435,32 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { 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({ @@ -453,38 +469,39 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method(#finish, [], { - #status: status, - #endTimestamp: endTimestamp, - #hint: hint, - }), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + #hint: hint, + }), + 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, - ); + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override void setTag(String? key, String? value) => super.noSuchMethod( - Invocation.method(#setTag, [key, value]), - returnValueForMissingStub: null, - ); + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -493,20 +510,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( @@ -516,58 +534,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]. @@ -580,43 +598,51 @@ 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) => @@ -643,22 +669,28 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { 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({ @@ -692,70 +724,71 @@ 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, [], { - #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); + 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, [], { + #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]. @@ -772,40 +805,46 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { 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 => @@ -814,21 +853,25 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { @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({ @@ -837,38 +880,39 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method(#finish, [], { - #status: status, - #endTimestamp: endTimestamp, - #hint: hint, - }), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + #hint: hint, + }), + 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, - ); + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override void setTag(String? key, String? value) => super.noSuchMethod( - Invocation.method(#setTag, [key, value]), - returnValueForMissingStub: null, - ); + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -877,52 +921,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]. @@ -941,22 +989,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>); + 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( @@ -966,22 +1015,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>); + 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( @@ -993,20 +1043,6 @@ 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], @@ -1018,9 +1054,24 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { #hint: hint, }, ), - ), - ), - ) as _i11.Future<_i2.SentryId>); + 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( @@ -1030,37 +1081,31 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#scope: scope, #traceContext: traceContext, #hint: hint}, - ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, Invocation.method( #captureTransaction, [transaction], {#scope: scope, #traceContext: traceContext, #hint: hint}, ), - ), - ), - ) as _i11.Future<_i2.SentryId>); + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#scope: scope, #traceContext: traceContext, #hint: hint}, + ), + ), + ), + ) + 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?>); - - @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(#captureEnvelope, [envelope]), + returnValue: _i11.Future<_i2.SentryId?>.value(), + ) + as _i11.Future<_i2.SentryId?>); @override _i11.Future<_i2.SentryId> captureFeedback( @@ -1069,28 +1114,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>); + 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]. @@ -1102,35 +1148,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]) => (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( @@ -1138,9 +1191,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( @@ -1148,18 +1202,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, - ); + ) => super.noSuchMethod( + Invocation.method(#setMethodCallHandler, [handler]), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryNativeBinding]. @@ -1172,22 +1226,28 @@ 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) => @@ -1200,17 +1260,19 @@ class MockSentryNativeBinding extends _i1.Mock bool? containsUnhandledException, ) => (super.noSuchMethod( - Invocation.method(#captureEnvelope, [ - envelopeData, - containsUnhandledException, - ]), - ) as _i11.FutureOr); + Invocation.method(#captureEnvelope, [ + envelopeData, + containsUnhandledException, + ]), + ) + as _i11.FutureOr); @override _i11.FutureOr captureStructuredEnvelope(_i2.SentryEnvelope? envelope) => (super.noSuchMethod( - Invocation.method(#captureStructuredEnvelope, [envelope]), - ) as _i11.FutureOr); + Invocation.method(#captureStructuredEnvelope, [envelope]), + ) + as _i11.FutureOr); @override _i11.FutureOr<_i18.NativeFrames?> endNativeFrames(_i2.SentryId? id) => @@ -1269,12 +1331,13 @@ class MockSentryNativeBinding extends _i1.Mock int? endTimeNs, ) => (super.noSuchMethod( - Invocation.method(#collectProfile, [ - traceId, - startTimeNs, - endTimeNs, - ]), - ) as _i11.FutureOr?>); + Invocation.method(#collectProfile, [ + traceId, + startTimeNs, + endTimeNs, + ]), + ) + as _i11.FutureOr?>); @override _i11.FutureOr?> loadDebugImages( @@ -1291,14 +1354,15 @@ class MockSentryNativeBinding extends _i1.Mock @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>); + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method(#captureReplay, [isCrash]), + ), + ), + ) + as _i11.FutureOr<_i2.SentryId>); } /// A class which mocks [SentryDelayedFramesTracker]. @@ -1311,28 +1375,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({ @@ -1340,12 +1408,13 @@ 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) => @@ -1367,17 +1436,18 @@ class MockSentryDelayedFramesTracker extends _i1.Mock required DateTime? spanEndTimestamp, }) => (super.noSuchMethod( - Invocation.method(#getFrameMetrics, [], { - #spanStartTimestamp: spanStartTimestamp, - #spanEndTimestamp: spanEndTimestamp, - }), - ) as _i20.SpanFrameMetrics?); + 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]. @@ -1389,13 +1459,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]. @@ -1408,22 +1480,26 @@ 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 => @@ -1431,77 +1507,91 @@ class MockWidgetsFlutterBinding extends _i1.Mock 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) => @@ -1511,28 +1601,36 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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 => @@ -1540,178 +1638,220 @@ class MockWidgetsFlutterBinding extends _i1.Mock 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: _FakePipelineOwner_26( + 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_27( + 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_28( + 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: _FakePipelineOwner_26( + 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_29( + this, + Invocation.getter(#platformMenuDelegate), + ), + ) + as _i9.PlatformMenuDelegate); @override set platformMenuDelegate(_i9.PlatformMenuDelegate? _platformMenuDelegate) => @@ -1721,10 +1861,12 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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) => @@ -1737,148 +1879,165 @@ 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_30( + 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) => @@ -1892,51 +2051,48 @@ 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) => @@ -1949,33 +2105,31 @@ 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) => @@ -1986,9 +2140,9 @@ class MockWidgetsFlutterBinding extends _i1.Mock @override void resetInternalState() => super.noSuchMethod( - Invocation.method(#resetInternalState, []), - returnValueForMissingStub: null, - ); + Invocation.method(#resetInternalState, []), + returnValueForMissingStub: null, + ); @override void handleAppLifecycleStateChanged(_i6.AppLifecycleState? state) => @@ -2005,37 +2159,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_31( + 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( @@ -2043,40 +2201,46 @@ 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) => @@ -2089,57 +2253,56 @@ class MockWidgetsFlutterBinding extends _i1.Mock void addPostFrameCallback( _i21.FrameCallback? callback, { String? debugLabel = 'callback', - }) => - super.noSuchMethod( - Invocation.method( - #addPostFrameCallback, - [callback], - {#debugLabel: debugLabel}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #addPostFrameCallback, + [callback], + {#debugLabel: debugLabel}, + ), + returnValueForMissingStub: null, + ); @override void ensureFrameCallbacksRegistered() => super.noSuchMethod( - Invocation.method(#ensureFrameCallbacksRegistered, []), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureFrameCallbacksRegistered, []), + returnValueForMissingStub: null, + ); @override void ensureVisualUpdate() => super.noSuchMethod( - Invocation.method(#ensureVisualUpdate, []), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureVisualUpdate, []), + returnValueForMissingStub: null, + ); @override void scheduleFrame() => super.noSuchMethod( - Invocation.method(#scheduleFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleForcedFrame() => super.noSuchMethod( - Invocation.method(#scheduleForcedFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleForcedFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleWarmUpFrame() => super.noSuchMethod( - Invocation.method(#scheduleWarmUpFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleWarmUpFrame, []), + returnValueForMissingStub: null, + ); @override void resetEpoch() => super.noSuchMethod( - Invocation.method(#resetEpoch, []), - returnValueForMissingStub: null, - ); + Invocation.method(#resetEpoch, []), + returnValueForMissingStub: null, + ); @override void handleBeginFrame(Duration? rawTimeStamp) => super.noSuchMethod( - Invocation.method(#handleBeginFrame, [rawTimeStamp]), - returnValueForMissingStub: null, - ); + Invocation.method(#handleBeginFrame, [rawTimeStamp]), + returnValueForMissingStub: null, + ); @override _i21.PerformanceModeRequestHandle? requestPerformanceMode( @@ -2150,65 +2313,69 @@ class MockWidgetsFlutterBinding extends _i1.Mock @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( @@ -2216,20 +2383,23 @@ 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) => @@ -2239,20 +2409,24 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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( @@ -2262,18 +2436,6 @@ 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], @@ -2283,9 +2445,22 @@ class MockWidgetsFlutterBinding extends _i1.Mock #allowUpscaling: allowUpscaling, }, ), - ), - ), - ) as _i11.Future<_i6.Codec>); + returnValue: _i11.Future<_i6.Codec>.value( + _FakeCodec_32( + this, + Invocation.method( + #instantiateImageCodecFromBuffer, + [buffer], + { + #cacheWidth: cacheWidth, + #cacheHeight: cacheHeight, + #allowUpscaling: allowUpscaling, + }, + ), + ), + ), + ) + as _i11.Future<_i6.Codec>); @override _i11.Future<_i6.Codec> instantiateImageCodecWithSize( @@ -2293,22 +2468,23 @@ 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>); + returnValue: _i11.Future<_i6.Codec>.value( + _FakeCodec_32( + this, + Invocation.method( + #instantiateImageCodecWithSize, + [buffer], + {#getTargetSize: getTargetSize}, + ), + ), + ), + ) + as _i11.Future<_i6.Codec>); @override void addSemanticsEnabledListener(_i6.VoidCallback? listener) => @@ -2325,13 +2501,15 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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_33( + this, + Invocation.method(#ensureSemantics, []), + ), + ) + as _i12.SemanticsHandle); @override void performSemanticsAction(_i6.SemanticsActionEvent? action) => @@ -2342,207 +2520,225 @@ class MockWidgetsFlutterBinding extends _i1.Mock @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_34( + 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: _FakePipelineOwner_26( + 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, ) => (super.noSuchMethod( - Invocation.method(#createViewConfigurationFor, [renderView]), - returnValue: _FakeViewConfiguration_35( - this, - Invocation.method(#createViewConfigurationFor, [renderView]), - ), - ) as _i10.ViewConfiguration); + Invocation.method(#createViewConfigurationFor, [renderView]), + returnValue: _FakeViewConfiguration_35( + 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_36( + 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_37( + 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_38( + 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_39( + 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?); + Invocation.method(#computePlatformResolvedLocale, [ + supportedLocales, + ]), + ) + as _i6.Locale?); } /// A class which mocks [SentryJsBinding]. @@ -2555,21 +2751,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]. @@ -2581,13 +2777,15 @@ 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_40( + this, + Invocation.getter(#options), + ), + ) + as _i2.SentryOptions); @override bool get isEnabled => @@ -2595,22 +2793,26 @@ class MockHub extends _i1.Mock implements _i2.Hub { 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_41(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( @@ -2620,22 +2822,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>); + 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( @@ -2645,22 +2848,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>); + 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( @@ -2672,20 +2876,6 @@ 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], @@ -2697,17 +2887,24 @@ class MockHub extends _i1.Mock implements _i2.Hub { #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); + 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<_i2.SentryId> captureFeedback( @@ -2716,49 +2913,55 @@ 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>); + 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_42(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) => @@ -2779,33 +2982,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( @@ -2819,36 +3023,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( @@ -2857,31 +3062,31 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext, #hint: hint}, - ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, Invocation.method( #captureTransaction, [transaction], {#traceContext: traceContext, #hint: hint}, ), - ), - ), - ) as _i11.Future<_i2.SentryId>); + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext, #hint: hint}, + ), + ), + ), + ) + 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 260d732543..beb822fd59 100644 --- a/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart +++ b/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart @@ -36,7 +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/hive/test/mocks/mocks.mocks.dart b/hive/test/mocks/mocks.mocks.dart index 208aa5a897..c972b7d196 100644 --- a/hive/test/mocks/mocks.mocks.dart +++ b/hive/test/mocks/mocks.mocks.dart @@ -9,19 +9,17 @@ import 'dart:typed_data' as _i9; import 'package:hive/hive.dart' as _i3; import 'package:hive/src/box/default_compaction_strategy.dart' as _i8; import 'package:hive/src/box/default_key_comparator.dart' as _i7; -import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i6; -import 'package:sentry/sentry.dart' as _i2; -import 'package:sentry/src/profiling.dart' as _i4; - -import 'package:hive/src/box_collection/box_collection_stub.dart' as stub; - // ignore: implementation_imports import 'package:hive/src/box_collection/box_collection_stub.dart' if (dart.library.html) 'package:hive/src/box_collection/box_collection_indexed_db.dart' if (dart.library.js_interop) 'package:hive/src/box_collection/box_collection_indexed_db.dart' if (dart.library.io) 'package:hive/src/box_collection/box_collection.dart' as impl; +import 'package:hive/src/box_collection/box_collection_stub.dart' as stub; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i6; +import 'package:sentry/sentry.dart' as _i2; +import 'package:sentry/src/profiling.dart' as _i4; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -207,14 +205,6 @@ class MockHub extends _i1.Mock implements _i2.Hub { ), ) as _i5.Future<_i2.SentryId>); - @override - _i5.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => - (super.noSuchMethod( - Invocation.method(#captureUserFeedback, [userFeedback]), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override _i5.Future<_i2.SentryId> captureFeedback( _i2.SentryFeedback? feedback, { diff --git a/isar/test/mocks/mocks.mocks.dart b/isar/test/mocks/mocks.mocks.dart index edaac640cb..dff400007e 100644 --- a/isar/test/mocks/mocks.mocks.dart +++ b/isar/test/mocks/mocks.mocks.dart @@ -2,7 +2,7 @@ // in sentry_isar/test/mocks/mocks.dart. // Do not manually edit this file. -// ignore_for_file: no_leading_underscores_for_library_prefixes, invalid_use_of_internal_member +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'dart:typed_data' as _i7; @@ -287,17 +287,6 @@ class MockHub extends _i1.Mock implements _i2.Hub { )), ) as _i3.Future<_i2.SentryId>); - @override - _i3.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => - (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override _i3.Future<_i2.SentryId> captureFeedback( _i2.SentryFeedback? feedback, { diff --git a/sqflite/test/mocks/mocks.mocks.dart b/sqflite/test/mocks/mocks.mocks.dart index fb9d00f5b2..de9eba17fb 100644 --- a/sqflite/test/mocks/mocks.mocks.dart +++ b/sqflite/test/mocks/mocks.mocks.dart @@ -32,151 +32,158 @@ import 'mocks.dart' as _i9; class _FakeSentrySpanContext_0 extends _i1.SmartFake implements _i2.SentrySpanContext { _FakeSentrySpanContext_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDateTime_1 extends _i1.SmartFake implements DateTime { _FakeDateTime_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeISentrySpan_2 extends _i1.SmartFake implements _i2.ISentrySpan { _FakeISentrySpan_2(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTraceHeader_3 extends _i1.SmartFake implements _i2.SentryTraceHeader { _FakeSentryTraceHeader_3(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDatabase_4 extends _i1.SmartFake implements _i3.Database { _FakeDatabase_4(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeFuture_5 extends _i1.SmartFake implements _i4.Future { _FakeFuture_5(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeQueryCursor_6 extends _i1.SmartFake implements _i3.QueryCursor { _FakeQueryCursor_6(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeBatch_7 extends _i1.SmartFake implements _i3.Batch { _FakeBatch_7(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryOptions_8 extends _i1.SmartFake implements _i2.SentryOptions { _FakeSentryOptions_8(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryId_9 extends _i1.SmartFake implements _i2.SentryId { _FakeSentryId_9(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeScope_10 extends _i1.SmartFake implements _i2.Scope { _FakeScope_10(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeHub_11 extends _i1.SmartFake implements _i2.Hub { _FakeHub_11(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } /// A class which mocks [SentryTracer]. /// /// See the documentation for Mockito's code generation for more information. -// ignore: invalid_use_of_internal_member class MockSentryTracer extends _i1.Mock implements _i5.SentryTracer { MockSentryTracer() { _i1.throwOnMissingStub(this); } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: _i6.dummyValue(this, Invocation.getter(#name)), - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i6.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, - ); + ) => super.noSuchMethod( + Invocation.setter(#transactionNameSource, _transactionNameSource), + returnValueForMissingStub: null, + ); @override - // ignore: invalid_use_of_internal_member set profiler(_i7.SentryProfiler? _profiler) => super.noSuchMethod( - Invocation.setter(#profiler, _profiler), - returnValueForMissingStub: null, - ); + Invocation.setter(#profiler, _profiler), + returnValueForMissingStub: null, + ); @override - // ignore: invalid_use_of_internal_member set profileInfo(_i7.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 => @@ -184,28 +191,32 @@ class MockSentryTracer extends _i1.Mock implements _i5.SentryTracer { 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 _i4.Future finish({ @@ -214,38 +225,39 @@ class MockSentryTracer extends _i1.Mock implements _i5.SentryTracer { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method(#finish, [], { - #status: status, - #endTimestamp: endTimestamp, - #hint: hint, - }), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + #hint: hint, + }), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.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, - ); + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override void setTag(String? key, String? value) => super.noSuchMethod( - Invocation.method(#setTag, [key, value]), - returnValueForMissingStub: null, - ); + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -254,20 +266,21 @@ class MockSentryTracer extends _i1.Mock implements _i5.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( @@ -277,58 +290,58 @@ class MockSentryTracer extends _i1.Mock implements _i5.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 [Batch]. @@ -350,29 +363,31 @@ class MockBatch extends _i1.Mock implements _i3.Batch { bool? continueOnError, }) => (super.noSuchMethod( - Invocation.method(#commit, [], { - #exclusive: exclusive, - #noResult: noResult, - #continueOnError: continueOnError, - }), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + Invocation.method(#commit, [], { + #exclusive: exclusive, + #noResult: noResult, + #continueOnError: continueOnError, + }), + returnValue: _i4.Future>.value([]), + ) + as _i4.Future>); @override _i4.Future> apply({bool? noResult, bool? continueOnError}) => (super.noSuchMethod( - Invocation.method(#apply, [], { - #noResult: noResult, - #continueOnError: continueOnError, - }), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + Invocation.method(#apply, [], { + #noResult: noResult, + #continueOnError: continueOnError, + }), + returnValue: _i4.Future>.value([]), + ) + as _i4.Future>); @override void rawInsert(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawInsert, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawInsert, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void insert( @@ -380,24 +395,20 @@ class MockBatch extends _i1.Mock implements _i3.Batch { Map? values, { String? nullColumnHack, _i8.ConflictAlgorithm? conflictAlgorithm, - }) => - super.noSuchMethod( - Invocation.method( - #insert, - [table, values], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #insert, + [table, values], + {#nullColumnHack: nullColumnHack, #conflictAlgorithm: conflictAlgorithm}, + ), + returnValueForMissingStub: null, + ); @override void rawUpdate(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawUpdate, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void update( @@ -406,25 +417,24 @@ class MockBatch extends _i1.Mock implements _i3.Batch { String? where, List? whereArgs, _i8.ConflictAlgorithm? conflictAlgorithm, - }) => - super.noSuchMethod( - Invocation.method( - #update, - [table, values], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValueForMissingStub: null, + ); @override void rawDelete(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawDelete, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawDelete, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void delete(String? table, {String? where, List? whereArgs}) => @@ -439,9 +449,9 @@ class MockBatch extends _i1.Mock implements _i3.Batch { @override void execute(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#execute, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#execute, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void query( @@ -455,31 +465,30 @@ class MockBatch extends _i1.Mock implements _i3.Batch { String? orderBy, int? limit, int? offset, - }) => - super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValueForMissingStub: null, + ); @override void rawQuery(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawQuery, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawQuery, [sql, arguments]), + returnValueForMissingStub: null, + ); } /// A class which mocks [Database]. @@ -491,10 +500,12 @@ class MockDatabase extends _i1.Mock implements _i3.Database { } @override - String get path => (super.noSuchMethod( - Invocation.getter(#path), - returnValue: _i6.dummyValue(this, Invocation.getter(#path)), - ) as String); + String get path => + (super.noSuchMethod( + Invocation.getter(#path), + returnValue: _i6.dummyValue(this, Invocation.getter(#path)), + ) + as String); @override bool get isOpen => @@ -502,17 +513,21 @@ class MockDatabase extends _i1.Mock implements _i3.Database { as bool); @override - _i3.Database get database => (super.noSuchMethod( - Invocation.getter(#database), - returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), - ) as _i3.Database); + _i3.Database get database => + (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), + ) + as _i3.Database); @override - _i4.Future close() => (super.noSuchMethod( - Invocation.method(#close, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future transaction( @@ -520,63 +535,69 @@ class MockDatabase extends _i1.Mock implements _i3.Database { bool? exclusive, }) => (super.noSuchMethod( - Invocation.method(#transaction, [action], {#exclusive: exclusive}), - returnValue: _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method( - #transaction, - [action], - {#exclusive: exclusive}, + Invocation.method(#transaction, [action], {#exclusive: exclusive}), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method( + #transaction, + [action], + {#exclusive: exclusive}, + ), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method( + #transaction, + [action], + {#exclusive: exclusive}, + ), ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method( - #transaction, - [action], - {#exclusive: exclusive}, - ), - ), - ) as _i4.Future); + ) + as _i4.Future); @override _i4.Future readTransaction( _i4.Future Function(_i3.Transaction)? action, ) => (super.noSuchMethod( - Invocation.method(#readTransaction, [action]), - returnValue: _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method(#readTransaction, [action]), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method(#readTransaction, [action]), - ), - ) as _i4.Future); + Invocation.method(#readTransaction, [action]), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#readTransaction, [action]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#readTransaction, [action]), + ), + ) + as _i4.Future); @override _i4.Future devInvokeMethod(String? method, [Object? arguments]) => (super.noSuchMethod( - Invocation.method(#devInvokeMethod, [method, arguments]), - returnValue: _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method(#devInvokeMethod, [method, arguments]), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method(#devInvokeMethod, [method, arguments]), - ), - ) as _i4.Future); + Invocation.method(#devInvokeMethod, [method, arguments]), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#devInvokeMethod, [method, arguments]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#devInvokeMethod, [method, arguments]), + ), + ) + as _i4.Future); @override _i4.Future devInvokeSqlMethod( @@ -585,42 +606,46 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? arguments, ]) => (super.noSuchMethod( - Invocation.method(#devInvokeSqlMethod, [method, sql, arguments]), - returnValue: _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method(#devInvokeSqlMethod, [ - method, - sql, - arguments, - ]), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method(#devInvokeSqlMethod, [ - method, - sql, - arguments, - ]), - ), - ) as _i4.Future); + Invocation.method(#devInvokeSqlMethod, [method, sql, arguments]), + returnValue: + _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#devInvokeSqlMethod, [ + method, + sql, + arguments, + ]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#devInvokeSqlMethod, [ + method, + sql, + arguments, + ]), + ), + ) + as _i4.Future); @override _i4.Future execute(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#execute, [sql, arguments]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#execute, [sql, arguments]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future rawInsert(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawInsert, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawInsert, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future insert( @@ -630,16 +655,17 @@ class MockDatabase extends _i1.Mock implements _i3.Database { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #insert, - [table, values], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #insert, + [table, values], + { + #nullColumnHack: nullColumnHack, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future>> query( @@ -655,25 +681,26 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? offset, }) => (super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValue: _i4.Future>>.value( - >[], - ), - ) as _i4.Future>>); + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); @override _i4.Future>> rawQuery( @@ -681,11 +708,12 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? arguments, ]) => (super.noSuchMethod( - Invocation.method(#rawQuery, [sql, arguments]), - returnValue: _i4.Future>>.value( - >[], - ), - ) as _i4.Future>>); + Invocation.method(#rawQuery, [sql, arguments]), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); @override _i4.Future<_i3.QueryCursor> rawQueryCursor( @@ -694,22 +722,23 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #rawQueryCursor, - [sql, arguments], - {#bufferSize: bufferSize}, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, Invocation.method( #rawQueryCursor, [sql, arguments], {#bufferSize: bufferSize}, ), - ), - ), - ) as _i4.Future<_i3.QueryCursor>); + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); @override _i4.Future<_i3.QueryCursor> queryCursor( @@ -726,25 +755,6 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, Invocation.method( #queryCursor, [table], @@ -761,16 +771,37 @@ class MockDatabase extends _i1.Mock implements _i3.Database { #bufferSize: bufferSize, }, ), - ), - ), - ) as _i4.Future<_i3.QueryCursor>); + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); @override _i4.Future rawUpdate(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawUpdate, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future update( @@ -781,24 +812,26 @@ class MockDatabase extends _i1.Mock implements _i3.Database { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #update, - [table, values], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future rawDelete(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawDelete, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawDelete, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future delete( @@ -807,19 +840,22 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? whereArgs, }) => (super.noSuchMethod( - Invocation.method( - #delete, - [table], - {#where: where, #whereArgs: whereArgs}, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #delete, + [table], + {#where: where, #whereArgs: whereArgs}, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override - _i3.Batch batch() => (super.noSuchMethod( - Invocation.method(#batch, []), - returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), - ) as _i3.Batch); + _i3.Batch batch() => + (super.noSuchMethod( + Invocation.method(#batch, []), + returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), + ) + as _i3.Batch); } /// A class which mocks [DatabaseExecutor]. @@ -831,25 +867,29 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { } @override - _i3.Database get database => (super.noSuchMethod( - Invocation.getter(#database), - returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), - ) as _i3.Database); + _i3.Database get database => + (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), + ) + as _i3.Database); @override _i4.Future execute(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#execute, [sql, arguments]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#execute, [sql, arguments]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future rawInsert(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawInsert, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawInsert, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future insert( @@ -859,16 +899,17 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #insert, - [table, values], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #insert, + [table, values], + { + #nullColumnHack: nullColumnHack, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future>> query( @@ -884,25 +925,26 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? offset, }) => (super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValue: _i4.Future>>.value( - >[], - ), - ) as _i4.Future>>); + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); @override _i4.Future>> rawQuery( @@ -910,11 +952,12 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { List? arguments, ]) => (super.noSuchMethod( - Invocation.method(#rawQuery, [sql, arguments]), - returnValue: _i4.Future>>.value( - >[], - ), - ) as _i4.Future>>); + Invocation.method(#rawQuery, [sql, arguments]), + returnValue: _i4.Future>>.value( + >[], + ), + ) + as _i4.Future>>); @override _i4.Future<_i3.QueryCursor> rawQueryCursor( @@ -923,22 +966,23 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #rawQueryCursor, - [sql, arguments], - {#bufferSize: bufferSize}, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, Invocation.method( #rawQueryCursor, [sql, arguments], {#bufferSize: bufferSize}, ), - ), - ), - ) as _i4.Future<_i3.QueryCursor>); + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); @override _i4.Future<_i3.QueryCursor> queryCursor( @@ -955,25 +999,6 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? bufferSize, }) => (super.noSuchMethod( - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, Invocation.method( #queryCursor, [table], @@ -990,16 +1015,37 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { #bufferSize: bufferSize, }, ), - ), - ), - ) as _i4.Future<_i3.QueryCursor>); + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + ), + ), + ) + as _i4.Future<_i3.QueryCursor>); @override _i4.Future rawUpdate(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawUpdate, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future update( @@ -1010,24 +1056,26 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #update, - [table, values], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future rawDelete(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawDelete, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method(#rawDelete, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override _i4.Future delete( @@ -1036,19 +1084,22 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { List? whereArgs, }) => (super.noSuchMethod( - Invocation.method( - #delete, - [table], - {#where: where, #whereArgs: whereArgs}, - ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + Invocation.method( + #delete, + [table], + {#where: where, #whereArgs: whereArgs}, + ), + returnValue: _i4.Future.value(0), + ) + as _i4.Future); @override - _i3.Batch batch() => (super.noSuchMethod( - Invocation.method(#batch, []), - returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), - ) as _i3.Batch); + _i3.Batch batch() => + (super.noSuchMethod( + Invocation.method(#batch, []), + returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), + ) + as _i3.Batch); } /// A class which mocks [Hub]. @@ -1060,13 +1111,15 @@ class MockHub extends _i1.Mock implements _i2.Hub { } @override - _i2.SentryOptions get options => (super.noSuchMethod( - Invocation.getter(#options), - returnValue: _FakeSentryOptions_8( - this, - Invocation.getter(#options), - ), - ) as _i2.SentryOptions); + _i2.SentryOptions get options => + (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeSentryOptions_8( + this, + Invocation.getter(#options), + ), + ) + as _i2.SentryOptions); @override bool get isEnabled => @@ -1074,23 +1127,26 @@ class MockHub extends _i1.Mock implements _i2.Hub { as bool); @override - _i2.SentryId get lastEventId => (super.noSuchMethod( - Invocation.getter(#lastEventId), - returnValue: _FakeSentryId_9(this, Invocation.getter(#lastEventId)), - ) as _i2.SentryId); + _i2.SentryId get lastEventId => + (super.noSuchMethod( + Invocation.getter(#lastEventId), + returnValue: _FakeSentryId_9(this, Invocation.getter(#lastEventId)), + ) + as _i2.SentryId); @override - _i2.Scope get scope => (super.noSuchMethod( - Invocation.getter(#scope), - returnValue: _FakeScope_10(this, Invocation.getter(#scope)), - ) as _i2.Scope); + _i2.Scope get scope => + (super.noSuchMethod( + Invocation.getter(#scope), + returnValue: _FakeScope_10(this, Invocation.getter(#scope)), + ) + as _i2.Scope); @override - // ignore: invalid_use_of_internal_member set profilerFactory(_i7.SentryProfilerFactory? value) => super.noSuchMethod( - Invocation.setter(#profilerFactory, value), - returnValueForMissingStub: null, - ); + Invocation.setter(#profilerFactory, value), + returnValueForMissingStub: null, + ); @override _i4.Future<_i2.SentryId> captureEvent( @@ -1100,22 +1156,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: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, Invocation.method( #captureEvent, [event], {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, ), - ), - ), - ) as _i4.Future<_i2.SentryId>); + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); @override _i4.Future<_i2.SentryId> captureException( @@ -1125,22 +1182,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: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, Invocation.method( #captureException, [throwable], {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, ), - ), - ), - ) as _i4.Future<_i2.SentryId>); + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); @override _i4.Future<_i2.SentryId> captureMessage( @@ -1152,20 +1210,6 @@ 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: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, Invocation.method( #captureMessage, [message], @@ -1177,17 +1221,24 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - ), - ), - ) as _i4.Future<_i2.SentryId>); - - @override - _i4.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => - (super.noSuchMethod( - Invocation.method(#captureUserFeedback, [userFeedback]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); @override _i4.Future<_i2.SentryId> captureFeedback( @@ -1196,49 +1247,55 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureFeedback, - [feedback], - {#hint: hint, #withScope: withScope}, - ), - returnValue: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, Invocation.method( #captureFeedback, [feedback], {#hint: hint, #withScope: withScope}, ), - ), - ), - ) as _i4.Future<_i2.SentryId>); + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i4.Future<_i2.SentryId>); @override _i4.Future addBreadcrumb(_i2.Breadcrumb? crumb, {_i2.Hint? hint}) => (super.noSuchMethod( - Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.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_11(this, Invocation.method(#clone, [])), - ) as _i2.Hub); + _i2.Hub clone() => + (super.noSuchMethod( + Invocation.method(#clone, []), + returnValue: _FakeHub_11(this, Invocation.method(#clone, [])), + ) + as _i2.Hub); @override - _i4.Future close() => (super.noSuchMethod( - Invocation.method(#close, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.FutureOr configureScope(_i2.ScopeCallback? callback) => @@ -1259,33 +1316,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: _i9.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: _i9.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( @@ -1299,36 +1357,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 _i4.Future<_i2.SentryId> captureTransaction( @@ -1337,31 +1396,31 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext, #hint: hint}, - ), - returnValue: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, Invocation.method( #captureTransaction, [transaction], {#traceContext: traceContext, #hint: hint}, ), - ), - ), - ) as _i4.Future<_i2.SentryId>); + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext, #hint: hint}, + ), + ), + ), + ) + as _i4.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, + ); } From 619c6a23f71a14014dfd2cb249e0ac2a3d5adb4d Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Mon, 17 Feb 2025 16:26:01 +0100 Subject: [PATCH 6/6] update --- dart/lib/src/sentry_item_type.dart | 1 - flutter/test/mocks.mocks.dart | 2909 ++++++++--------- .../sentry_screenshot_widget_test.mocks.dart | 7 +- isar/test/mocks/mocks.mocks.dart | 1 + sqflite/test/mocks/mocks.mocks.dart | 1388 ++++---- 5 files changed, 2007 insertions(+), 2299 deletions(-) diff --git a/dart/lib/src/sentry_item_type.dart b/dart/lib/src/sentry_item_type.dart index 18dbc8f4ad..d6bf2a31de 100644 --- a/dart/lib/src/sentry_item_type.dart +++ b/dart/lib/src/sentry_item_type.dart @@ -1,6 +1,5 @@ class SentryItemType { static const String event = 'event'; - static const String userFeedback = 'user_report'; static const String attachment = 'attachment'; static const String transaction = 'transaction'; static const String clientReport = 'client_report'; diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index 32ada07941..8fb3aebc18 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -47,152 +47,152 @@ import 'mocks.dart' as _i13; class _FakeSentrySpanContext_0 extends _i1.SmartFake implements _i2.SentrySpanContext { _FakeSentrySpanContext_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDateTime_1 extends _i1.SmartFake implements DateTime { _FakeDateTime_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeISentrySpan_2 extends _i1.SmartFake implements _i2.ISentrySpan { _FakeISentrySpan_2(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTraceHeader_3 extends _i1.SmartFake implements _i2.SentryTraceHeader { _FakeSentryTraceHeader_3(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTracer_4 extends _i1.SmartFake implements _i3.SentryTracer { _FakeSentryTracer_4(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryId_5 extends _i1.SmartFake implements _i2.SentryId { _FakeSentryId_5(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeContexts_6 extends _i1.SmartFake implements _i2.Contexts { _FakeContexts_6(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTransaction_7 extends _i1.SmartFake implements _i2.SentryTransaction { _FakeSentryTransaction_7(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeMethodCodec_8 extends _i1.SmartFake implements _i4.MethodCodec { _FakeMethodCodec_8(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeBinaryMessenger_9 extends _i1.SmartFake implements _i4.BinaryMessenger { _FakeBinaryMessenger_9(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeWidgetsBinding_10 extends _i1.SmartFake implements _i5.WidgetsBinding { _FakeWidgetsBinding_10(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSingletonFlutterWindow_11 extends _i1.SmartFake implements _i6.SingletonFlutterWindow { _FakeSingletonFlutterWindow_11(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePlatformDispatcher_12 extends _i1.SmartFake implements _i6.PlatformDispatcher { _FakePlatformDispatcher_12(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePointerRouter_13 extends _i1.SmartFake implements _i7.PointerRouter { _FakePointerRouter_13(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeGestureArenaManager_14 extends _i1.SmartFake implements _i7.GestureArenaManager { _FakeGestureArenaManager_14(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePointerSignalResolver_15 extends _i1.SmartFake implements _i7.PointerSignalResolver { _FakePointerSignalResolver_15(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDuration_16 extends _i1.SmartFake implements Duration { _FakeDuration_16(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSamplingClock_17 extends _i1.SmartFake implements _i7.SamplingClock { _FakeSamplingClock_17(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeValueNotifier_18 extends _i1.SmartFake implements _i8.ValueNotifier { _FakeValueNotifier_18(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeHardwareKeyboard_19 extends _i1.SmartFake implements _i4.HardwareKeyboard { _FakeHardwareKeyboard_19(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeKeyEventManager_20 extends _i1.SmartFake implements _i4.KeyEventManager { _FakeKeyEventManager_20(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeChannelBuffers_21 extends _i1.SmartFake implements _i6.ChannelBuffers { _FakeChannelBuffers_21(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeRestorationManager_22 extends _i1.SmartFake implements _i4.RestorationManager { _FakeRestorationManager_22(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeImageCache_23 extends _i1.SmartFake implements _i9.ImageCache { _FakeImageCache_23(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeListenable_24 extends _i1.SmartFake implements _i8.Listenable { _FakeListenable_24(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeAccessibilityFeatures_25 extends _i1.SmartFake implements _i6.AccessibilityFeatures { _FakeAccessibilityFeatures_25(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePipelineOwner_26 extends _i1.SmartFake implements _i10.PipelineOwner { _FakePipelineOwner_26(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -201,7 +201,7 @@ class _FakePipelineOwner_26 extends _i1.SmartFake class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { _FakeRenderView_27(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -210,18 +210,18 @@ class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { class _FakeMouseTracker_28 extends _i1.SmartFake implements _i10.MouseTracker { _FakeMouseTracker_28(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePlatformMenuDelegate_29 extends _i1.SmartFake implements _i9.PlatformMenuDelegate { _FakePlatformMenuDelegate_29(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeFocusManager_30 extends _i1.SmartFake implements _i9.FocusManager { _FakeFocusManager_30(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -230,51 +230,51 @@ class _FakeFocusManager_30 extends _i1.SmartFake implements _i9.FocusManager { class _FakeFuture_31 extends _i1.SmartFake implements _i11.Future { _FakeFuture_31(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeCodec_32 extends _i1.SmartFake implements _i6.Codec { _FakeCodec_32(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSemanticsHandle_33 extends _i1.SmartFake implements _i12.SemanticsHandle { _FakeSemanticsHandle_33(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSemanticsUpdateBuilder_34 extends _i1.SmartFake implements _i6.SemanticsUpdateBuilder { _FakeSemanticsUpdateBuilder_34(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeViewConfiguration_35 extends _i1.SmartFake implements _i10.ViewConfiguration { _FakeViewConfiguration_35(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSceneBuilder_36 extends _i1.SmartFake implements _i6.SceneBuilder { _FakeSceneBuilder_36(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakePictureRecorder_37 extends _i1.SmartFake implements _i6.PictureRecorder { _FakePictureRecorder_37(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeCanvas_38 extends _i1.SmartFake implements _i6.Canvas { _FakeCanvas_38(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeWidget_39 extends _i1.SmartFake implements _i9.Widget { _FakeWidget_39(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -283,17 +283,17 @@ class _FakeWidget_39 extends _i1.SmartFake implements _i9.Widget { class _FakeSentryOptions_40 extends _i1.SmartFake implements _i2.SentryOptions { _FakeSentryOptions_40(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeScope_41 extends _i1.SmartFake implements _i2.Scope { _FakeScope_41(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeHub_42 extends _i1.SmartFake implements _i2.Hub { _FakeHub_42(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } /// A class which mocks [Callbacks]. @@ -310,9 +310,8 @@ class MockCallbacks extends _i1.Mock implements _i13.Callbacks { dynamic arguments, ]) => (super.noSuchMethod( - Invocation.method(#methodCallHandler, [method, arguments]), - ) - as _i11.Future?); + Invocation.method(#methodCallHandler, [method, arguments]), + ) as _i11.Future?); } /// A class which mocks [Transport]. @@ -326,10 +325,9 @@ 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]. @@ -341,93 +339,83 @@ 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, - ); + ) => + 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 => @@ -435,32 +423,28 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { 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({ @@ -469,39 +453,38 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method(#finish, [], { - #status: status, - #endTimestamp: endTimestamp, - #hint: hint, - }), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) - as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + #hint: hint, + }), + 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, - ); + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override void setTag(String? key, String? value) => super.noSuchMethod( - Invocation.method(#setTag, [key, value]), - returnValueForMissingStub: null, - ); + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -510,21 +493,20 @@ 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( @@ -534,58 +516,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]. @@ -598,51 +580,43 @@ 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) => @@ -669,28 +643,22 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { 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({ @@ -724,71 +692,70 @@ 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, [], { - #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); + 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, [], { + #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]. @@ -805,46 +772,40 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { 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 => @@ -853,25 +814,21 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { @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({ @@ -880,39 +837,38 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method(#finish, [], { - #status: status, - #endTimestamp: endTimestamp, - #hint: hint, - }), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) - as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + #hint: hint, + }), + 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, - ); + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override void setTag(String? key, String? value) => super.noSuchMethod( - Invocation.method(#setTag, [key, value]), - returnValueForMissingStub: null, - ); + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -921,56 +877,52 @@ 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]. @@ -989,23 +941,22 @@ 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}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureEvent, - [event], - {#scope: scope, #stackTrace: stackTrace, #hint: hint}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureException( @@ -1015,23 +966,22 @@ 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}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureException, - [throwable], - {#stackTrace: stackTrace, #scope: scope, #hint: hint}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureMessage( @@ -1043,6 +993,20 @@ 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], @@ -1054,24 +1018,9 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { #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>); + ), + ), + ) as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureTransaction( @@ -1081,31 +1030,29 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( + Invocation.method( + #captureTransaction, + [transaction], + {#scope: scope, #traceContext: traceContext, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, Invocation.method( #captureTransaction, [transaction], {#scope: scope, #traceContext: traceContext, #hint: hint}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#scope: scope, #traceContext: traceContext, #hint: hint}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) 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<_i2.SentryId> captureFeedback( @@ -1114,29 +1061,28 @@ 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}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureFeedback, - [feedback], - {#scope: scope, #hint: hint}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) 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]. @@ -1148,42 +1094,35 @@ 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]) => (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( @@ -1191,10 +1130,9 @@ 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( @@ -1202,18 +1140,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, - ); + ) => + super.noSuchMethod( + Invocation.method(#setMethodCallHandler, [handler]), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryNativeBinding]. @@ -1226,28 +1164,22 @@ 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) => @@ -1260,19 +1192,17 @@ class MockSentryNativeBinding extends _i1.Mock bool? containsUnhandledException, ) => (super.noSuchMethod( - Invocation.method(#captureEnvelope, [ - envelopeData, - containsUnhandledException, - ]), - ) - as _i11.FutureOr); + Invocation.method(#captureEnvelope, [ + envelopeData, + containsUnhandledException, + ]), + ) as _i11.FutureOr); @override _i11.FutureOr captureStructuredEnvelope(_i2.SentryEnvelope? envelope) => (super.noSuchMethod( - Invocation.method(#captureStructuredEnvelope, [envelope]), - ) - as _i11.FutureOr); + Invocation.method(#captureStructuredEnvelope, [envelope]), + ) as _i11.FutureOr); @override _i11.FutureOr<_i18.NativeFrames?> endNativeFrames(_i2.SentryId? id) => @@ -1331,13 +1261,12 @@ class MockSentryNativeBinding extends _i1.Mock int? endTimeNs, ) => (super.noSuchMethod( - Invocation.method(#collectProfile, [ - traceId, - startTimeNs, - endTimeNs, - ]), - ) - as _i11.FutureOr?>); + Invocation.method(#collectProfile, [ + traceId, + startTimeNs, + endTimeNs, + ]), + ) as _i11.FutureOr?>); @override _i11.FutureOr?> loadDebugImages( @@ -1354,15 +1283,14 @@ class MockSentryNativeBinding extends _i1.Mock @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]), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method(#captureReplay, [isCrash]), - ), - ), - ) - as _i11.FutureOr<_i2.SentryId>); + ), + ), + ) as _i11.FutureOr<_i2.SentryId>); } /// A class which mocks [SentryDelayedFramesTracker]. @@ -1375,32 +1303,28 @@ 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({ @@ -1408,13 +1332,12 @@ 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) => @@ -1436,18 +1359,17 @@ class MockSentryDelayedFramesTracker extends _i1.Mock required DateTime? spanEndTimestamp, }) => (super.noSuchMethod( - Invocation.method(#getFrameMetrics, [], { - #spanStartTimestamp: spanStartTimestamp, - #spanEndTimestamp: spanEndTimestamp, - }), - ) - as _i20.SpanFrameMetrics?); + 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]. @@ -1459,15 +1381,13 @@ 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]. @@ -1480,26 +1400,22 @@ 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 => @@ -1507,91 +1423,77 @@ class MockWidgetsFlutterBinding extends _i1.Mock 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) => @@ -1601,36 +1503,28 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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 => @@ -1638,220 +1532,178 @@ class MockWidgetsFlutterBinding extends _i1.Mock 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: _FakePipelineOwner_26( + 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_27( + 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_28( + 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: _FakePipelineOwner_26( + 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_29( + this, + Invocation.getter(#platformMenuDelegate), + ), + ) as _i9.PlatformMenuDelegate); @override set platformMenuDelegate(_i9.PlatformMenuDelegate? _platformMenuDelegate) => @@ -1861,12 +1713,10 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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) => @@ -1879,165 +1729,148 @@ 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_30( + 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) => @@ -2051,48 +1884,51 @@ 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) => @@ -2105,31 +1941,33 @@ 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) => @@ -2140,9 +1978,9 @@ class MockWidgetsFlutterBinding extends _i1.Mock @override void resetInternalState() => super.noSuchMethod( - Invocation.method(#resetInternalState, []), - returnValueForMissingStub: null, - ); + Invocation.method(#resetInternalState, []), + returnValueForMissingStub: null, + ); @override void handleAppLifecycleStateChanged(_i6.AppLifecycleState? state) => @@ -2159,41 +1997,37 @@ 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}, + ), + returnValue: _i14.ifNotNull( + _i14.dummyValueOrNull( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, ), - ) - as _i11.Future); + ), + (T v) => _i11.Future.value(v), + ) ?? + _FakeFuture_31( + 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( @@ -2201,46 +2035,40 @@ 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) => @@ -2253,56 +2081,57 @@ class MockWidgetsFlutterBinding extends _i1.Mock void addPostFrameCallback( _i21.FrameCallback? callback, { String? debugLabel = 'callback', - }) => super.noSuchMethod( - Invocation.method( - #addPostFrameCallback, - [callback], - {#debugLabel: debugLabel}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #addPostFrameCallback, + [callback], + {#debugLabel: debugLabel}, + ), + returnValueForMissingStub: null, + ); @override void ensureFrameCallbacksRegistered() => super.noSuchMethod( - Invocation.method(#ensureFrameCallbacksRegistered, []), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureFrameCallbacksRegistered, []), + returnValueForMissingStub: null, + ); @override void ensureVisualUpdate() => super.noSuchMethod( - Invocation.method(#ensureVisualUpdate, []), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureVisualUpdate, []), + returnValueForMissingStub: null, + ); @override void scheduleFrame() => super.noSuchMethod( - Invocation.method(#scheduleFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleForcedFrame() => super.noSuchMethod( - Invocation.method(#scheduleForcedFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleForcedFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleWarmUpFrame() => super.noSuchMethod( - Invocation.method(#scheduleWarmUpFrame, []), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleWarmUpFrame, []), + returnValueForMissingStub: null, + ); @override void resetEpoch() => super.noSuchMethod( - Invocation.method(#resetEpoch, []), - returnValueForMissingStub: null, - ); + Invocation.method(#resetEpoch, []), + returnValueForMissingStub: null, + ); @override void handleBeginFrame(Duration? rawTimeStamp) => super.noSuchMethod( - Invocation.method(#handleBeginFrame, [rawTimeStamp]), - returnValueForMissingStub: null, - ); + Invocation.method(#handleBeginFrame, [rawTimeStamp]), + returnValueForMissingStub: null, + ); @override _i21.PerformanceModeRequestHandle? requestPerformanceMode( @@ -2313,69 +2142,65 @@ class MockWidgetsFlutterBinding extends _i1.Mock @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( @@ -2383,23 +2208,20 @@ 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) => @@ -2409,24 +2231,20 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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( @@ -2436,6 +2254,18 @@ 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], @@ -2445,22 +2275,9 @@ class MockWidgetsFlutterBinding extends _i1.Mock #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>); + ), + ), + ) as _i11.Future<_i6.Codec>); @override _i11.Future<_i6.Codec> instantiateImageCodecWithSize( @@ -2468,23 +2285,22 @@ 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}, ), - returnValue: _i11.Future<_i6.Codec>.value( - _FakeCodec_32( - this, - Invocation.method( - #instantiateImageCodecWithSize, - [buffer], - {#getTargetSize: getTargetSize}, - ), - ), - ), - ) - as _i11.Future<_i6.Codec>); + ), + ), + ) as _i11.Future<_i6.Codec>); @override void addSemanticsEnabledListener(_i6.VoidCallback? listener) => @@ -2501,15 +2317,13 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @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_33( + this, + Invocation.method(#ensureSemantics, []), + ), + ) as _i12.SemanticsHandle); @override void performSemanticsAction(_i6.SemanticsActionEvent? action) => @@ -2520,225 +2334,207 @@ class MockWidgetsFlutterBinding extends _i1.Mock @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_34( + 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: _FakePipelineOwner_26( + 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, ) => (super.noSuchMethod( - Invocation.method(#createViewConfigurationFor, [renderView]), - returnValue: _FakeViewConfiguration_35( - this, - Invocation.method(#createViewConfigurationFor, [renderView]), - ), - ) - as _i10.ViewConfiguration); + Invocation.method(#createViewConfigurationFor, [renderView]), + returnValue: _FakeViewConfiguration_35( + 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_36( + 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_37( + 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_38( + 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_39( + 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?); + Invocation.method(#computePlatformResolvedLocale, [ + supportedLocales, + ]), + ) as _i6.Locale?); } /// A class which mocks [SentryJsBinding]. @@ -2751,21 +2547,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]. @@ -2777,15 +2573,13 @@ 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_40( + this, + Invocation.getter(#options), + ), + ) as _i2.SentryOptions); @override bool get isEnabled => @@ -2793,26 +2587,22 @@ class MockHub extends _i1.Mock implements _i2.Hub { 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_41(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( @@ -2822,23 +2612,22 @@ 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}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureEvent, - [event], - {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureException( @@ -2848,23 +2637,22 @@ 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}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureException, - [throwable], - {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureMessage( @@ -2876,6 +2664,20 @@ 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], @@ -2887,24 +2689,9 @@ class MockHub extends _i1.Mock implements _i2.Hub { #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>); + ), + ), + ) as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureFeedback( @@ -2913,55 +2700,49 @@ 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}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureFeedback, - [feedback], - {#hint: hint, #withScope: withScope}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) 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_42(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) => @@ -2982,34 +2763,33 @@ 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( @@ -3023,37 +2803,36 @@ 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( @@ -3062,31 +2841,31 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.Hint? hint, }) => (super.noSuchMethod( + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, Invocation.method( #captureTransaction, [transaction], {#traceContext: traceContext, #hint: hint}, ), - returnValue: _i11.Future<_i2.SentryId>.value( - _FakeSentryId_5( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext, #hint: hint}, - ), - ), - ), - ) - as _i11.Future<_i2.SentryId>); + ), + ), + ) 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 beb822fd59..260d732543 100644 --- a/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart +++ b/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart @@ -36,8 +36,7 @@ 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/isar/test/mocks/mocks.mocks.dart b/isar/test/mocks/mocks.mocks.dart index dff400007e..0efd118833 100644 --- a/isar/test/mocks/mocks.mocks.dart +++ b/isar/test/mocks/mocks.mocks.dart @@ -24,6 +24,7 @@ import 'package:sentry/src/profiling.dart' as _i5; // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class +// ignore_for_file: invalid_use_of_internal_member class _FakeSentryOptions_0 extends _i1.SmartFake implements _i2.SentryOptions { _FakeSentryOptions_0( diff --git a/sqflite/test/mocks/mocks.mocks.dart b/sqflite/test/mocks/mocks.mocks.dart index de9eba17fb..a7a3118fcf 100644 --- a/sqflite/test/mocks/mocks.mocks.dart +++ b/sqflite/test/mocks/mocks.mocks.dart @@ -28,67 +28,68 @@ import 'mocks.dart' as _i9; // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class +// ignore_for_file: invalid_use_of_internal_member class _FakeSentrySpanContext_0 extends _i1.SmartFake implements _i2.SentrySpanContext { _FakeSentrySpanContext_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDateTime_1 extends _i1.SmartFake implements DateTime { _FakeDateTime_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeISentrySpan_2 extends _i1.SmartFake implements _i2.ISentrySpan { _FakeISentrySpan_2(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryTraceHeader_3 extends _i1.SmartFake implements _i2.SentryTraceHeader { _FakeSentryTraceHeader_3(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeDatabase_4 extends _i1.SmartFake implements _i3.Database { _FakeDatabase_4(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeFuture_5 extends _i1.SmartFake implements _i4.Future { _FakeFuture_5(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeQueryCursor_6 extends _i1.SmartFake implements _i3.QueryCursor { _FakeQueryCursor_6(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeBatch_7 extends _i1.SmartFake implements _i3.Batch { _FakeBatch_7(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryOptions_8 extends _i1.SmartFake implements _i2.SentryOptions { _FakeSentryOptions_8(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeSentryId_9 extends _i1.SmartFake implements _i2.SentryId { _FakeSentryId_9(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeScope_10 extends _i1.SmartFake implements _i2.Scope { _FakeScope_10(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } class _FakeHub_11 extends _i1.SmartFake implements _i2.Hub { _FakeHub_11(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + : super(parent, parentInvocation); } /// A class which mocks [SentryTracer]. @@ -100,90 +101,80 @@ class MockSentryTracer extends _i1.Mock implements _i5.SentryTracer { } @override - String get name => - (super.noSuchMethod( - Invocation.getter(#name), - returnValue: _i6.dummyValue(this, Invocation.getter(#name)), - ) - as String); + String get name => (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i6.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, - ); + ) => + super.noSuchMethod( + Invocation.setter(#transactionNameSource, _transactionNameSource), + returnValueForMissingStub: null, + ); @override set profiler(_i7.SentryProfiler? _profiler) => super.noSuchMethod( - Invocation.setter(#profiler, _profiler), - returnValueForMissingStub: null, - ); + Invocation.setter(#profiler, _profiler), + returnValueForMissingStub: null, + ); @override set profileInfo(_i7.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 => @@ -191,32 +182,28 @@ class MockSentryTracer extends _i1.Mock implements _i5.SentryTracer { 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 _i4.Future finish({ @@ -225,39 +212,38 @@ class MockSentryTracer extends _i1.Mock implements _i5.SentryTracer { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method(#finish, [], { - #status: status, - #endTimestamp: endTimestamp, - #hint: hint, - }), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + #hint: hint, + }), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.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, - ); + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override void setTag(String? key, String? value) => super.noSuchMethod( - Invocation.method(#setTag, [key, value]), - returnValueForMissingStub: null, - ); + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -266,21 +252,20 @@ class MockSentryTracer extends _i1.Mock implements _i5.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( @@ -290,58 +275,58 @@ class MockSentryTracer extends _i1.Mock implements _i5.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 [Batch]. @@ -363,31 +348,29 @@ class MockBatch extends _i1.Mock implements _i3.Batch { bool? continueOnError, }) => (super.noSuchMethod( - Invocation.method(#commit, [], { - #exclusive: exclusive, - #noResult: noResult, - #continueOnError: continueOnError, - }), - returnValue: _i4.Future>.value([]), - ) - as _i4.Future>); + Invocation.method(#commit, [], { + #exclusive: exclusive, + #noResult: noResult, + #continueOnError: continueOnError, + }), + returnValue: _i4.Future>.value([]), + ) as _i4.Future>); @override _i4.Future> apply({bool? noResult, bool? continueOnError}) => (super.noSuchMethod( - Invocation.method(#apply, [], { - #noResult: noResult, - #continueOnError: continueOnError, - }), - returnValue: _i4.Future>.value([]), - ) - as _i4.Future>); + Invocation.method(#apply, [], { + #noResult: noResult, + #continueOnError: continueOnError, + }), + returnValue: _i4.Future>.value([]), + ) as _i4.Future>); @override void rawInsert(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawInsert, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawInsert, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void insert( @@ -395,20 +378,24 @@ class MockBatch extends _i1.Mock implements _i3.Batch { Map? values, { String? nullColumnHack, _i8.ConflictAlgorithm? conflictAlgorithm, - }) => super.noSuchMethod( - Invocation.method( - #insert, - [table, values], - {#nullColumnHack: nullColumnHack, #conflictAlgorithm: conflictAlgorithm}, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #insert, + [table, values], + { + #nullColumnHack: nullColumnHack, + #conflictAlgorithm: conflictAlgorithm + }, + ), + returnValueForMissingStub: null, + ); @override void rawUpdate(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawUpdate, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void update( @@ -417,24 +404,25 @@ class MockBatch extends _i1.Mock implements _i3.Batch { String? where, List? whereArgs, _i8.ConflictAlgorithm? conflictAlgorithm, - }) => super.noSuchMethod( - Invocation.method( - #update, - [table, values], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValueForMissingStub: null, + ); @override void rawDelete(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawDelete, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawDelete, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void delete(String? table, {String? where, List? whereArgs}) => @@ -449,9 +437,9 @@ class MockBatch extends _i1.Mock implements _i3.Batch { @override void execute(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#execute, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#execute, [sql, arguments]), + returnValueForMissingStub: null, + ); @override void query( @@ -465,30 +453,31 @@ class MockBatch extends _i1.Mock implements _i3.Batch { String? orderBy, int? limit, int? offset, - }) => super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValueForMissingStub: null, - ); + }) => + super.noSuchMethod( + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValueForMissingStub: null, + ); @override void rawQuery(String? sql, [List? arguments]) => super.noSuchMethod( - Invocation.method(#rawQuery, [sql, arguments]), - returnValueForMissingStub: null, - ); + Invocation.method(#rawQuery, [sql, arguments]), + returnValueForMissingStub: null, + ); } /// A class which mocks [Database]. @@ -500,12 +489,10 @@ class MockDatabase extends _i1.Mock implements _i3.Database { } @override - String get path => - (super.noSuchMethod( - Invocation.getter(#path), - returnValue: _i6.dummyValue(this, Invocation.getter(#path)), - ) - as String); + String get path => (super.noSuchMethod( + Invocation.getter(#path), + returnValue: _i6.dummyValue(this, Invocation.getter(#path)), + ) as String); @override bool get isOpen => @@ -513,21 +500,17 @@ class MockDatabase extends _i1.Mock implements _i3.Database { as bool); @override - _i3.Database get database => - (super.noSuchMethod( - Invocation.getter(#database), - returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), - ) - as _i3.Database); + _i3.Database get database => (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), + ) as _i3.Database); @override - _i4.Future close() => - (super.noSuchMethod( - Invocation.method(#close, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future close() => (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override _i4.Future transaction( @@ -535,69 +518,63 @@ class MockDatabase extends _i1.Mock implements _i3.Database { bool? exclusive, }) => (super.noSuchMethod( - Invocation.method(#transaction, [action], {#exclusive: exclusive}), - returnValue: - _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method( - #transaction, - [action], - {#exclusive: exclusive}, - ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method( - #transaction, - [action], - {#exclusive: exclusive}, - ), + Invocation.method(#transaction, [action], {#exclusive: exclusive}), + returnValue: _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method( + #transaction, + [action], + {#exclusive: exclusive}, ), - ) - as _i4.Future); + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method( + #transaction, + [action], + {#exclusive: exclusive}, + ), + ), + ) as _i4.Future); @override _i4.Future readTransaction( _i4.Future Function(_i3.Transaction)? action, ) => (super.noSuchMethod( - Invocation.method(#readTransaction, [action]), - returnValue: - _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method(#readTransaction, [action]), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method(#readTransaction, [action]), - ), - ) - as _i4.Future); + Invocation.method(#readTransaction, [action]), + returnValue: _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#readTransaction, [action]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#readTransaction, [action]), + ), + ) as _i4.Future); @override _i4.Future devInvokeMethod(String? method, [Object? arguments]) => (super.noSuchMethod( - Invocation.method(#devInvokeMethod, [method, arguments]), - returnValue: - _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method(#devInvokeMethod, [method, arguments]), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method(#devInvokeMethod, [method, arguments]), - ), - ) - as _i4.Future); + Invocation.method(#devInvokeMethod, [method, arguments]), + returnValue: _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#devInvokeMethod, [method, arguments]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#devInvokeMethod, [method, arguments]), + ), + ) as _i4.Future); @override _i4.Future devInvokeSqlMethod( @@ -606,46 +583,42 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? arguments, ]) => (super.noSuchMethod( - Invocation.method(#devInvokeSqlMethod, [method, sql, arguments]), - returnValue: - _i6.ifNotNull( - _i6.dummyValueOrNull( - this, - Invocation.method(#devInvokeSqlMethod, [ - method, - sql, - arguments, - ]), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_5( - this, - Invocation.method(#devInvokeSqlMethod, [ - method, - sql, - arguments, - ]), - ), - ) - as _i4.Future); + Invocation.method(#devInvokeSqlMethod, [method, sql, arguments]), + returnValue: _i6.ifNotNull( + _i6.dummyValueOrNull( + this, + Invocation.method(#devInvokeSqlMethod, [ + method, + sql, + arguments, + ]), + ), + (T v) => _i4.Future.value(v), + ) ?? + _FakeFuture_5( + this, + Invocation.method(#devInvokeSqlMethod, [ + method, + sql, + arguments, + ]), + ), + ) as _i4.Future); @override _i4.Future execute(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#execute, [sql, arguments]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + Invocation.method(#execute, [sql, arguments]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override _i4.Future rawInsert(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawInsert, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method(#rawInsert, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future insert( @@ -655,17 +628,16 @@ class MockDatabase extends _i1.Mock implements _i3.Database { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #insert, - [table, values], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method( + #insert, + [table, values], + { + #nullColumnHack: nullColumnHack, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future>> query( @@ -681,26 +653,25 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? offset, }) => (super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValue: _i4.Future>>.value( - >[], - ), - ) - as _i4.Future>>); + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValue: _i4.Future>>.value( + >[], + ), + ) as _i4.Future>>); @override _i4.Future>> rawQuery( @@ -708,12 +679,11 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? arguments, ]) => (super.noSuchMethod( - Invocation.method(#rawQuery, [sql, arguments]), - returnValue: _i4.Future>>.value( - >[], - ), - ) - as _i4.Future>>); + Invocation.method(#rawQuery, [sql, arguments]), + returnValue: _i4.Future>>.value( + >[], + ), + ) as _i4.Future>>); @override _i4.Future<_i3.QueryCursor> rawQueryCursor( @@ -722,23 +692,22 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? bufferSize, }) => (super.noSuchMethod( + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, Invocation.method( #rawQueryCursor, [sql, arguments], {#bufferSize: bufferSize}, ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, - Invocation.method( - #rawQueryCursor, - [sql, arguments], - {#bufferSize: bufferSize}, - ), - ), - ), - ) - as _i4.Future<_i3.QueryCursor>); + ), + ), + ) as _i4.Future<_i3.QueryCursor>); @override _i4.Future<_i3.QueryCursor> queryCursor( @@ -755,6 +724,25 @@ class MockDatabase extends _i1.Mock implements _i3.Database { int? bufferSize, }) => (super.noSuchMethod( + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, Invocation.method( #queryCursor, [table], @@ -771,37 +759,16 @@ class MockDatabase extends _i1.Mock implements _i3.Database { #bufferSize: bufferSize, }, ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - ), - ), - ) - as _i4.Future<_i3.QueryCursor>); + ), + ), + ) as _i4.Future<_i3.QueryCursor>); @override _i4.Future rawUpdate(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawUpdate, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future update( @@ -812,26 +779,24 @@ class MockDatabase extends _i1.Mock implements _i3.Database { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #update, - [table, values], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future rawDelete(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawDelete, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method(#rawDelete, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future delete( @@ -840,22 +805,19 @@ class MockDatabase extends _i1.Mock implements _i3.Database { List? whereArgs, }) => (super.noSuchMethod( - Invocation.method( - #delete, - [table], - {#where: where, #whereArgs: whereArgs}, - ), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method( + #delete, + [table], + {#where: where, #whereArgs: whereArgs}, + ), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override - _i3.Batch batch() => - (super.noSuchMethod( - Invocation.method(#batch, []), - returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), - ) - as _i3.Batch); + _i3.Batch batch() => (super.noSuchMethod( + Invocation.method(#batch, []), + returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), + ) as _i3.Batch); } /// A class which mocks [DatabaseExecutor]. @@ -867,29 +829,25 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { } @override - _i3.Database get database => - (super.noSuchMethod( - Invocation.getter(#database), - returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), - ) - as _i3.Database); + _i3.Database get database => (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeDatabase_4(this, Invocation.getter(#database)), + ) as _i3.Database); @override _i4.Future execute(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#execute, [sql, arguments]), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + Invocation.method(#execute, [sql, arguments]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override _i4.Future rawInsert(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawInsert, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method(#rawInsert, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future insert( @@ -899,17 +857,16 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #insert, - [table, values], - { - #nullColumnHack: nullColumnHack, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method( + #insert, + [table, values], + { + #nullColumnHack: nullColumnHack, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future>> query( @@ -925,26 +882,25 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? offset, }) => (super.noSuchMethod( - Invocation.method( - #query, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - }, - ), - returnValue: _i4.Future>>.value( - >[], - ), - ) - as _i4.Future>>); + Invocation.method( + #query, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + }, + ), + returnValue: _i4.Future>>.value( + >[], + ), + ) as _i4.Future>>); @override _i4.Future>> rawQuery( @@ -952,12 +908,11 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { List? arguments, ]) => (super.noSuchMethod( - Invocation.method(#rawQuery, [sql, arguments]), - returnValue: _i4.Future>>.value( - >[], - ), - ) - as _i4.Future>>); + Invocation.method(#rawQuery, [sql, arguments]), + returnValue: _i4.Future>>.value( + >[], + ), + ) as _i4.Future>>); @override _i4.Future<_i3.QueryCursor> rawQueryCursor( @@ -966,23 +921,22 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? bufferSize, }) => (super.noSuchMethod( + Invocation.method( + #rawQueryCursor, + [sql, arguments], + {#bufferSize: bufferSize}, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, Invocation.method( #rawQueryCursor, [sql, arguments], {#bufferSize: bufferSize}, ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, - Invocation.method( - #rawQueryCursor, - [sql, arguments], - {#bufferSize: bufferSize}, - ), - ), - ), - ) - as _i4.Future<_i3.QueryCursor>); + ), + ), + ) as _i4.Future<_i3.QueryCursor>); @override _i4.Future<_i3.QueryCursor> queryCursor( @@ -999,6 +953,25 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { int? bufferSize, }) => (super.noSuchMethod( + Invocation.method( + #queryCursor, + [table], + { + #distinct: distinct, + #columns: columns, + #where: where, + #whereArgs: whereArgs, + #groupBy: groupBy, + #having: having, + #orderBy: orderBy, + #limit: limit, + #offset: offset, + #bufferSize: bufferSize, + }, + ), + returnValue: _i4.Future<_i3.QueryCursor>.value( + _FakeQueryCursor_6( + this, Invocation.method( #queryCursor, [table], @@ -1015,37 +988,16 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { #bufferSize: bufferSize, }, ), - returnValue: _i4.Future<_i3.QueryCursor>.value( - _FakeQueryCursor_6( - this, - Invocation.method( - #queryCursor, - [table], - { - #distinct: distinct, - #columns: columns, - #where: where, - #whereArgs: whereArgs, - #groupBy: groupBy, - #having: having, - #orderBy: orderBy, - #limit: limit, - #offset: offset, - #bufferSize: bufferSize, - }, - ), - ), - ), - ) - as _i4.Future<_i3.QueryCursor>); + ), + ), + ) as _i4.Future<_i3.QueryCursor>); @override _i4.Future rawUpdate(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawUpdate, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method(#rawUpdate, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future update( @@ -1056,26 +1008,24 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { _i8.ConflictAlgorithm? conflictAlgorithm, }) => (super.noSuchMethod( - Invocation.method( - #update, - [table, values], - { - #where: where, - #whereArgs: whereArgs, - #conflictAlgorithm: conflictAlgorithm, - }, - ), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method( + #update, + [table, values], + { + #where: where, + #whereArgs: whereArgs, + #conflictAlgorithm: conflictAlgorithm, + }, + ), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future rawDelete(String? sql, [List? arguments]) => (super.noSuchMethod( - Invocation.method(#rawDelete, [sql, arguments]), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method(#rawDelete, [sql, arguments]), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override _i4.Future delete( @@ -1084,22 +1034,19 @@ class MockDatabaseExecutor extends _i1.Mock implements _i3.DatabaseExecutor { List? whereArgs, }) => (super.noSuchMethod( - Invocation.method( - #delete, - [table], - {#where: where, #whereArgs: whereArgs}, - ), - returnValue: _i4.Future.value(0), - ) - as _i4.Future); + Invocation.method( + #delete, + [table], + {#where: where, #whereArgs: whereArgs}, + ), + returnValue: _i4.Future.value(0), + ) as _i4.Future); @override - _i3.Batch batch() => - (super.noSuchMethod( - Invocation.method(#batch, []), - returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), - ) - as _i3.Batch); + _i3.Batch batch() => (super.noSuchMethod( + Invocation.method(#batch, []), + returnValue: _FakeBatch_7(this, Invocation.method(#batch, [])), + ) as _i3.Batch); } /// A class which mocks [Hub]. @@ -1111,15 +1058,13 @@ class MockHub extends _i1.Mock implements _i2.Hub { } @override - _i2.SentryOptions get options => - (super.noSuchMethod( - Invocation.getter(#options), - returnValue: _FakeSentryOptions_8( - this, - Invocation.getter(#options), - ), - ) - as _i2.SentryOptions); + _i2.SentryOptions get options => (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeSentryOptions_8( + this, + Invocation.getter(#options), + ), + ) as _i2.SentryOptions); @override bool get isEnabled => @@ -1127,26 +1072,22 @@ class MockHub extends _i1.Mock implements _i2.Hub { as bool); @override - _i2.SentryId get lastEventId => - (super.noSuchMethod( - Invocation.getter(#lastEventId), - returnValue: _FakeSentryId_9(this, Invocation.getter(#lastEventId)), - ) - as _i2.SentryId); + _i2.SentryId get lastEventId => (super.noSuchMethod( + Invocation.getter(#lastEventId), + returnValue: _FakeSentryId_9(this, Invocation.getter(#lastEventId)), + ) as _i2.SentryId); @override - _i2.Scope get scope => - (super.noSuchMethod( - Invocation.getter(#scope), - returnValue: _FakeScope_10(this, Invocation.getter(#scope)), - ) - as _i2.Scope); + _i2.Scope get scope => (super.noSuchMethod( + Invocation.getter(#scope), + returnValue: _FakeScope_10(this, Invocation.getter(#scope)), + ) as _i2.Scope); @override set profilerFactory(_i7.SentryProfilerFactory? value) => super.noSuchMethod( - Invocation.setter(#profilerFactory, value), - returnValueForMissingStub: null, - ); + Invocation.setter(#profilerFactory, value), + returnValueForMissingStub: null, + ); @override _i4.Future<_i2.SentryId> captureEvent( @@ -1156,23 +1097,22 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, Invocation.method( #captureEvent, [event], {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, ), - returnValue: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, - Invocation.method( - #captureEvent, - [event], - {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, - ), - ), - ), - ) - as _i4.Future<_i2.SentryId>); + ), + ), + ) as _i4.Future<_i2.SentryId>); @override _i4.Future<_i2.SentryId> captureException( @@ -1182,23 +1122,22 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, Invocation.method( #captureException, [throwable], {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, ), - returnValue: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, - Invocation.method( - #captureException, - [throwable], - {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, - ), - ), - ), - ) - as _i4.Future<_i2.SentryId>); + ), + ), + ) as _i4.Future<_i2.SentryId>); @override _i4.Future<_i2.SentryId> captureMessage( @@ -1210,6 +1149,20 @@ 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: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, Invocation.method( #captureMessage, [message], @@ -1221,24 +1174,9 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - returnValue: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - ), - ), - ) - as _i4.Future<_i2.SentryId>); + ), + ), + ) as _i4.Future<_i2.SentryId>); @override _i4.Future<_i2.SentryId> captureFeedback( @@ -1247,55 +1185,49 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, Invocation.method( #captureFeedback, [feedback], {#hint: hint, #withScope: withScope}, ), - returnValue: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, - Invocation.method( - #captureFeedback, - [feedback], - {#hint: hint, #withScope: withScope}, - ), - ), - ), - ) - as _i4.Future<_i2.SentryId>); + ), + ), + ) as _i4.Future<_i2.SentryId>); @override _i4.Future addBreadcrumb(_i2.Breadcrumb? crumb, {_i2.Hint? hint}) => (super.noSuchMethod( - Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.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_11(this, Invocation.method(#clone, [])), - ) - as _i2.Hub); + _i2.Hub clone() => (super.noSuchMethod( + Invocation.method(#clone, []), + returnValue: _FakeHub_11(this, Invocation.method(#clone, [])), + ) as _i2.Hub); @override - _i4.Future close() => - (super.noSuchMethod( - Invocation.method(#close, []), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) - as _i4.Future); + _i4.Future close() => (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override _i4.FutureOr configureScope(_i2.ScopeCallback? callback) => @@ -1316,34 +1248,33 @@ 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: _i9.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: _i9.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( @@ -1357,37 +1288,36 @@ 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 _i4.Future<_i2.SentryId> captureTransaction( @@ -1396,31 +1326,31 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.Hint? hint, }) => (super.noSuchMethod( + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext, #hint: hint}, + ), + returnValue: _i4.Future<_i2.SentryId>.value( + _FakeSentryId_9( + this, Invocation.method( #captureTransaction, [transaction], {#traceContext: traceContext, #hint: hint}, ), - returnValue: _i4.Future<_i2.SentryId>.value( - _FakeSentryId_9( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext, #hint: hint}, - ), - ), - ), - ) - as _i4.Future<_i2.SentryId>); + ), + ), + ) as _i4.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, + ); }