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, + ); }