From 9f68245c651aea668a95fed4ae90b7c93312a56c Mon Sep 17 00:00:00 2001 From: Miguel Belotto <belottomiguel.00@gmail.com> Date: Tue, 8 Apr 2025 21:22:38 -0300 Subject: [PATCH 1/2] fix: integrations --- packages/core/lib/analytics.dart | 14 +++++++++++--- packages/core/lib/event.dart | 25 ++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/packages/core/lib/analytics.dart b/packages/core/lib/analytics.dart index cff34c9..a4855de 100644 --- a/packages/core/lib/analytics.dart +++ b/packages/core/lib/analytics.dart @@ -71,7 +71,7 @@ class Analytics with ClientMethods { addPlugin(segmentDestination); } - if(config.token != null) { + if (config.token != null) { _platformPlugins.add(InjectToken(config.token!)); } @@ -212,12 +212,20 @@ class Analytics with ClientMethods { @override Future track(String event, {Map<String, dynamic>? properties}) async { - await _process(TrackEvent(event, properties: properties ?? {})); + await _process(TrackEvent( + event, + properties: properties ?? {}, + integrations: _state.integrations.state, + )); } @override Future screen(String name, {Map<String, dynamic>? properties}) async { - final event = ScreenEvent(name, properties: properties ?? {}); + final event = ScreenEvent( + name, + properties: properties ?? {}, + integrations: _state.integrations.state, + ); await _process(event); } diff --git a/packages/core/lib/event.dart b/packages/core/lib/event.dart index a94cf47..9a249c0 100644 --- a/packages/core/lib/event.dart +++ b/packages/core/lib/event.dart @@ -55,7 +55,12 @@ abstract class RawEvent with JSONSerialisable { @JsonKey(name: "_metadata") DestinationMetadata? metadata; - RawEvent(this.type, {this.anonymousId, this.userId}); + RawEvent( + this.type, { + this.anonymousId, + this.userId, + this.integrations, + }); } @JsonSerializable(explicitToJson: true) @@ -79,7 +84,14 @@ class TrackEvent extends RawEvent { String event; Map<String, dynamic>? properties; - TrackEvent(this.event, {this.properties}) : super(EventType.track); + TrackEvent( + this.event, { + this.properties, + Map<String, dynamic>? integrations, + }) : super( + EventType.track, + integrations: integrations, + ); factory TrackEvent.fromJson(Map<String, dynamic> json) => _$TrackEventFromJson(json); @@ -131,7 +143,14 @@ class ScreenEvent extends RawEvent { String name; Map<String, dynamic>? properties; - ScreenEvent(this.name, {this.properties}) : super(EventType.screen); + ScreenEvent( + this.name, { + this.properties, + Map<String, dynamic>? integrations, + }) : super( + EventType.screen, + integrations: integrations, + ); factory ScreenEvent.fromJson(Map<String, dynamic> json) => _$ScreenEventFromJson(json); From afb23abb98bfa0db500bb459275ff741ff938f80 Mon Sep 17 00:00:00 2001 From: Miguel Belotto <belottomiguel.00@gmail.com> Date: Tue, 8 Apr 2025 21:30:49 -0300 Subject: [PATCH 2/2] fix: generated models --- packages/core/lib/event.g.dart | 243 +- packages/core/lib/state.g.dart | 156 +- packages/core/test/mocks/mocks.mocks.dart | 3381 +++++++++------------ 3 files changed, 1631 insertions(+), 2149 deletions(-) diff --git a/packages/core/lib/event.g.dart b/packages/core/lib/event.g.dart index 63c67ad..b27db80 100644 --- a/packages/core/lib/event.g.dart +++ b/packages/core/lib/event.g.dart @@ -33,6 +33,7 @@ Map<String, dynamic> _$DestinationMetadataToJson( TrackEvent _$TrackEventFromJson(Map<String, dynamic> json) => TrackEvent( json['event'] as String, properties: json['properties'] as Map<String, dynamic>?, + integrations: json['integrations'] as Map<String, dynamic>?, ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? @@ -41,7 +42,6 @@ TrackEvent _$TrackEventFromJson(Map<String, dynamic> json) => TrackEvent( ..context = json['context'] == null ? null : Context.fromJson(json['context'] as Map<String, dynamic>) - ..integrations = json['integrations'] as Map<String, dynamic>? ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( @@ -154,6 +154,7 @@ Map<String, dynamic> _$AliasEventToJson(AliasEvent instance) => ScreenEvent _$ScreenEventFromJson(Map<String, dynamic> json) => ScreenEvent( json['name'] as String, properties: json['properties'] as Map<String, dynamic>?, + integrations: json['integrations'] as Map<String, dynamic>?, ) ..anonymousId = json['anonymousId'] as String? ..messageId = json['messageId'] as String? @@ -162,7 +163,6 @@ ScreenEvent _$ScreenEventFromJson(Map<String, dynamic> json) => ScreenEvent( ..context = json['context'] == null ? null : Context.fromJson(json['context'] as Map<String, dynamic>) - ..integrations = json['integrations'] as Map<String, dynamic>? ..metadata = json['_metadata'] == null ? null : DestinationMetadata.fromJson( @@ -206,36 +206,27 @@ UserTraits _$UserTraitsFromJson(Map<String, dynamic> json) => UserTraits( custom: json['custom'] as Map<String, dynamic>?, ); -Map<String, dynamic> _$UserTraitsToJson(UserTraits instance) { - final val = <String, dynamic>{ - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('address', instance.address?.toJson()); - writeNotNull('company', instance.company?.toJson()); - writeNotNull('age', instance.age); - writeNotNull('avatar', instance.avatar); - writeNotNull('birthday', instance.birthday); - writeNotNull('createdAt', instance.createdAt); - writeNotNull('description', instance.description); - writeNotNull('email', instance.email); - writeNotNull('firstName', instance.firstName); - writeNotNull('gender', instance.gender); - writeNotNull('id', instance.id); - writeNotNull('lastName', instance.lastName); - writeNotNull('name', instance.name); - writeNotNull('phone', instance.phone); - writeNotNull('title', instance.title); - writeNotNull('username', instance.username); - writeNotNull('website', instance.website); - return val; -} +Map<String, dynamic> _$UserTraitsToJson(UserTraits instance) => + <String, dynamic>{ + 'custom': instance.custom, + if (instance.address?.toJson() case final value?) 'address': value, + if (instance.company?.toJson() case final value?) 'company': value, + if (instance.age case final value?) 'age': value, + if (instance.avatar case final value?) 'avatar': value, + if (instance.birthday case final value?) 'birthday': value, + if (instance.createdAt case final value?) 'createdAt': value, + if (instance.description case final value?) 'description': value, + if (instance.email case final value?) 'email': value, + if (instance.firstName case final value?) 'firstName': value, + if (instance.gender case final value?) 'gender': value, + if (instance.id case final value?) 'id': value, + if (instance.lastName case final value?) 'lastName': value, + if (instance.name case final value?) 'name': value, + if (instance.phone case final value?) 'phone': value, + if (instance.title case final value?) 'title': value, + if (instance.username case final value?) 'username': value, + if (instance.website case final value?) 'website': value, + }; GroupTraits _$GroupTraitsFromJson(Map<String, dynamic> json) => GroupTraits( address: json['address'] == null @@ -255,31 +246,22 @@ GroupTraits _$GroupTraitsFromJson(Map<String, dynamic> json) => GroupTraits( custom: json['custom'] as Map<String, dynamic>?, ); -Map<String, dynamic> _$GroupTraitsToJson(GroupTraits instance) { - final val = <String, dynamic>{ - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('address', instance.address?.toJson()); - writeNotNull('avatar', instance.avatar); - writeNotNull('createdAt', instance.createdAt); - writeNotNull('description', instance.description); - writeNotNull('email', instance.email); - writeNotNull('employees', instance.employees); - writeNotNull('id', instance.id); - writeNotNull('industry', instance.industry); - writeNotNull('name', instance.name); - writeNotNull('phone', instance.phone); - writeNotNull('website', instance.website); - writeNotNull('plan', instance.plan); - return val; -} +Map<String, dynamic> _$GroupTraitsToJson(GroupTraits instance) => + <String, dynamic>{ + 'custom': instance.custom, + if (instance.address?.toJson() case final value?) 'address': value, + if (instance.avatar case final value?) 'avatar': value, + if (instance.createdAt case final value?) 'createdAt': value, + if (instance.description case final value?) 'description': value, + if (instance.email case final value?) 'email': value, + if (instance.employees case final value?) 'employees': value, + if (instance.id case final value?) 'id': value, + if (instance.industry case final value?) 'industry': value, + if (instance.name case final value?) 'name': value, + if (instance.phone case final value?) 'phone': value, + if (instance.website case final value?) 'website': value, + if (instance.plan case final value?) 'plan': value, + }; Address _$AddressFromJson(Map<String, dynamic> json) => Address( city: json['city'] as String?, @@ -290,24 +272,14 @@ Address _$AddressFromJson(Map<String, dynamic> json) => Address( custom: json['custom'] as Map<String, dynamic>?, ); -Map<String, dynamic> _$AddressToJson(Address instance) { - final val = <String, dynamic>{ - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('city', instance.city); - writeNotNull('country', instance.country); - writeNotNull('postalCode', instance.postalCode); - writeNotNull('state', instance.state); - writeNotNull('street', instance.street); - return val; -} +Map<String, dynamic> _$AddressToJson(Address instance) => <String, dynamic>{ + 'custom': instance.custom, + if (instance.city case final value?) 'city': value, + if (instance.country case final value?) 'country': value, + if (instance.postalCode case final value?) 'postalCode': value, + if (instance.state case final value?) 'state': value, + if (instance.street case final value?) 'street': value, + }; Company _$CompanyFromJson(Map<String, dynamic> json) => Company( employeeCount: (json['employeeCount'] as num?)?.toInt(), @@ -318,24 +290,14 @@ Company _$CompanyFromJson(Map<String, dynamic> json) => Company( custom: json['custom'] as Map<String, dynamic>?, ); -Map<String, dynamic> _$CompanyToJson(Company instance) { - final val = <String, dynamic>{ - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('name', instance.name); - writeNotNull('id', instance.id); - writeNotNull('industry', instance.industry); - writeNotNull('employeeCount', instance.employeeCount); - writeNotNull('plan', instance.plan); - return val; -} +Map<String, dynamic> _$CompanyToJson(Company instance) => <String, dynamic>{ + 'custom': instance.custom, + if (instance.name case final value?) 'name': value, + if (instance.id case final value?) 'id': value, + if (instance.industry case final value?) 'industry': value, + if (instance.employeeCount case final value?) 'employeeCount': value, + if (instance.plan case final value?) 'plan': value, + }; Context _$ContextFromJson(Map<String, dynamic> json) => Context( ContextApp.fromJson(json['app'] as Map<String, dynamic>), @@ -351,29 +313,19 @@ Context _$ContextFromJson(Map<String, dynamic> json) => Context( custom: json['custom'] as Map<String, dynamic>?, ); -Map<String, dynamic> _$ContextToJson(Context instance) { - final val = <String, dynamic>{ - 'custom': instance.custom, - 'app': instance.app.toJson(), - 'device': instance.device.toJson(), - 'library': instance.library.toJson(), - 'locale': instance.locale, - 'network': instance.network.toJson(), - 'os': instance.os.toJson(), - 'screen': instance.screen.toJson(), - 'timezone': instance.timezone, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('instanceId', instance.instanceId); - val['traits'] = instance.traits.toJson(); - return val; -} +Map<String, dynamic> _$ContextToJson(Context instance) => <String, dynamic>{ + 'custom': instance.custom, + 'app': instance.app.toJson(), + 'device': instance.device.toJson(), + 'library': instance.library.toJson(), + 'locale': instance.locale, + 'network': instance.network.toJson(), + 'os': instance.os.toJson(), + 'screen': instance.screen.toJson(), + 'timezone': instance.timezone, + if (instance.instanceId case final value?) 'instanceId': value, + 'traits': instance.traits.toJson(), + }; ContextApp _$ContextAppFromJson(Map<String, dynamic> json) => ContextApp( json['build'] as String, @@ -406,28 +358,20 @@ ContextDevice _$ContextDeviceFromJson(Map<String, dynamic> json) => custom: json['custom'] as Map<String, dynamic>?, ); -Map<String, dynamic> _$ContextDeviceToJson(ContextDevice instance) { - final val = <String, dynamic>{ - 'custom': instance.custom, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('id', instance.id); - val['manufacturer'] = instance.manufacturer; - val['model'] = instance.model; - val['name'] = instance.name; - val['type'] = instance.type; - writeNotNull('adTrackingEnabled', instance.adTrackingEnabled); - writeNotNull('advertisingId', instance.advertisingId); - writeNotNull('trackingStatus', instance.trackingStatus); - writeNotNull('token', instance.token); - return val; -} +Map<String, dynamic> _$ContextDeviceToJson(ContextDevice instance) => + <String, dynamic>{ + 'custom': instance.custom, + if (instance.id case final value?) 'id': value, + 'manufacturer': instance.manufacturer, + 'model': instance.model, + 'name': instance.name, + 'type': instance.type, + if (instance.adTrackingEnabled case final value?) + 'adTrackingEnabled': value, + if (instance.advertisingId case final value?) 'advertisingId': value, + if (instance.trackingStatus case final value?) 'trackingStatus': value, + if (instance.token case final value?) 'token': value, + }; ContextLibrary _$ContextLibraryFromJson(Map<String, dynamic> json) => ContextLibrary( @@ -479,19 +423,10 @@ ContextScreen _$ContextScreenFromJson(Map<String, dynamic> json) => custom: json['custom'] as Map<String, dynamic>?, ); -Map<String, dynamic> _$ContextScreenToJson(ContextScreen instance) { - final val = <String, dynamic>{ - 'custom': instance.custom, - 'height': instance.height, - 'width': instance.width, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('density', instance.density); - return val; -} +Map<String, dynamic> _$ContextScreenToJson(ContextScreen instance) => + <String, dynamic>{ + 'custom': instance.custom, + 'height': instance.height, + 'width': instance.width, + if (instance.density case final value?) 'density': value, + }; diff --git a/packages/core/lib/state.g.dart b/packages/core/lib/state.g.dart index bb848e3..ef61394 100644 --- a/packages/core/lib/state.g.dart +++ b/packages/core/lib/state.g.dart @@ -17,41 +17,25 @@ UserInfo _$UserInfoFromJson(Map<String, dynamic> json) => UserInfo( : UserTraits.fromJson(json['userTraits'] as Map<String, dynamic>), ); -Map<String, dynamic> _$UserInfoToJson(UserInfo instance) { - final val = <String, dynamic>{ - 'anonymousId': instance.anonymousId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('userId', instance.userId); - writeNotNull('userTraits', instance.userTraits?.toJson()); - writeNotNull('groupTraits', instance.groupTraits?.toJson()); - return val; -} +Map<String, dynamic> _$UserInfoToJson(UserInfo instance) => <String, dynamic>{ + 'anonymousId': instance.anonymousId, + if (instance.userId case final value?) 'userId': value, + if (instance.userTraits?.toJson() case final value?) 'userTraits': value, + if (instance.groupTraits?.toJson() case final value?) + 'groupTraits': value, + }; DeepLinkData _$DeepLinkDataFromJson(Map<String, dynamic> json) => DeepLinkData( json['referringApplication'] as String?, json['url'] as String, ); -Map<String, dynamic> _$DeepLinkDataToJson(DeepLinkData instance) { - final val = <String, dynamic>{}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('referringApplication', instance.referringApplication); - val['url'] = instance.url; - return val; -} +Map<String, dynamic> _$DeepLinkDataToJson(DeepLinkData instance) => + <String, dynamic>{ + if (instance.referringApplication case final value?) + 'referringApplication': value, + 'url': instance.url, + }; SegmentAPISettings _$SegmentAPISettingsFromJson(Map<String, dynamic> json) => SegmentAPISettings( @@ -62,20 +46,12 @@ SegmentAPISettings _$SegmentAPISettingsFromJson(Map<String, dynamic> json) => json['middlewareSettings'] as Map<String, dynamic>), ); -Map<String, dynamic> _$SegmentAPISettingsToJson(SegmentAPISettings instance) { - final val = <String, dynamic>{ - 'integrations': instance.integrations, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('middlewareSettings', instance.middlewareSettings?.toJson()); - return val; -} +Map<String, dynamic> _$SegmentAPISettingsToJson(SegmentAPISettings instance) => + <String, dynamic>{ + 'integrations': instance.integrations, + if (instance.middlewareSettings?.toJson() case final value?) + 'middlewareSettings': value, + }; MiddlewareSettings _$MiddlewareSettingsFromJson(Map<String, dynamic> json) => MiddlewareSettings( @@ -106,25 +82,16 @@ RoutingRule _$RoutingRuleFromJson(Map<String, dynamic> json) => RoutingRule( const [], ); -Map<String, dynamic> _$RoutingRuleToJson(RoutingRule instance) { - final val = <String, dynamic>{ - 'scope': instance.scope, - 'target_type': instance.targetType, - 'matchers': instance.matchers.map((e) => e.toJson()).toList(), - 'transformers': instance.transformers - .map((e) => e.map((e) => e.toJson()).toList()) - .toList(), - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('destinationName', instance.destinationName); - return val; -} +Map<String, dynamic> _$RoutingRuleToJson(RoutingRule instance) => + <String, dynamic>{ + 'scope': instance.scope, + 'target_type': instance.targetType, + 'matchers': instance.matchers.map((e) => e.toJson()).toList(), + 'transformers': instance.transformers + .map((e) => e.map((e) => e.toJson()).toList()) + .toList(), + if (instance.destinationName case final value?) 'destinationName': value, + }; Matcher _$MatcherFromJson(Map<String, dynamic> json) => Matcher( json['type'] as String, @@ -143,20 +110,11 @@ Transformer _$TransformerFromJson(Map<String, dynamic> json) => Transformer( : TransformerConfig.fromJson(json['config'] as Map<String, dynamic>), ); -Map<String, dynamic> _$TransformerToJson(Transformer instance) { - final val = <String, dynamic>{ - 'type': instance.type, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('config', instance.config?.toJson()); - return val; -} +Map<String, dynamic> _$TransformerToJson(Transformer instance) => + <String, dynamic>{ + 'type': instance.type, + if (instance.config?.toJson() case final value?) 'config': value, + }; TransformerConfig _$TransformerConfigFromJson(Map<String, dynamic> json) => TransformerConfig( @@ -178,21 +136,15 @@ TransformerConfig _$TransformerConfigFromJson(Map<String, dynamic> json) => json['sample'] as Map<String, dynamic>), ); -Map<String, dynamic> _$TransformerConfigToJson(TransformerConfig instance) { - final val = <String, dynamic>{}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('allow', instance.allow); - writeNotNull('drop', instance.drop); - writeNotNull('sample', instance.sample?.toJson()); - writeNotNull('map', instance.map?.map((k, e) => MapEntry(k, e.toJson()))); - return val; -} +Map<String, dynamic> _$TransformerConfigToJson(TransformerConfig instance) => + <String, dynamic>{ + if (instance.allow case final value?) 'allow': value, + if (instance.drop case final value?) 'drop': value, + if (instance.sample?.toJson() case final value?) 'sample': value, + if (instance.map?.map((k, e) => MapEntry(k, e.toJson())) + case final value?) + 'map': value, + }; TransformerConfigSample _$TransformerConfigSampleFromJson( Map<String, dynamic> json) => @@ -218,18 +170,10 @@ TransformerConfigMap _$TransformerConfigMapFromJson( ); Map<String, dynamic> _$TransformerConfigMapToJson( - TransformerConfigMap instance) { - final val = <String, dynamic>{}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('set', instance.set); - writeNotNull('copy', instance.copy); - writeNotNull('move', instance.move); - writeNotNull('to_string', instance.enableToString); - return val; -} + TransformerConfigMap instance) => + <String, dynamic>{ + if (instance.set case final value?) 'set': value, + if (instance.copy case final value?) 'copy': value, + if (instance.move case final value?) 'move': value, + if (instance.enableToString case final value?) 'to_string': value, + }; diff --git a/packages/core/test/mocks/mocks.mocks.dart b/packages/core/test/mocks/mocks.mocks.dart index 2566cda..1939074 100644 --- a/packages/core/test/mocks/mocks.mocks.dart +++ b/packages/core/test/mocks/mocks.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in segment_analytics/test/mocks/mocks.dart. // Do not manually edit this file. @@ -9,13 +9,13 @@ import 'dart:developer' as _i27; import 'dart:typed_data' as _i15; import 'dart:ui' as _i9; -import 'package:flutter/foundation.dart' as _i8; +import 'package:flutter/foundation.dart' as _i7; import 'package:flutter/gestures.dart' as _i11; import 'package:flutter/rendering.dart' as _i12; import 'package:flutter/scheduler.dart' as _i26; import 'package:flutter/services.dart' as _i10; import 'package:flutter/src/widgets/binding.dart' as _i25; -import 'package:flutter/src/widgets/focus_manager.dart' as _i7; +import 'package:flutter/src/widgets/focus_manager.dart' as _i8; import 'package:flutter/src/widgets/framework.dart' as _i13; import 'package:flutter/src/widgets/platform_menu_bar.dart' as _i6; import 'package:http/http.dart' as _i3; @@ -40,324 +40,201 @@ import 'package:state_notifier/state_notifier.dart' as _i23; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeEncoding_0 extends _i1.SmartFake implements _i2.Encoding { - _FakeEncoding_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeEncoding_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeUri_1 extends _i1.SmartFake implements Uri { - _FakeUri_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeUri_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeStreamedResponse_2 extends _i1.SmartFake implements _i3.StreamedResponse { - _FakeStreamedResponse_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeStreamedResponse_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeFuture_3<T1> extends _i1.SmartFake implements _i4.Future<T1> { - _FakeFuture_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFuture_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeNativeContext_4 extends _i1.SmartFake implements _i5.NativeContext { - _FakeNativeContext_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeNativeContext_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformMenuDelegate_5 extends _i1.SmartFake implements _i6.PlatformMenuDelegate { - _FakePlatformMenuDelegate_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformMenuDelegate_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeFocusManager_6 extends _i1.SmartFake implements _i7.FocusManager { - _FakeFocusManager_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeValueNotifier_6<T> extends _i1.SmartFake + implements _i7.ValueNotifier<T> { + _FakeValueNotifier_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeFocusManager_7 extends _i1.SmartFake implements _i8.FocusManager { + _FakeFocusManager_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } -class _FakeSingletonFlutterWindow_7 extends _i1.SmartFake +class _FakeSingletonFlutterWindow_8 extends _i1.SmartFake implements _i9.SingletonFlutterWindow { - _FakeSingletonFlutterWindow_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSingletonFlutterWindow_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakePlatformDispatcher_8 extends _i1.SmartFake +class _FakePlatformDispatcher_9 extends _i1.SmartFake implements _i9.PlatformDispatcher { - _FakePlatformDispatcher_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeValueNotifier_9<T> extends _i1.SmartFake - implements _i8.ValueNotifier<T> { - _FakeValueNotifier_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformDispatcher_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHardwareKeyboard_10 extends _i1.SmartFake implements _i10.HardwareKeyboard { - _FakeHardwareKeyboard_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHardwareKeyboard_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeKeyEventManager_11 extends _i1.SmartFake implements _i10.KeyEventManager { - _FakeKeyEventManager_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeKeyEventManager_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBinaryMessenger_12 extends _i1.SmartFake implements _i10.BinaryMessenger { - _FakeBinaryMessenger_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBinaryMessenger_12(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeChannelBuffers_13 extends _i1.SmartFake implements _i9.ChannelBuffers { - _FakeChannelBuffers_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeChannelBuffers_13(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeRestorationManager_14 extends _i1.SmartFake implements _i10.RestorationManager { - _FakeRestorationManager_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRestorationManager_14(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDuration_15 extends _i1.SmartFake implements Duration { - _FakeDuration_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDuration_15(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerRouter_16 extends _i1.SmartFake implements _i11.PointerRouter { - _FakePointerRouter_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerRouter_16(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeGestureArenaManager_17 extends _i1.SmartFake implements _i11.GestureArenaManager { - _FakeGestureArenaManager_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeGestureArenaManager_17(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerSignalResolver_18 extends _i1.SmartFake implements _i11.PointerSignalResolver { - _FakePointerSignalResolver_18( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerSignalResolver_18(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSamplingClock_19 extends _i1.SmartFake implements _i11.SamplingClock { - _FakeSamplingClock_19( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSamplingClock_19(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePipelineOwner_20 extends _i1.SmartFake implements _i12.PipelineOwner { - _FakePipelineOwner_20( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePipelineOwner_20(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } class _FakeRenderView_21 extends _i1.SmartFake implements _i12.RenderView { - _FakeRenderView_21( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRenderView_21(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } class _FakeMouseTracker_22 extends _i1.SmartFake implements _i12.MouseTracker { - _FakeMouseTracker_22( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeMouseTracker_22(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeAccessibilityFeatures_23 extends _i1.SmartFake implements _i9.AccessibilityFeatures { - _FakeAccessibilityFeatures_23( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeAccessibilityFeatures_23(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidget_24 extends _i1.SmartFake implements _i13.Widget { - _FakeWidget_24( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_24(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override - String toString({_i8.DiagnosticLevel? minLevel = _i8.DiagnosticLevel.info}) => + String toString({_i7.DiagnosticLevel? minLevel = _i7.DiagnosticLevel.info}) => super.toString(); } class _FakeViewConfiguration_25 extends _i1.SmartFake implements _i12.ViewConfiguration { - _FakeViewConfiguration_25( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeViewConfiguration_25(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeSceneBuilder_26 extends _i1.SmartFake implements _i9.SceneBuilder { + _FakeSceneBuilder_26(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakePictureRecorder_27 extends _i1.SmartFake + implements _i9.PictureRecorder { + _FakePictureRecorder_27(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSemanticsHandle_26 extends _i1.SmartFake +class _FakeCanvas_28 extends _i1.SmartFake implements _i9.Canvas { + _FakeCanvas_28(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeSemanticsHandle_29 extends _i1.SmartFake implements _i12.SemanticsHandle { - _FakeSemanticsHandle_26( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsHandle_29(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSemanticsUpdateBuilder_27 extends _i1.SmartFake +class _FakeSemanticsUpdateBuilder_30 extends _i1.SmartFake implements _i9.SemanticsUpdateBuilder { - _FakeSemanticsUpdateBuilder_27( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsUpdateBuilder_30(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [LogTarget]. @@ -366,12 +243,9 @@ class _FakeSemanticsUpdateBuilder_27 extends _i1.SmartFake class MockLogTarget extends _i1.Mock implements _i14.LogTarget { @override void parseLog(_i14.LogMessage? log) => super.noSuchMethod( - Invocation.method( - #parseLog, - [log], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#parseLog, [log]), + returnValueForMissingStub: null, + ); } /// A class which mocks [Request]. @@ -379,230 +253,206 @@ class MockLogTarget extends _i1.Mock implements _i14.LogTarget { /// See the documentation for Mockito's code generation for more information. class MockRequest extends _i1.Mock implements _i3.Request { @override - int get contentLength => (super.noSuchMethod( - Invocation.getter(#contentLength), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get contentLength => + (super.noSuchMethod( + Invocation.getter(#contentLength), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override set contentLength(int? value) => super.noSuchMethod( - Invocation.setter( - #contentLength, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#contentLength, value), + returnValueForMissingStub: null, + ); @override - _i2.Encoding get encoding => (super.noSuchMethod( - Invocation.getter(#encoding), - returnValue: _FakeEncoding_0( - this, - Invocation.getter(#encoding), - ), - returnValueForMissingStub: _FakeEncoding_0( - this, - Invocation.getter(#encoding), - ), - ) as _i2.Encoding); + _i2.Encoding get encoding => + (super.noSuchMethod( + Invocation.getter(#encoding), + returnValue: _FakeEncoding_0(this, Invocation.getter(#encoding)), + returnValueForMissingStub: _FakeEncoding_0( + this, + Invocation.getter(#encoding), + ), + ) + as _i2.Encoding); @override set encoding(_i2.Encoding? value) => super.noSuchMethod( - Invocation.setter( - #encoding, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#encoding, value), + returnValueForMissingStub: null, + ); @override - _i15.Uint8List get bodyBytes => (super.noSuchMethod( - Invocation.getter(#bodyBytes), - returnValue: _i15.Uint8List(0), - returnValueForMissingStub: _i15.Uint8List(0), - ) as _i15.Uint8List); + _i15.Uint8List get bodyBytes => + (super.noSuchMethod( + Invocation.getter(#bodyBytes), + returnValue: _i15.Uint8List(0), + returnValueForMissingStub: _i15.Uint8List(0), + ) + as _i15.Uint8List); @override set bodyBytes(List<int>? value) => super.noSuchMethod( - Invocation.setter( - #bodyBytes, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#bodyBytes, value), + returnValueForMissingStub: null, + ); @override - String get body => (super.noSuchMethod( - Invocation.getter(#body), - returnValue: _i16.dummyValue<String>( - this, - Invocation.getter(#body), - ), - returnValueForMissingStub: _i16.dummyValue<String>( - this, - Invocation.getter(#body), - ), - ) as String); + String get body => + (super.noSuchMethod( + Invocation.getter(#body), + returnValue: _i16.dummyValue<String>( + this, + Invocation.getter(#body), + ), + returnValueForMissingStub: _i16.dummyValue<String>( + this, + Invocation.getter(#body), + ), + ) + as String); @override set body(String? value) => super.noSuchMethod( - Invocation.setter( - #body, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#body, value), + returnValueForMissingStub: null, + ); @override - Map<String, String> get bodyFields => (super.noSuchMethod( - Invocation.getter(#bodyFields), - returnValue: <String, String>{}, - returnValueForMissingStub: <String, String>{}, - ) as Map<String, String>); + Map<String, String> get bodyFields => + (super.noSuchMethod( + Invocation.getter(#bodyFields), + returnValue: <String, String>{}, + returnValueForMissingStub: <String, String>{}, + ) + as Map<String, String>); @override set bodyFields(Map<String, String>? fields) => super.noSuchMethod( - Invocation.setter( - #bodyFields, - fields, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#bodyFields, fields), + returnValueForMissingStub: null, + ); @override - String get method => (super.noSuchMethod( - Invocation.getter(#method), - returnValue: _i16.dummyValue<String>( - this, - Invocation.getter(#method), - ), - returnValueForMissingStub: _i16.dummyValue<String>( - this, - Invocation.getter(#method), - ), - ) as String); + String get method => + (super.noSuchMethod( + Invocation.getter(#method), + returnValue: _i16.dummyValue<String>( + this, + Invocation.getter(#method), + ), + returnValueForMissingStub: _i16.dummyValue<String>( + this, + Invocation.getter(#method), + ), + ) + as String); @override - Uri get url => (super.noSuchMethod( - Invocation.getter(#url), - returnValue: _FakeUri_1( - this, - Invocation.getter(#url), - ), - returnValueForMissingStub: _FakeUri_1( - this, - Invocation.getter(#url), - ), - ) as Uri); + Uri get url => + (super.noSuchMethod( + Invocation.getter(#url), + returnValue: _FakeUri_1(this, Invocation.getter(#url)), + returnValueForMissingStub: _FakeUri_1( + this, + Invocation.getter(#url), + ), + ) + as Uri); @override - Map<String, String> get headers => (super.noSuchMethod( - Invocation.getter(#headers), - returnValue: <String, String>{}, - returnValueForMissingStub: <String, String>{}, - ) as Map<String, String>); + Map<String, String> get headers => + (super.noSuchMethod( + Invocation.getter(#headers), + returnValue: <String, String>{}, + returnValueForMissingStub: <String, String>{}, + ) + as Map<String, String>); @override - bool get persistentConnection => (super.noSuchMethod( - Invocation.getter(#persistentConnection), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get persistentConnection => + (super.noSuchMethod( + Invocation.getter(#persistentConnection), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set persistentConnection(bool? value) => super.noSuchMethod( - Invocation.setter( - #persistentConnection, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#persistentConnection, value), + returnValueForMissingStub: null, + ); @override - bool get followRedirects => (super.noSuchMethod( - Invocation.getter(#followRedirects), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get followRedirects => + (super.noSuchMethod( + Invocation.getter(#followRedirects), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set followRedirects(bool? value) => super.noSuchMethod( - Invocation.setter( - #followRedirects, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#followRedirects, value), + returnValueForMissingStub: null, + ); @override - int get maxRedirects => (super.noSuchMethod( - Invocation.getter(#maxRedirects), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get maxRedirects => + (super.noSuchMethod( + Invocation.getter(#maxRedirects), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override set maxRedirects(int? value) => super.noSuchMethod( - Invocation.setter( - #maxRedirects, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#maxRedirects, value), + returnValueForMissingStub: null, + ); @override - bool get finalized => (super.noSuchMethod( - Invocation.getter(#finalized), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get finalized => + (super.noSuchMethod( + Invocation.getter(#finalized), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i17.ByteStream finalize() => (super.noSuchMethod( - Invocation.method( - #finalize, - [], - ), - returnValue: _i16.dummyValue<_i17.ByteStream>( - this, - Invocation.method( - #finalize, - [], - ), - ), - returnValueForMissingStub: _i16.dummyValue<_i17.ByteStream>( - this, - Invocation.method( - #finalize, - [], - ), - ), - ) as _i17.ByteStream); + _i17.ByteStream finalize() => + (super.noSuchMethod( + Invocation.method(#finalize, []), + returnValue: _i16.dummyValue<_i17.ByteStream>( + this, + Invocation.method(#finalize, []), + ), + returnValueForMissingStub: _i16.dummyValue<_i17.ByteStream>( + this, + Invocation.method(#finalize, []), + ), + ) + as _i17.ByteStream); @override - _i4.Future<_i3.StreamedResponse> send() => (super.noSuchMethod( - Invocation.method( - #send, - [], - ), - returnValue: - _i4.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( - this, - Invocation.method( - #send, - [], - ), - )), - returnValueForMissingStub: - _i4.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( - this, - Invocation.method( - #send, - [], - ), - )), - ) as _i4.Future<_i3.StreamedResponse>); + _i4.Future<_i3.StreamedResponse> send() => + (super.noSuchMethod( + Invocation.method(#send, []), + returnValue: _i4.Future<_i3.StreamedResponse>.value( + _FakeStreamedResponse_2(this, Invocation.method(#send, [])), + ), + returnValueForMissingStub: _i4.Future<_i3.StreamedResponse>.value( + _FakeStreamedResponse_2(this, Invocation.method(#send, [])), + ), + ) + as _i4.Future<_i3.StreamedResponse>); } /// A class which mocks [StreamSubscription]. @@ -611,108 +461,83 @@ class MockRequest extends _i1.Mock implements _i3.Request { class MockStreamSubscription<T> extends _i1.Mock implements _i4.StreamSubscription<T> { @override - bool get isPaused => (super.noSuchMethod( - Invocation.getter(#isPaused), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get isPaused => + (super.noSuchMethod( + Invocation.getter(#isPaused), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Future<void> cancel() => (super.noSuchMethod( - Invocation.method( - #cancel, - [], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + _i4.Future<void> cancel() => + (super.noSuchMethod( + Invocation.method(#cancel, []), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override void onData(void Function(T)? handleData) => super.noSuchMethod( - Invocation.method( - #onData, - [handleData], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onData, [handleData]), + returnValueForMissingStub: null, + ); @override void onError(Function? handleError) => super.noSuchMethod( - Invocation.method( - #onError, - [handleError], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onError, [handleError]), + returnValueForMissingStub: null, + ); @override void onDone(void Function()? handleDone) => super.noSuchMethod( - Invocation.method( - #onDone, - [handleDone], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onDone, [handleDone]), + returnValueForMissingStub: null, + ); @override void pause([_i4.Future<void>? resumeSignal]) => super.noSuchMethod( - Invocation.method( - #pause, - [resumeSignal], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#pause, [resumeSignal]), + returnValueForMissingStub: null, + ); @override void resume() => super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resume, []), + returnValueForMissingStub: null, + ); @override - _i4.Future<E> asFuture<E>([E? futureValue]) => (super.noSuchMethod( - Invocation.method( - #asFuture, - [futureValue], - ), - returnValue: _i16.ifNotNull( - _i16.dummyValueOrNull<E>( - this, - Invocation.method( - #asFuture, - [futureValue], + _i4.Future<E> asFuture<E>([E? futureValue]) => + (super.noSuchMethod( + Invocation.method(#asFuture, [futureValue]), + returnValue: + _i16.ifNotNull( + _i16.dummyValueOrNull<E>( + this, + Invocation.method(#asFuture, [futureValue]), + ), + (E v) => _i4.Future<E>.value(v), + ) ?? + _FakeFuture_3<E>( + this, + Invocation.method(#asFuture, [futureValue]), ), - ), - (E v) => _i4.Future<E>.value(v), - ) ?? - _FakeFuture_3<E>( - this, - Invocation.method( - #asFuture, - [futureValue], - ), - ), - returnValueForMissingStub: _i16.ifNotNull( - _i16.dummyValueOrNull<E>( - this, - Invocation.method( - #asFuture, - [futureValue], + returnValueForMissingStub: + _i16.ifNotNull( + _i16.dummyValueOrNull<E>( + this, + Invocation.method(#asFuture, [futureValue]), + ), + (E v) => _i4.Future<E>.value(v), + ) ?? + _FakeFuture_3<E>( + this, + Invocation.method(#asFuture, [futureValue]), ), - ), - (E v) => _i4.Future<E>.value(v), - ) ?? - _FakeFuture_3<E>( - this, - Invocation.method( - #asFuture, - [futureValue], - ), - ), - ) as _i4.Future<E>); + ) + as _i4.Future<E>); } /// A class which mocks [HTTPClient]. @@ -726,28 +551,25 @@ class MockHTTPClient extends _i1.Mock implements _i18.HTTPClient { String? host, }) => (super.noSuchMethod( - Invocation.method( - #startBatchUpload, - [ - writeKey, - batch, - ], - {#host: host}, - ), - returnValue: _i4.Future<bool>.value(false), - returnValueForMissingStub: _i4.Future<bool>.value(false), - ) as _i4.Future<bool>); + Invocation.method( + #startBatchUpload, + [writeKey, batch], + {#host: host}, + ), + returnValue: _i4.Future<bool>.value(false), + returnValueForMissingStub: _i4.Future<bool>.value(false), + ) + as _i4.Future<bool>); @override _i4.Future<_i20.SegmentAPISettings?> settingsFor(String? writeKey) => (super.noSuchMethod( - Invocation.method( - #settingsFor, - [writeKey], - ), - returnValue: _i4.Future<_i20.SegmentAPISettings?>.value(), - returnValueForMissingStub: _i4.Future<_i20.SegmentAPISettings?>.value(), - ) as _i4.Future<_i20.SegmentAPISettings?>); + Invocation.method(#settingsFor, [writeKey]), + returnValue: _i4.Future<_i20.SegmentAPISettings?>.value(), + returnValueForMissingStub: + _i4.Future<_i20.SegmentAPISettings?>.value(), + ) + as _i4.Future<_i20.SegmentAPISettings?>); } /// A class which mocks [Store]. @@ -755,48 +577,38 @@ class MockHTTPClient extends _i1.Mock implements _i18.HTTPClient { /// See the documentation for Mockito's code generation for more information. class MockStore extends _i1.Mock implements _i21.Store { @override - _i4.Future<dynamic> get ready => (super.noSuchMethod( - Invocation.getter(#ready), - returnValue: _i4.Future<dynamic>.value(), - returnValueForMissingStub: _i4.Future<dynamic>.value(), - ) as _i4.Future<dynamic>); + _i4.Future<dynamic> get ready => + (super.noSuchMethod( + Invocation.getter(#ready), + returnValue: _i4.Future<dynamic>.value(), + returnValueForMissingStub: _i4.Future<dynamic>.value(), + ) + as _i4.Future<dynamic>); @override _i4.Future<Map<String, dynamic>?> getPersisted(String? key) => (super.noSuchMethod( - Invocation.method( - #getPersisted, - [key], - ), - returnValue: _i4.Future<Map<String, dynamic>?>.value(), - returnValueForMissingStub: _i4.Future<Map<String, dynamic>?>.value(), - ) as _i4.Future<Map<String, dynamic>?>); + Invocation.method(#getPersisted, [key]), + returnValue: _i4.Future<Map<String, dynamic>?>.value(), + returnValueForMissingStub: + _i4.Future<Map<String, dynamic>?>.value(), + ) + as _i4.Future<Map<String, dynamic>?>); @override - _i4.Future<dynamic> setPersisted( - String? key, - Map<String, dynamic>? value, - ) => + _i4.Future<dynamic> setPersisted(String? key, Map<String, dynamic>? value) => (super.noSuchMethod( - Invocation.method( - #setPersisted, - [ - key, - value, - ], - ), - returnValue: _i4.Future<dynamic>.value(), - returnValueForMissingStub: _i4.Future<dynamic>.value(), - ) as _i4.Future<dynamic>); + Invocation.method(#setPersisted, [key, value]), + returnValue: _i4.Future<dynamic>.value(), + returnValueForMissingStub: _i4.Future<dynamic>.value(), + ) + as _i4.Future<dynamic>); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [FlushPolicy]. @@ -804,117 +616,103 @@ class MockStore extends _i1.Mock implements _i21.Store { /// See the documentation for Mockito's code generation for more information. class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { @override - bool get shouldFlush => (super.noSuchMethod( - Invocation.getter(#shouldFlush), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get shouldFlush => + (super.noSuchMethod( + Invocation.getter(#shouldFlush), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set shouldFlush(bool? shouldFlush) => super.noSuchMethod( - Invocation.setter( - #shouldFlush, - shouldFlush, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#shouldFlush, shouldFlush), + returnValueForMissingStub: null, + ); @override set onError(_i23.ErrorListener? _onError) => super.noSuchMethod( - Invocation.setter( - #onError, - _onError, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onError, _onError), + returnValueForMissingStub: null, + ); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get mounted => + (super.noSuchMethod( + Invocation.getter(#mounted), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Stream<bool> get stream => (super.noSuchMethod( - Invocation.getter(#stream), - returnValue: _i4.Stream<bool>.empty(), - returnValueForMissingStub: _i4.Stream<bool>.empty(), - ) as _i4.Stream<bool>); + _i4.Stream<bool> get stream => + (super.noSuchMethod( + Invocation.getter(#stream), + returnValue: _i4.Stream<bool>.empty(), + returnValueForMissingStub: _i4.Stream<bool>.empty(), + ) + as _i4.Stream<bool>); @override - bool get state => (super.noSuchMethod( - Invocation.getter(#state), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get state => + (super.noSuchMethod( + Invocation.getter(#state), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set state(bool? value) => super.noSuchMethod( - Invocation.setter( - #state, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#state, value), + returnValueForMissingStub: null, + ); @override - bool get debugState => (super.noSuchMethod( - Invocation.getter(#debugState), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugState => + (super.noSuchMethod( + Invocation.getter(#debugState), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get hasListeners => + (super.noSuchMethod( + Invocation.getter(#hasListeners), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override void start() => super.noSuchMethod( - Invocation.method( - #start, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#start, []), + returnValueForMissingStub: null, + ); @override void onEvent(_i19.RawEvent? event) => super.noSuchMethod( - Invocation.method( - #onEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onEvent, [event]), + returnValueForMissingStub: null, + ); @override void reset() => super.noSuchMethod( - Invocation.method( - #reset, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#reset, []), + returnValueForMissingStub: null, + ); @override - bool updateShouldNotify( - bool? old, - bool? current, - ) => + bool updateShouldNotify(bool? old, bool? current) => (super.noSuchMethod( - Invocation.method( - #updateShouldNotify, - [ - old, - current, - ], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + Invocation.method(#updateShouldNotify, [old, current]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override _i23.RemoveListener addListener( @@ -922,23 +720,21 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { bool? fireImmediately = true, }) => (super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - {#fireImmediately: fireImmediately}, - ), - returnValue: () {}, - returnValueForMissingStub: () {}, - ) as _i23.RemoveListener); + Invocation.method( + #addListener, + [listener], + {#fireImmediately: fireImmediately}, + ), + returnValue: () {}, + returnValueForMissingStub: () {}, + ) + as _i23.RemoveListener); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [Logger]. @@ -946,11 +742,13 @@ class MockFlushPolicy extends _i1.Mock implements _i22.FlushPolicy { /// See the documentation for Mockito's code generation for more information. class MockLogger extends _i1.Mock implements _i24.Logger { @override - _i4.Future<void> get init => (super.noSuchMethod( - Invocation.getter(#init), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + _i4.Future<void> get init => + (super.noSuchMethod( + Invocation.getter(#init), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override void v( @@ -958,19 +756,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #v, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #v, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void t( @@ -978,19 +771,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #t, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #t, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void d( @@ -998,19 +786,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #d, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #d, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void i( @@ -1018,19 +801,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #i, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #i, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void w( @@ -1038,19 +816,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #w, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #w, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void e( @@ -1058,19 +831,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #e, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #e, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void wtf( @@ -1078,19 +846,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #wtf, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #wtf, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void f( @@ -1098,19 +861,14 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #f, - [message], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #f, + [message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override void log( @@ -1119,42 +877,32 @@ class MockLogger extends _i1.Mock implements _i24.Logger { DateTime? time, Object? error, StackTrace? stackTrace, - }) => - super.noSuchMethod( - Invocation.method( - #log, - [ - level, - message, - ], - { - #time: time, - #error: error, - #stackTrace: stackTrace, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #log, + [level, message], + {#time: time, #error: error, #stackTrace: stackTrace}, + ), + returnValueForMissingStub: null, + ); @override - bool isClosed() => (super.noSuchMethod( - Invocation.method( - #isClosed, - [], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool isClosed() => + (super.noSuchMethod( + Invocation.method(#isClosed, []), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Future<void> close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + _i4.Future<void> close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); } /// A class which mocks [NativeContextApi]. @@ -1164,26 +912,21 @@ class MockNativeContextApi extends _i1.Mock implements _i5.NativeContextApi { @override _i4.Future<_i5.NativeContext> getContext(bool? arg_collectDeviceId) => (super.noSuchMethod( - Invocation.method( - #getContext, - [arg_collectDeviceId], - ), - returnValue: _i4.Future<_i5.NativeContext>.value(_FakeNativeContext_4( - this, - Invocation.method( - #getContext, - [arg_collectDeviceId], - ), - )), - returnValueForMissingStub: - _i4.Future<_i5.NativeContext>.value(_FakeNativeContext_4( - this, - Invocation.method( - #getContext, - [arg_collectDeviceId], - ), - )), - ) as _i4.Future<_i5.NativeContext>); + Invocation.method(#getContext, [arg_collectDeviceId]), + returnValue: _i4.Future<_i5.NativeContext>.value( + _FakeNativeContext_4( + this, + Invocation.method(#getContext, [arg_collectDeviceId]), + ), + ), + returnValueForMissingStub: _i4.Future<_i5.NativeContext>.value( + _FakeNativeContext_4( + this, + Invocation.method(#getContext, [arg_collectDeviceId]), + ), + ), + ) + as _i4.Future<_i5.NativeContext>); } /// A class which mocks [WidgetsBinding]. @@ -1191,34 +934,35 @@ class MockNativeContextApi extends _i1.Mock implements _i5.NativeContextApi { /// See the documentation for Mockito's code generation for more information. class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { @override - _i6.PlatformMenuDelegate get platformMenuDelegate => (super.noSuchMethod( - Invocation.getter(#platformMenuDelegate), - returnValue: _FakePlatformMenuDelegate_5( - this, - Invocation.getter(#platformMenuDelegate), - ), - returnValueForMissingStub: _FakePlatformMenuDelegate_5( - this, - Invocation.getter(#platformMenuDelegate), - ), - ) as _i6.PlatformMenuDelegate); + _i6.PlatformMenuDelegate get platformMenuDelegate => + (super.noSuchMethod( + Invocation.getter(#platformMenuDelegate), + returnValue: _FakePlatformMenuDelegate_5( + this, + Invocation.getter(#platformMenuDelegate), + ), + returnValueForMissingStub: _FakePlatformMenuDelegate_5( + this, + Invocation.getter(#platformMenuDelegate), + ), + ) + as _i6.PlatformMenuDelegate); @override set platformMenuDelegate(_i6.PlatformMenuDelegate? _platformMenuDelegate) => super.noSuchMethod( - Invocation.setter( - #platformMenuDelegate, - _platformMenuDelegate, - ), + Invocation.setter(#platformMenuDelegate, _platformMenuDelegate), returnValueForMissingStub: null, ); @override - bool get debugBuildingDirtyElements => (super.noSuchMethod( - Invocation.getter(#debugBuildingDirtyElements), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugBuildingDirtyElements => + (super.noSuchMethod( + Invocation.getter(#debugBuildingDirtyElements), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override set debugBuildingDirtyElements(bool? _debugBuildingDirtyElements) => @@ -1231,871 +975,862 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { ); @override - _i7.FocusManager get focusManager => (super.noSuchMethod( - Invocation.getter(#focusManager), - returnValue: _FakeFocusManager_6( - this, - Invocation.getter(#focusManager), - ), - returnValueForMissingStub: _FakeFocusManager_6( - this, - Invocation.getter(#focusManager), - ), - ) as _i7.FocusManager); - - @override - bool get firstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#firstFrameRasterized), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get debugShowWidgetInspectorOverride => + (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverride), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Future<void> get waitUntilFirstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#waitUntilFirstFrameRasterized), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + set debugShowWidgetInspectorOverride(bool? value) => super.noSuchMethod( + Invocation.setter(#debugShowWidgetInspectorOverride, value), + returnValueForMissingStub: null, + ); @override - bool get debugDidSendFirstFrameEvent => (super.noSuchMethod( - Invocation.getter(#debugDidSendFirstFrameEvent), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + _i7.ValueNotifier<bool> get debugShowWidgetInspectorOverrideNotifier => + (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + returnValue: _FakeValueNotifier_6<bool>( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + returnValueForMissingStub: _FakeValueNotifier_6<bool>( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + ) + as _i7.ValueNotifier<bool>); @override - bool get framesEnabled => (super.noSuchMethod( - Invocation.getter(#framesEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + _i8.FocusManager get focusManager => + (super.noSuchMethod( + Invocation.getter(#focusManager), + returnValue: _FakeFocusManager_7( + this, + Invocation.getter(#focusManager), + ), + returnValueForMissingStub: _FakeFocusManager_7( + this, + Invocation.getter(#focusManager), + ), + ) + as _i8.FocusManager); @override - bool get isRootWidgetAttached => (super.noSuchMethod( - Invocation.getter(#isRootWidgetAttached), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get firstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#firstFrameRasterized), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i9.SingletonFlutterWindow get window => (super.noSuchMethod( - Invocation.getter(#window), - returnValue: _FakeSingletonFlutterWindow_7( - this, - Invocation.getter(#window), - ), - returnValueForMissingStub: _FakeSingletonFlutterWindow_7( - this, - Invocation.getter(#window), - ), - ) as _i9.SingletonFlutterWindow); + _i4.Future<void> get waitUntilFirstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#waitUntilFirstFrameRasterized), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override - _i9.PlatformDispatcher get platformDispatcher => (super.noSuchMethod( - Invocation.getter(#platformDispatcher), - returnValue: _FakePlatformDispatcher_8( - this, - Invocation.getter(#platformDispatcher), - ), - returnValueForMissingStub: _FakePlatformDispatcher_8( - this, - Invocation.getter(#platformDispatcher), - ), - ) as _i9.PlatformDispatcher); + bool get debugDidSendFirstFrameEvent => + (super.noSuchMethod( + Invocation.getter(#debugDidSendFirstFrameEvent), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get locked => (super.noSuchMethod( - Invocation.getter(#locked), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get framesEnabled => + (super.noSuchMethod( + Invocation.getter(#framesEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i8.ValueNotifier<int?> get accessibilityFocus => (super.noSuchMethod( - Invocation.getter(#accessibilityFocus), - returnValue: _FakeValueNotifier_9<int?>( - this, - Invocation.getter(#accessibilityFocus), - ), - returnValueForMissingStub: _FakeValueNotifier_9<int?>( - this, - Invocation.getter(#accessibilityFocus), - ), - ) as _i8.ValueNotifier<int?>); + bool get isRootWidgetAttached => + (super.noSuchMethod( + Invocation.getter(#isRootWidgetAttached), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i10.HardwareKeyboard get keyboard => (super.noSuchMethod( - Invocation.getter(#keyboard), - returnValue: _FakeHardwareKeyboard_10( - this, - Invocation.getter(#keyboard), - ), - returnValueForMissingStub: _FakeHardwareKeyboard_10( - this, - Invocation.getter(#keyboard), - ), - ) as _i10.HardwareKeyboard); + _i9.SingletonFlutterWindow get window => + (super.noSuchMethod( + Invocation.getter(#window), + returnValue: _FakeSingletonFlutterWindow_8( + this, + Invocation.getter(#window), + ), + returnValueForMissingStub: _FakeSingletonFlutterWindow_8( + this, + Invocation.getter(#window), + ), + ) + as _i9.SingletonFlutterWindow); @override - _i10.KeyEventManager get keyEventManager => (super.noSuchMethod( - Invocation.getter(#keyEventManager), - returnValue: _FakeKeyEventManager_11( - this, - Invocation.getter(#keyEventManager), - ), - returnValueForMissingStub: _FakeKeyEventManager_11( - this, - Invocation.getter(#keyEventManager), - ), - ) as _i10.KeyEventManager); + _i9.PlatformDispatcher get platformDispatcher => + (super.noSuchMethod( + Invocation.getter(#platformDispatcher), + returnValue: _FakePlatformDispatcher_9( + this, + Invocation.getter(#platformDispatcher), + ), + returnValueForMissingStub: _FakePlatformDispatcher_9( + this, + Invocation.getter(#platformDispatcher), + ), + ) + as _i9.PlatformDispatcher); @override - _i10.BinaryMessenger get defaultBinaryMessenger => (super.noSuchMethod( - Invocation.getter(#defaultBinaryMessenger), - returnValue: _FakeBinaryMessenger_12( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - returnValueForMissingStub: _FakeBinaryMessenger_12( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - ) as _i10.BinaryMessenger); + bool get locked => + (super.noSuchMethod( + Invocation.getter(#locked), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i9.ChannelBuffers get channelBuffers => (super.noSuchMethod( - Invocation.getter(#channelBuffers), - returnValue: _FakeChannelBuffers_13( - this, - Invocation.getter(#channelBuffers), - ), - returnValueForMissingStub: _FakeChannelBuffers_13( - this, - Invocation.getter(#channelBuffers), - ), - ) as _i9.ChannelBuffers); + _i7.ValueNotifier<int?> get accessibilityFocus => + (super.noSuchMethod( + Invocation.getter(#accessibilityFocus), + returnValue: _FakeValueNotifier_6<int?>( + this, + Invocation.getter(#accessibilityFocus), + ), + returnValueForMissingStub: _FakeValueNotifier_6<int?>( + this, + Invocation.getter(#accessibilityFocus), + ), + ) + as _i7.ValueNotifier<int?>); @override - _i10.RestorationManager get restorationManager => (super.noSuchMethod( - Invocation.getter(#restorationManager), - returnValue: _FakeRestorationManager_14( - this, - Invocation.getter(#restorationManager), - ), - returnValueForMissingStub: _FakeRestorationManager_14( - this, - Invocation.getter(#restorationManager), - ), - ) as _i10.RestorationManager); + _i10.HardwareKeyboard get keyboard => + (super.noSuchMethod( + Invocation.getter(#keyboard), + returnValue: _FakeHardwareKeyboard_10( + this, + Invocation.getter(#keyboard), + ), + returnValueForMissingStub: _FakeHardwareKeyboard_10( + this, + Invocation.getter(#keyboard), + ), + ) + as _i10.HardwareKeyboard); + + @override + _i10.KeyEventManager get keyEventManager => + (super.noSuchMethod( + Invocation.getter(#keyEventManager), + returnValue: _FakeKeyEventManager_11( + this, + Invocation.getter(#keyEventManager), + ), + returnValueForMissingStub: _FakeKeyEventManager_11( + this, + Invocation.getter(#keyEventManager), + ), + ) + as _i10.KeyEventManager); + + @override + _i10.BinaryMessenger get defaultBinaryMessenger => + (super.noSuchMethod( + Invocation.getter(#defaultBinaryMessenger), + returnValue: _FakeBinaryMessenger_12( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + returnValueForMissingStub: _FakeBinaryMessenger_12( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + ) + as _i10.BinaryMessenger); + + @override + _i9.ChannelBuffers get channelBuffers => + (super.noSuchMethod( + Invocation.getter(#channelBuffers), + returnValue: _FakeChannelBuffers_13( + this, + Invocation.getter(#channelBuffers), + ), + returnValueForMissingStub: _FakeChannelBuffers_13( + this, + Invocation.getter(#channelBuffers), + ), + ) + as _i9.ChannelBuffers); + + @override + _i10.RestorationManager get restorationManager => + (super.noSuchMethod( + Invocation.getter(#restorationManager), + returnValue: _FakeRestorationManager_14( + this, + Invocation.getter(#restorationManager), + ), + returnValueForMissingStub: _FakeRestorationManager_14( + this, + Invocation.getter(#restorationManager), + ), + ) + as _i10.RestorationManager); @override - _i26.SchedulingStrategy get schedulingStrategy => (super.noSuchMethod( - Invocation.getter(#schedulingStrategy), - returnValue: ({ - required int priority, - required _i26.SchedulerBinding scheduler, - }) => - false, - returnValueForMissingStub: ({ - required int priority, - required _i26.SchedulerBinding scheduler, - }) => - false, - ) as _i26.SchedulingStrategy); + _i26.SchedulingStrategy get schedulingStrategy => + (super.noSuchMethod( + Invocation.getter(#schedulingStrategy), + returnValue: + ({ + required int priority, + required _i26.SchedulerBinding scheduler, + }) => false, + returnValueForMissingStub: + ({ + required int priority, + required _i26.SchedulerBinding scheduler, + }) => false, + ) + as _i26.SchedulingStrategy); @override set schedulingStrategy(_i26.SchedulingStrategy? _schedulingStrategy) => super.noSuchMethod( - Invocation.setter( - #schedulingStrategy, - _schedulingStrategy, - ), + Invocation.setter(#schedulingStrategy, _schedulingStrategy), returnValueForMissingStub: null, ); @override - int get transientCallbackCount => (super.noSuchMethod( - Invocation.getter(#transientCallbackCount), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get transientCallbackCount => + (super.noSuchMethod( + Invocation.getter(#transientCallbackCount), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - _i4.Future<void> get endOfFrame => (super.noSuchMethod( - Invocation.getter(#endOfFrame), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + _i4.Future<void> get endOfFrame => + (super.noSuchMethod( + Invocation.getter(#endOfFrame), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override - bool get hasScheduledFrame => (super.noSuchMethod( - Invocation.getter(#hasScheduledFrame), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get hasScheduledFrame => + (super.noSuchMethod( + Invocation.getter(#hasScheduledFrame), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i26.SchedulerPhase get schedulerPhase => (super.noSuchMethod( - Invocation.getter(#schedulerPhase), - returnValue: _i26.SchedulerPhase.idle, - returnValueForMissingStub: _i26.SchedulerPhase.idle, - ) as _i26.SchedulerPhase); + _i26.SchedulerPhase get schedulerPhase => + (super.noSuchMethod( + Invocation.getter(#schedulerPhase), + returnValue: _i26.SchedulerPhase.idle, + returnValueForMissingStub: _i26.SchedulerPhase.idle, + ) + as _i26.SchedulerPhase); @override - Duration get currentFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentFrameTimeStamp), - returnValue: _FakeDuration_15( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - returnValueForMissingStub: _FakeDuration_15( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - ) as Duration); + Duration get currentFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentFrameTimeStamp), + returnValue: _FakeDuration_15( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + returnValueForMissingStub: _FakeDuration_15( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + ) + as Duration); @override - Duration get currentSystemFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentSystemFrameTimeStamp), - returnValue: _FakeDuration_15( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - returnValueForMissingStub: _FakeDuration_15( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - ) as Duration); + Duration get currentSystemFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentSystemFrameTimeStamp), + returnValue: _FakeDuration_15( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + returnValueForMissingStub: _FakeDuration_15( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + ) + as Duration); @override - _i11.PointerRouter get pointerRouter => (super.noSuchMethod( - Invocation.getter(#pointerRouter), - returnValue: _FakePointerRouter_16( - this, - Invocation.getter(#pointerRouter), - ), - returnValueForMissingStub: _FakePointerRouter_16( - this, - Invocation.getter(#pointerRouter), - ), - ) as _i11.PointerRouter); + _i11.PointerRouter get pointerRouter => + (super.noSuchMethod( + Invocation.getter(#pointerRouter), + returnValue: _FakePointerRouter_16( + this, + Invocation.getter(#pointerRouter), + ), + returnValueForMissingStub: _FakePointerRouter_16( + this, + Invocation.getter(#pointerRouter), + ), + ) + as _i11.PointerRouter); @override - _i11.GestureArenaManager get gestureArena => (super.noSuchMethod( - Invocation.getter(#gestureArena), - returnValue: _FakeGestureArenaManager_17( - this, - Invocation.getter(#gestureArena), - ), - returnValueForMissingStub: _FakeGestureArenaManager_17( - this, - Invocation.getter(#gestureArena), - ), - ) as _i11.GestureArenaManager); + _i11.GestureArenaManager get gestureArena => + (super.noSuchMethod( + Invocation.getter(#gestureArena), + returnValue: _FakeGestureArenaManager_17( + this, + Invocation.getter(#gestureArena), + ), + returnValueForMissingStub: _FakeGestureArenaManager_17( + this, + Invocation.getter(#gestureArena), + ), + ) + as _i11.GestureArenaManager); @override - _i11.PointerSignalResolver get pointerSignalResolver => (super.noSuchMethod( - Invocation.getter(#pointerSignalResolver), - returnValue: _FakePointerSignalResolver_18( - this, - Invocation.getter(#pointerSignalResolver), - ), - returnValueForMissingStub: _FakePointerSignalResolver_18( - this, - Invocation.getter(#pointerSignalResolver), - ), - ) as _i11.PointerSignalResolver); + _i11.PointerSignalResolver get pointerSignalResolver => + (super.noSuchMethod( + Invocation.getter(#pointerSignalResolver), + returnValue: _FakePointerSignalResolver_18( + this, + Invocation.getter(#pointerSignalResolver), + ), + returnValueForMissingStub: _FakePointerSignalResolver_18( + this, + Invocation.getter(#pointerSignalResolver), + ), + ) + as _i11.PointerSignalResolver); @override - bool get resamplingEnabled => (super.noSuchMethod( - Invocation.getter(#resamplingEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get resamplingEnabled => + (super.noSuchMethod( + Invocation.getter(#resamplingEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override 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_15( - this, - Invocation.getter(#samplingOffset), - ), - returnValueForMissingStub: _FakeDuration_15( - this, - Invocation.getter(#samplingOffset), - ), - ) as Duration); + Duration get samplingOffset => + (super.noSuchMethod( + Invocation.getter(#samplingOffset), + returnValue: _FakeDuration_15( + this, + Invocation.getter(#samplingOffset), + ), + returnValueForMissingStub: _FakeDuration_15( + this, + Invocation.getter(#samplingOffset), + ), + ) + as Duration); @override set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( - Invocation.setter( - #samplingOffset, - _samplingOffset, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#samplingOffset, _samplingOffset), + returnValueForMissingStub: null, + ); @override - _i11.SamplingClock get samplingClock => (super.noSuchMethod( - Invocation.getter(#samplingClock), - returnValue: _FakeSamplingClock_19( - this, - Invocation.getter(#samplingClock), - ), - returnValueForMissingStub: _FakeSamplingClock_19( - this, - Invocation.getter(#samplingClock), - ), - ) as _i11.SamplingClock); + _i11.SamplingClock get samplingClock => + (super.noSuchMethod( + Invocation.getter(#samplingClock), + returnValue: _FakeSamplingClock_19( + this, + Invocation.getter(#samplingClock), + ), + returnValueForMissingStub: _FakeSamplingClock_19( + this, + Invocation.getter(#samplingClock), + ), + ) + as _i11.SamplingClock); @override - _i12.PipelineOwner get pipelineOwner => (super.noSuchMethod( - Invocation.getter(#pipelineOwner), - returnValue: _FakePipelineOwner_20( - this, - Invocation.getter(#pipelineOwner), - ), - returnValueForMissingStub: _FakePipelineOwner_20( - this, - Invocation.getter(#pipelineOwner), - ), - ) as _i12.PipelineOwner); + _i12.PipelineOwner get pipelineOwner => + (super.noSuchMethod( + Invocation.getter(#pipelineOwner), + returnValue: _FakePipelineOwner_20( + this, + Invocation.getter(#pipelineOwner), + ), + returnValueForMissingStub: _FakePipelineOwner_20( + this, + Invocation.getter(#pipelineOwner), + ), + ) + as _i12.PipelineOwner); @override - _i12.RenderView get renderView => (super.noSuchMethod( - Invocation.getter(#renderView), - returnValue: _FakeRenderView_21( - this, - Invocation.getter(#renderView), - ), - returnValueForMissingStub: _FakeRenderView_21( - this, - Invocation.getter(#renderView), - ), - ) as _i12.RenderView); + _i12.RenderView get renderView => + (super.noSuchMethod( + Invocation.getter(#renderView), + returnValue: _FakeRenderView_21( + this, + Invocation.getter(#renderView), + ), + returnValueForMissingStub: _FakeRenderView_21( + this, + Invocation.getter(#renderView), + ), + ) + as _i12.RenderView); @override - _i12.MouseTracker get mouseTracker => (super.noSuchMethod( - Invocation.getter(#mouseTracker), - returnValue: _FakeMouseTracker_22( - this, - Invocation.getter(#mouseTracker), - ), - returnValueForMissingStub: _FakeMouseTracker_22( - this, - Invocation.getter(#mouseTracker), - ), - ) as _i12.MouseTracker); + _i12.MouseTracker get mouseTracker => + (super.noSuchMethod( + Invocation.getter(#mouseTracker), + returnValue: _FakeMouseTracker_22( + this, + Invocation.getter(#mouseTracker), + ), + returnValueForMissingStub: _FakeMouseTracker_22( + this, + Invocation.getter(#mouseTracker), + ), + ) + as _i12.MouseTracker); @override - _i12.PipelineOwner get rootPipelineOwner => (super.noSuchMethod( - Invocation.getter(#rootPipelineOwner), - returnValue: _FakePipelineOwner_20( - this, - Invocation.getter(#rootPipelineOwner), - ), - returnValueForMissingStub: _FakePipelineOwner_20( - this, - Invocation.getter(#rootPipelineOwner), - ), - ) as _i12.PipelineOwner); + _i12.PipelineOwner get rootPipelineOwner => + (super.noSuchMethod( + Invocation.getter(#rootPipelineOwner), + returnValue: _FakePipelineOwner_20( + this, + Invocation.getter(#rootPipelineOwner), + ), + returnValueForMissingStub: _FakePipelineOwner_20( + this, + Invocation.getter(#rootPipelineOwner), + ), + ) + as _i12.PipelineOwner); @override - Iterable<_i12.RenderView> get renderViews => (super.noSuchMethod( - Invocation.getter(#renderViews), - returnValue: <_i12.RenderView>[], - returnValueForMissingStub: <_i12.RenderView>[], - ) as Iterable<_i12.RenderView>); + Iterable<_i12.RenderView> get renderViews => + (super.noSuchMethod( + Invocation.getter(#renderViews), + returnValue: <_i12.RenderView>[], + returnValueForMissingStub: <_i12.RenderView>[], + ) + as Iterable<_i12.RenderView>); @override - bool get sendFramesToEngine => (super.noSuchMethod( - Invocation.getter(#sendFramesToEngine), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get sendFramesToEngine => + (super.noSuchMethod( + Invocation.getter(#sendFramesToEngine), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool get semanticsEnabled => (super.noSuchMethod( - Invocation.getter(#semanticsEnabled), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get semanticsEnabled => + (super.noSuchMethod( + Invocation.getter(#semanticsEnabled), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - int get debugOutstandingSemanticsHandles => (super.noSuchMethod( - Invocation.getter(#debugOutstandingSemanticsHandles), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get debugOutstandingSemanticsHandles => + (super.noSuchMethod( + Invocation.getter(#debugOutstandingSemanticsHandles), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - _i9.AccessibilityFeatures get accessibilityFeatures => (super.noSuchMethod( - Invocation.getter(#accessibilityFeatures), - returnValue: _FakeAccessibilityFeatures_23( - this, - Invocation.getter(#accessibilityFeatures), - ), - returnValueForMissingStub: _FakeAccessibilityFeatures_23( - this, - Invocation.getter(#accessibilityFeatures), - ), - ) as _i9.AccessibilityFeatures); + _i9.AccessibilityFeatures get accessibilityFeatures => + (super.noSuchMethod( + Invocation.getter(#accessibilityFeatures), + returnValue: _FakeAccessibilityFeatures_23( + this, + Invocation.getter(#accessibilityFeatures), + ), + returnValueForMissingStub: _FakeAccessibilityFeatures_23( + this, + Invocation.getter(#accessibilityFeatures), + ), + ) + as _i9.AccessibilityFeatures); @override - bool get disableAnimations => (super.noSuchMethod( - Invocation.getter(#disableAnimations), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get disableAnimations => + (super.noSuchMethod( + Invocation.getter(#disableAnimations), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override void initInstances() => super.noSuchMethod( - Invocation.method( - #initInstances, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initInstances, []), + returnValueForMissingStub: null, + ); + + @override + void resetInternalState() => super.noSuchMethod( + Invocation.method(#resetInternalState, []), + returnValueForMissingStub: null, + ); @override void initServiceExtensions() => super.noSuchMethod( - Invocation.method( - #initServiceExtensions, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initServiceExtensions, []), + returnValueForMissingStub: null, + ); @override void addObserver(_i25.WidgetsBindingObserver? observer) => super.noSuchMethod( - Invocation.method( - #addObserver, - [observer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addObserver, [observer]), + returnValueForMissingStub: null, + ); @override bool removeObserver(_i25.WidgetsBindingObserver? observer) => (super.noSuchMethod( - Invocation.method( - #removeObserver, - [observer], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + Invocation.method(#removeObserver, [observer]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i4.Future<_i9.AppExitResponse> handleRequestAppExit() => (super.noSuchMethod( - Invocation.method( - #handleRequestAppExit, - [], - ), - returnValue: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), - returnValueForMissingStub: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), - ) as _i4.Future<_i9.AppExitResponse>); + _i4.Future<_i9.AppExitResponse> handleRequestAppExit() => + (super.noSuchMethod( + Invocation.method(#handleRequestAppExit, []), + returnValue: _i4.Future<_i9.AppExitResponse>.value( + _i9.AppExitResponse.exit, + ), + returnValueForMissingStub: _i4.Future<_i9.AppExitResponse>.value( + _i9.AppExitResponse.exit, + ), + ) + as _i4.Future<_i9.AppExitResponse>); @override void handleMetricsChanged() => super.noSuchMethod( - Invocation.method( - #handleMetricsChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleMetricsChanged, []), + returnValueForMissingStub: null, + ); @override void handleTextScaleFactorChanged() => super.noSuchMethod( - Invocation.method( - #handleTextScaleFactorChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleTextScaleFactorChanged, []), + returnValueForMissingStub: null, + ); @override void handlePlatformBrightnessChanged() => super.noSuchMethod( - Invocation.method( - #handlePlatformBrightnessChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePlatformBrightnessChanged, []), + returnValueForMissingStub: null, + ); @override void handleAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method( - #handleAccessibilityFeaturesChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleAccessibilityFeaturesChanged, []), + returnValueForMissingStub: null, + ); @override void handleLocaleChanged() => super.noSuchMethod( - Invocation.method( - #handleLocaleChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleLocaleChanged, []), + returnValueForMissingStub: null, + ); @override void dispatchLocalesChanged(List<_i9.Locale>? locales) => super.noSuchMethod( - Invocation.method( - #dispatchLocalesChanged, - [locales], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispatchLocalesChanged, [locales]), + returnValueForMissingStub: null, + ); @override void dispatchAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method( - #dispatchAccessibilityFeaturesChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispatchAccessibilityFeaturesChanged, []), + returnValueForMissingStub: null, + ); @override - _i4.Future<bool> handlePopRoute() => (super.noSuchMethod( - Invocation.method( - #handlePopRoute, - [], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<bool>.value(true), - ) as _i4.Future<bool>); + _i4.Future<bool> handlePopRoute() => + (super.noSuchMethod( + Invocation.method(#handlePopRoute, []), + returnValue: _i4.Future<bool>.value(false), + returnValueForMissingStub: _i4.Future<bool>.value(false), + ) + as _i4.Future<bool>); @override - _i4.Future<bool> handlePushRoute(String? route) => (super.noSuchMethod( - Invocation.method( - #handlePushRoute, - [route], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<bool>.value(true), - ) as _i4.Future<bool>); + _i4.Future<bool> handlePushRoute(String? route) => + (super.noSuchMethod( + Invocation.method(#handlePushRoute, [route]), + returnValue: _i4.Future<bool>.value(false), + returnValueForMissingStub: _i4.Future<bool>.value(false), + ) + as _i4.Future<bool>); @override void handleAppLifecycleStateChanged(_i9.AppLifecycleState? state) => super.noSuchMethod( - Invocation.method( - #handleAppLifecycleStateChanged, - [state], - ), + Invocation.method(#handleAppLifecycleStateChanged, [state]), returnValueForMissingStub: null, ); + @override + void handleViewFocusChanged(_i9.ViewFocusEvent? event) => super.noSuchMethod( + Invocation.method(#handleViewFocusChanged, [event]), + returnValueForMissingStub: null, + ); + @override void handleMemoryPressure() => super.noSuchMethod( - Invocation.method( - #handleMemoryPressure, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleMemoryPressure, []), + returnValueForMissingStub: null, + ); @override void drawFrame() => super.noSuchMethod( - Invocation.method( - #drawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawFrame, []), + returnValueForMissingStub: null, + ); @override _i13.Widget wrapWithDefaultView(_i13.Widget? rootWidget) => (super.noSuchMethod( - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - returnValue: _FakeWidget_24( - this, - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - ), - returnValueForMissingStub: _FakeWidget_24( - this, - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - ), - ) as _i13.Widget); + Invocation.method(#wrapWithDefaultView, [rootWidget]), + returnValue: _FakeWidget_24( + this, + Invocation.method(#wrapWithDefaultView, [rootWidget]), + ), + returnValueForMissingStub: _FakeWidget_24( + this, + Invocation.method(#wrapWithDefaultView, [rootWidget]), + ), + ) + as _i13.Widget); @override void scheduleAttachRootWidget(_i13.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #scheduleAttachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleAttachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachRootWidget(_i13.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #attachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachToBuildOwner(_i25.RootWidget? widget) => super.noSuchMethod( - Invocation.method( - #attachToBuildOwner, - [widget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachToBuildOwner, [widget]), + returnValueForMissingStub: null, + ); @override - _i4.Future<void> performReassemble() => (super.noSuchMethod( - Invocation.method( - #performReassemble, - [], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + _i4.Future<void> performReassemble() => + (super.noSuchMethod( + Invocation.method(#performReassemble, []), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override _i9.Locale? computePlatformResolvedLocale( - List<_i9.Locale>? supportedLocales) => + List<_i9.Locale>? supportedLocales, + ) => (super.noSuchMethod( - Invocation.method( - #computePlatformResolvedLocale, - [supportedLocales], - ), - returnValueForMissingStub: null, - ) as _i9.Locale?); + Invocation.method(#computePlatformResolvedLocale, [ + supportedLocales, + ]), + returnValueForMissingStub: null, + ) + as _i9.Locale?); @override - bool debugCheckZone(String? entryPoint) => (super.noSuchMethod( - Invocation.method( - #debugCheckZone, - [entryPoint], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool debugCheckZone(String? entryPoint) => + (super.noSuchMethod( + Invocation.method(#debugCheckZone, [entryPoint]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override _i4.Future<void> lockEvents(_i4.Future<void> Function()? callback) => (super.noSuchMethod( - Invocation.method( - #lockEvents, - [callback], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + Invocation.method(#lockEvents, [callback]), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override void unlocked() => super.noSuchMethod( - Invocation.method( - #unlocked, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#unlocked, []), + returnValueForMissingStub: null, + ); @override - _i4.Future<void> reassembleApplication() => (super.noSuchMethod( - Invocation.method( - #reassembleApplication, - [], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + _i4.Future<void> reassembleApplication() => + (super.noSuchMethod( + Invocation.method(#reassembleApplication, []), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override void registerSignalServiceExtension({ required String? name, - required _i8.AsyncCallback? callback, - }) => - super.noSuchMethod( - Invocation.method( - #registerSignalServiceExtension, - [], - { - #name: name, - #callback: callback, - }, - ), - returnValueForMissingStub: null, - ); + required _i7.AsyncCallback? callback, + }) => super.noSuchMethod( + Invocation.method(#registerSignalServiceExtension, [], { + #name: name, + #callback: callback, + }), + returnValueForMissingStub: null, + ); @override void registerBoolServiceExtension({ required String? name, - required _i8.AsyncValueGetter<bool>? getter, - required _i8.AsyncValueSetter<bool>? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerBoolServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + required _i7.AsyncValueGetter<bool>? getter, + required _i7.AsyncValueSetter<bool>? setter, + }) => super.noSuchMethod( + Invocation.method(#registerBoolServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); @override void registerNumericServiceExtension({ required String? name, - required _i8.AsyncValueGetter<double>? getter, - required _i8.AsyncValueSetter<double>? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerNumericServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); - - @override - void postEvent( - String? eventKind, - Map<String, dynamic>? eventData, - ) => + required _i7.AsyncValueGetter<double>? getter, + required _i7.AsyncValueSetter<double>? setter, + }) => super.noSuchMethod( + Invocation.method(#registerNumericServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); + + @override + void postEvent(String? eventKind, Map<String, dynamic>? eventData) => super.noSuchMethod( - Invocation.method( - #postEvent, - [ - eventKind, - eventData, - ], - ), + Invocation.method(#postEvent, [eventKind, eventData]), returnValueForMissingStub: null, ); @override void registerStringServiceExtension({ required String? name, - required _i8.AsyncValueGetter<String>? getter, - required _i8.AsyncValueSetter<String>? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerStringServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + required _i7.AsyncValueGetter<String>? getter, + required _i7.AsyncValueSetter<String>? setter, + }) => 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, - ); + required _i7.ServiceExtensionCallback? callback, + }) => super.noSuchMethod( + Invocation.method(#registerServiceExtension, [], { + #name: name, + #callback: callback, + }), + returnValueForMissingStub: null, + ); @override - _i10.BinaryMessenger createBinaryMessenger() => (super.noSuchMethod( - Invocation.method( - #createBinaryMessenger, - [], - ), - returnValue: _FakeBinaryMessenger_12( - this, - Invocation.method( - #createBinaryMessenger, - [], - ), - ), - returnValueForMissingStub: _FakeBinaryMessenger_12( - this, - Invocation.method( - #createBinaryMessenger, - [], - ), - ), - ) as _i10.BinaryMessenger); + _i10.BinaryMessenger createBinaryMessenger() => + (super.noSuchMethod( + Invocation.method(#createBinaryMessenger, []), + returnValue: _FakeBinaryMessenger_12( + this, + Invocation.method(#createBinaryMessenger, []), + ), + returnValueForMissingStub: _FakeBinaryMessenger_12( + this, + Invocation.method(#createBinaryMessenger, []), + ), + ) + as _i10.BinaryMessenger); @override _i4.Future<void> handleSystemMessage(Object? systemMessage) => (super.noSuchMethod( - Invocation.method( - #handleSystemMessage, - [systemMessage], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + Invocation.method(#handleSystemMessage, [systemMessage]), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override void initLicenses() => super.noSuchMethod( - Invocation.method( - #initLicenses, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initLicenses, []), + returnValueForMissingStub: null, + ); @override void evict(String? asset) => super.noSuchMethod( - Invocation.method( - #evict, - [asset], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#evict, [asset]), + returnValueForMissingStub: null, + ); @override void readInitialLifecycleStateFromNativeWindow() => super.noSuchMethod( - Invocation.method( - #readInitialLifecycleStateFromNativeWindow, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#readInitialLifecycleStateFromNativeWindow, []), + returnValueForMissingStub: null, + ); @override _i4.Future<_i9.AppExitResponse> exitApplication( @@ -2103,77 +1838,57 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { int? exitCode = 0, ]) => (super.noSuchMethod( - Invocation.method( - #exitApplication, - [ - exitType, - exitCode, - ], - ), - returnValue: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), - returnValueForMissingStub: - _i4.Future<_i9.AppExitResponse>.value(_i9.AppExitResponse.exit), - ) as _i4.Future<_i9.AppExitResponse>); + Invocation.method(#exitApplication, [exitType, exitCode]), + returnValue: _i4.Future<_i9.AppExitResponse>.value( + _i9.AppExitResponse.exit, + ), + returnValueForMissingStub: _i4.Future<_i9.AppExitResponse>.value( + _i9.AppExitResponse.exit, + ), + ) + as _i4.Future<_i9.AppExitResponse>); @override - _i10.RestorationManager createRestorationManager() => (super.noSuchMethod( - Invocation.method( - #createRestorationManager, - [], - ), - returnValue: _FakeRestorationManager_14( - this, - Invocation.method( - #createRestorationManager, - [], - ), - ), - returnValueForMissingStub: _FakeRestorationManager_14( - this, - Invocation.method( - #createRestorationManager, - [], - ), - ), - ) as _i10.RestorationManager); + _i10.RestorationManager createRestorationManager() => + (super.noSuchMethod( + Invocation.method(#createRestorationManager, []), + returnValue: _FakeRestorationManager_14( + this, + Invocation.method(#createRestorationManager, []), + ), + returnValueForMissingStub: _FakeRestorationManager_14( + this, + Invocation.method(#createRestorationManager, []), + ), + ) + as _i10.RestorationManager); @override void setSystemUiChangeCallback(_i10.SystemUiChangeCallback? callback) => super.noSuchMethod( - Invocation.method( - #setSystemUiChangeCallback, - [callback], - ), + Invocation.method(#setSystemUiChangeCallback, [callback]), returnValueForMissingStub: null, ); @override - _i4.Future<void> initializationComplete() => (super.noSuchMethod( - Invocation.method( - #initializationComplete, - [], - ), - returnValue: _i4.Future<void>.value(), - returnValueForMissingStub: _i4.Future<void>.value(), - ) as _i4.Future<void>); + _i4.Future<void> initializationComplete() => + (super.noSuchMethod( + Invocation.method(#initializationComplete, []), + returnValue: _i4.Future<void>.value(), + returnValueForMissingStub: _i4.Future<void>.value(), + ) + as _i4.Future<void>); @override void addTimingsCallback(_i9.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #addTimingsCallback, - [callback], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addTimingsCallback, [callback]), + returnValueForMissingStub: null, + ); @override void removeTimingsCallback(_i9.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #removeTimingsCallback, - [callback], - ), + Invocation.method(#removeTimingsCallback, [callback]), returnValueForMissingStub: null, ); @@ -2185,90 +1900,62 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { _i27.Flow? flow, }) => (super.noSuchMethod( - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - returnValue: _i16.ifNotNull( - _i16.dummyValueOrNull<T>( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - ), - (T v) => _i4.Future<T>.value(v), - ) ?? - _FakeFuture_3<T>( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, ), - returnValueForMissingStub: _i16.ifNotNull( - _i16.dummyValueOrNull<T>( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, + returnValue: + _i16.ifNotNull( + _i16.dummyValueOrNull<T>( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + (T v) => _i4.Future<T>.value(v), + ) ?? + _FakeFuture_3<T>( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), ), - ), - (T v) => _i4.Future<T>.value(v), - ) ?? - _FakeFuture_3<T>( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - ), - ) as _i4.Future<T>); + returnValueForMissingStub: + _i16.ifNotNull( + _i16.dummyValueOrNull<T>( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + (T v) => _i4.Future<T>.value(v), + ) ?? + _FakeFuture_3<T>( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + ) + as _i4.Future<T>); @override - bool handleEventLoopCallback() => (super.noSuchMethod( - Invocation.method( - #handleEventLoopCallback, - [], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool handleEventLoopCallback() => + (super.noSuchMethod( + Invocation.method(#handleEventLoopCallback, []), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override int scheduleFrameCallback( @@ -2276,211 +1963,155 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { bool? rescheduling = false, }) => (super.noSuchMethod( - Invocation.method( - #scheduleFrameCallback, - [callback], - {#rescheduling: rescheduling}, - ), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + Invocation.method( + #scheduleFrameCallback, + [callback], + {#rescheduling: rescheduling}, + ), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override void cancelFrameCallbackWithId(int? id) => super.noSuchMethod( - Invocation.method( - #cancelFrameCallbackWithId, - [id], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#cancelFrameCallbackWithId, [id]), + returnValueForMissingStub: null, + ); @override - bool debugAssertNoTransientCallbacks(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoTransientCallbacks, - [reason], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool debugAssertNoTransientCallbacks(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTransientCallbacks, [reason]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override bool debugAssertNoPendingPerformanceModeRequests(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoPendingPerformanceModeRequests, - [reason], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + Invocation.method(#debugAssertNoPendingPerformanceModeRequests, [ + reason, + ]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - bool debugAssertNoTimeDilation(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoTimeDilation, - [reason], - ), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool debugAssertNoTimeDilation(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTimeDilation, [reason]), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override void addPersistentFrameCallback(_i26.FrameCallback? callback) => super.noSuchMethod( - Invocation.method( - #addPersistentFrameCallback, - [callback], - ), + Invocation.method(#addPersistentFrameCallback, [callback]), returnValueForMissingStub: null, ); @override void addPostFrameCallback( _i26.FrameCallback? callback, { - String? debugLabel = r'callback', - }) => - super.noSuchMethod( - Invocation.method( - #addPostFrameCallback, - [callback], - {#debugLabel: debugLabel}, - ), - returnValueForMissingStub: null, - ); + String? debugLabel = 'callback', + }) => super.noSuchMethod( + Invocation.method( + #addPostFrameCallback, + [callback], + {#debugLabel: debugLabel}, + ), + returnValueForMissingStub: null, + ); @override void ensureFrameCallbacksRegistered() => super.noSuchMethod( - Invocation.method( - #ensureFrameCallbacksRegistered, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureFrameCallbacksRegistered, []), + returnValueForMissingStub: null, + ); @override void ensureVisualUpdate() => super.noSuchMethod( - Invocation.method( - #ensureVisualUpdate, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureVisualUpdate, []), + returnValueForMissingStub: null, + ); @override void scheduleFrame() => super.noSuchMethod( - Invocation.method( - #scheduleFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleForcedFrame() => super.noSuchMethod( - Invocation.method( - #scheduleForcedFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleForcedFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleWarmUpFrame() => super.noSuchMethod( - Invocation.method( - #scheduleWarmUpFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleWarmUpFrame, []), + returnValueForMissingStub: null, + ); @override void resetEpoch() => super.noSuchMethod( - Invocation.method( - #resetEpoch, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetEpoch, []), + returnValueForMissingStub: null, + ); @override void handleBeginFrame(Duration? rawTimeStamp) => super.noSuchMethod( - Invocation.method( - #handleBeginFrame, - [rawTimeStamp], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleBeginFrame, [rawTimeStamp]), + returnValueForMissingStub: null, + ); @override _i26.PerformanceModeRequestHandle? requestPerformanceMode( - _i9.DartPerformanceMode? mode) => + _i9.DartPerformanceMode? mode, + ) => (super.noSuchMethod( - Invocation.method( - #requestPerformanceMode, - [mode], - ), - returnValueForMissingStub: null, - ) as _i26.PerformanceModeRequestHandle?); + Invocation.method(#requestPerformanceMode, [mode]), + returnValueForMissingStub: null, + ) + as _i26.PerformanceModeRequestHandle?); @override void handleDrawFrame() => super.noSuchMethod( - Invocation.method( - #handleDrawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleDrawFrame, []), + returnValueForMissingStub: null, + ); @override void cancelPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #cancelPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#cancelPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void handlePointerEvent(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handlePointerEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePointerEvent, [event]), + returnValueForMissingStub: null, + ); @override void hitTestInView( _i11.HitTestResult? result, _i9.Offset? position, int? viewId, - ) => - super.noSuchMethod( - Invocation.method( - #hitTestInView, - [ - result, - position, - viewId, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#hitTestInView, [result, position, viewId]), + returnValueForMissingStub: null, + ); @override - void hitTest( - _i11.HitTestResult? result, - _i9.Offset? position, - ) => + void hitTest(_i11.HitTestResult? result, _i9.Offset? position) => super.noSuchMethod( - Invocation.method( - #hitTest, - [ - result, - position, - ], - ), + Invocation.method(#hitTest, [result, position]), returnValueForMissingStub: null, ); @@ -2488,215 +2119,187 @@ class MockWidgetsBinding extends _i1.Mock implements _i25.WidgetsBinding { void dispatchEvent( _i10.PointerEvent? event, _i11.HitTestResult? hitTestResult, - ) => - super.noSuchMethod( - Invocation.method( - #dispatchEvent, - [ - event, - hitTestResult, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#dispatchEvent, [event, hitTestResult]), + returnValueForMissingStub: null, + ); @override void handleEvent( _i10.PointerEvent? event, _i11.HitTestEntry<_i11.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 - _i12.PipelineOwner createRootPipelineOwner() => (super.noSuchMethod( - Invocation.method( - #createRootPipelineOwner, - [], - ), - returnValue: _FakePipelineOwner_20( - this, - Invocation.method( - #createRootPipelineOwner, - [], - ), - ), - returnValueForMissingStub: _FakePipelineOwner_20( - this, - Invocation.method( - #createRootPipelineOwner, - [], - ), - ), - ) as _i12.PipelineOwner); + _i12.PipelineOwner createRootPipelineOwner() => + (super.noSuchMethod( + Invocation.method(#createRootPipelineOwner, []), + returnValue: _FakePipelineOwner_20( + this, + Invocation.method(#createRootPipelineOwner, []), + ), + returnValueForMissingStub: _FakePipelineOwner_20( + this, + Invocation.method(#createRootPipelineOwner, []), + ), + ) + as _i12.PipelineOwner); @override void addRenderView(_i12.RenderView? view) => super.noSuchMethod( - Invocation.method( - #addRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addRenderView, [view]), + returnValueForMissingStub: null, + ); @override void removeRenderView(_i12.RenderView? view) => super.noSuchMethod( - Invocation.method( - #removeRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeRenderView, [view]), + returnValueForMissingStub: null, + ); @override _i12.ViewConfiguration createViewConfigurationFor( - _i12.RenderView? renderView) => + _i12.RenderView? renderView, + ) => (super.noSuchMethod( - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - returnValue: _FakeViewConfiguration_25( - this, - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - ), - returnValueForMissingStub: _FakeViewConfiguration_25( - this, - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - ), - ) as _i12.ViewConfiguration); + Invocation.method(#createViewConfigurationFor, [renderView]), + returnValue: _FakeViewConfiguration_25( + this, + Invocation.method(#createViewConfigurationFor, [renderView]), + ), + returnValueForMissingStub: _FakeViewConfiguration_25( + this, + Invocation.method(#createViewConfigurationFor, [renderView]), + ), + ) + as _i12.ViewConfiguration); + + @override + _i9.SceneBuilder createSceneBuilder() => + (super.noSuchMethod( + Invocation.method(#createSceneBuilder, []), + returnValue: _FakeSceneBuilder_26( + this, + Invocation.method(#createSceneBuilder, []), + ), + returnValueForMissingStub: _FakeSceneBuilder_26( + this, + Invocation.method(#createSceneBuilder, []), + ), + ) + as _i9.SceneBuilder); + + @override + _i9.PictureRecorder createPictureRecorder() => + (super.noSuchMethod( + Invocation.method(#createPictureRecorder, []), + returnValue: _FakePictureRecorder_27( + this, + Invocation.method(#createPictureRecorder, []), + ), + returnValueForMissingStub: _FakePictureRecorder_27( + this, + Invocation.method(#createPictureRecorder, []), + ), + ) + as _i9.PictureRecorder); + + @override + _i9.Canvas createCanvas(_i9.PictureRecorder? recorder) => + (super.noSuchMethod( + Invocation.method(#createCanvas, [recorder]), + returnValue: _FakeCanvas_28( + this, + Invocation.method(#createCanvas, [recorder]), + ), + returnValueForMissingStub: _FakeCanvas_28( + this, + Invocation.method(#createCanvas, [recorder]), + ), + ) + as _i9.Canvas); @override void initMouseTracker([_i12.MouseTracker? tracker]) => super.noSuchMethod( - Invocation.method( - #initMouseTracker, - [tracker], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initMouseTracker, [tracker]), + returnValueForMissingStub: null, + ); @override void performSemanticsAction(_i9.SemanticsActionEvent? action) => super.noSuchMethod( - Invocation.method( - #performSemanticsAction, - [action], - ), + Invocation.method(#performSemanticsAction, [action]), returnValueForMissingStub: null, ); @override void deferFirstFrame() => super.noSuchMethod( - Invocation.method( - #deferFirstFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#deferFirstFrame, []), + returnValueForMissingStub: null, + ); @override void allowFirstFrame() => super.noSuchMethod( - Invocation.method( - #allowFirstFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#allowFirstFrame, []), + returnValueForMissingStub: null, + ); @override void resetFirstFrameSent() => super.noSuchMethod( - Invocation.method( - #resetFirstFrameSent, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetFirstFrameSent, []), + returnValueForMissingStub: null, + ); @override void addSemanticsEnabledListener(_i9.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addSemanticsEnabledListener, - [listener], - ), + Invocation.method(#addSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override void removeSemanticsEnabledListener(_i9.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeSemanticsEnabledListener, - [listener], - ), + Invocation.method(#removeSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override - _i12.SemanticsHandle ensureSemantics() => (super.noSuchMethod( - Invocation.method( - #ensureSemantics, - [], - ), - returnValue: _FakeSemanticsHandle_26( - this, - Invocation.method( - #ensureSemantics, - [], - ), - ), - returnValueForMissingStub: _FakeSemanticsHandle_26( - this, - Invocation.method( - #ensureSemantics, - [], - ), - ), - ) as _i12.SemanticsHandle); + _i12.SemanticsHandle ensureSemantics() => + (super.noSuchMethod( + Invocation.method(#ensureSemantics, []), + returnValue: _FakeSemanticsHandle_29( + this, + Invocation.method(#ensureSemantics, []), + ), + returnValueForMissingStub: _FakeSemanticsHandle_29( + this, + Invocation.method(#ensureSemantics, []), + ), + ) + as _i12.SemanticsHandle); @override _i9.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => (super.noSuchMethod( - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - returnValue: _FakeSemanticsUpdateBuilder_27( - this, - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - ), - returnValueForMissingStub: _FakeSemanticsUpdateBuilder_27( - this, - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - ), - ) as _i9.SemanticsUpdateBuilder); + Invocation.method(#createSemanticsUpdateBuilder, []), + returnValue: _FakeSemanticsUpdateBuilder_30( + this, + Invocation.method(#createSemanticsUpdateBuilder, []), + ), + returnValueForMissingStub: _FakeSemanticsUpdateBuilder_30( + this, + Invocation.method(#createSemanticsUpdateBuilder, []), + ), + ) + as _i9.SemanticsUpdateBuilder); }