1058 lines
27 KiB
Dart
1058 lines
27 KiB
Dart
// Mocks generated by Mockito 5.4.4 from annotations
|
|
// in guru_app/test/analytics/dma_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i12;
|
|
import 'dart:ui' as _i10;
|
|
|
|
import 'package:flutter/material.dart' as _i11;
|
|
import 'package:guru_app/account/model/user.dart' as _i13;
|
|
import 'package:guru_app/analytics/abtest/abtest_model.dart' as _i15;
|
|
import 'package:guru_app/analytics/guru_analytics.dart' as _i6;
|
|
import 'package:guru_app/app/app_models.dart' as _i4;
|
|
import 'package:guru_app/financial/product/product_model.dart' as _i7;
|
|
import 'package:guru_app/firebase/firebase.dart' as _i16;
|
|
import 'package:guru_app/guru_app.dart' as _i3;
|
|
import 'package:guru_app/property/app_property.dart' as _i8;
|
|
import 'package:guru_utils/ads/ads.dart' as _i5;
|
|
import 'package:guru_utils/auth/auth_credential_manager.dart' as _i14;
|
|
import 'package:guru_utils/packages/guru_package.dart' as _i2;
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:mockito/src/dummies.dart' as _i9;
|
|
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
// ignore_for_file: comment_references
|
|
// ignore_for_file: deprecated_member_use
|
|
// ignore_for_file: deprecated_member_use_from_same_package
|
|
// ignore_for_file: implementation_imports
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
// ignore_for_file: prefer_const_constructors
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
// ignore_for_file: camel_case_types
|
|
// ignore_for_file: subtype_of_sealed_class
|
|
|
|
class _FakeRootPackage_0 extends _i1.SmartFake implements _i2.RootPackage {
|
|
_FakeRootPackage_0(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeAppSpec_1 extends _i1.SmartFake implements _i3.AppSpec {
|
|
_FakeAppSpec_1(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeIGuruSdkProtocol_2 extends _i1.SmartFake
|
|
implements _i3.IGuruSdkProtocol {
|
|
_FakeIGuruSdkProtocol_2(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeRemoteDeployment_3 extends _i1.SmartFake
|
|
implements _i4.RemoteDeployment {
|
|
_FakeRemoteDeployment_3(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeAppDetails_4 extends _i1.SmartFake implements _i4.AppDetails {
|
|
_FakeAppDetails_4(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeAdsProfile_5 extends _i1.SmartFake implements _i5.AdsProfile {
|
|
_FakeAdsProfile_5(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeAdjustProfile_6 extends _i1.SmartFake implements _i6.AdjustProfile {
|
|
_FakeAdjustProfile_6(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeProductProfile_7 extends _i1.SmartFake
|
|
implements _i7.ProductProfile {
|
|
_FakeProductProfile_7(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeDeployment_8 extends _i1.SmartFake implements _i4.Deployment {
|
|
_FakeDeployment_8(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakePropertyBundle_9 extends _i1.SmartFake
|
|
implements _i8.PropertyBundle {
|
|
_FakePropertyBundle_9(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [GuruApp].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockGuruApp extends _i1.Mock implements _i3.GuruApp {
|
|
MockGuruApp() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i2.RootPackage get rootPackage => (super.noSuchMethod(
|
|
Invocation.getter(#rootPackage),
|
|
returnValue: _FakeRootPackage_0(
|
|
this,
|
|
Invocation.getter(#rootPackage),
|
|
),
|
|
) as _i2.RootPackage);
|
|
|
|
@override
|
|
_i3.AppSpec get appSpec => (super.noSuchMethod(
|
|
Invocation.getter(#appSpec),
|
|
returnValue: _FakeAppSpec_1(
|
|
this,
|
|
Invocation.getter(#appSpec),
|
|
),
|
|
) as _i3.AppSpec);
|
|
|
|
@override
|
|
_i3.IGuruSdkProtocol get protocol => (super.noSuchMethod(
|
|
Invocation.getter(#protocol),
|
|
returnValue: _FakeIGuruSdkProtocol_2(
|
|
this,
|
|
Invocation.getter(#protocol),
|
|
),
|
|
) as _i3.IGuruSdkProtocol);
|
|
|
|
@override
|
|
_i4.RemoteDeployment get remoteDeployment => (super.noSuchMethod(
|
|
Invocation.getter(#remoteDeployment),
|
|
returnValue: _FakeRemoteDeployment_3(
|
|
this,
|
|
Invocation.getter(#remoteDeployment),
|
|
),
|
|
) as _i4.RemoteDeployment);
|
|
|
|
@override
|
|
String get appName => (super.noSuchMethod(
|
|
Invocation.getter(#appName),
|
|
returnValue: _i9.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#appName),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
String get flavor => (super.noSuchMethod(
|
|
Invocation.getter(#flavor),
|
|
returnValue: _i9.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#flavor),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
_i4.AppDetails get details => (super.noSuchMethod(
|
|
Invocation.getter(#details),
|
|
returnValue: _FakeAppDetails_4(
|
|
this,
|
|
Invocation.getter(#details),
|
|
),
|
|
) as _i4.AppDetails);
|
|
|
|
@override
|
|
_i5.AdsProfile get adsProfile => (super.noSuchMethod(
|
|
Invocation.getter(#adsProfile),
|
|
returnValue: _FakeAdsProfile_5(
|
|
this,
|
|
Invocation.getter(#adsProfile),
|
|
),
|
|
) as _i5.AdsProfile);
|
|
|
|
@override
|
|
_i6.AdjustProfile get adjustProfile => (super.noSuchMethod(
|
|
Invocation.getter(#adjustProfile),
|
|
returnValue: _FakeAdjustProfile_6(
|
|
this,
|
|
Invocation.getter(#adjustProfile),
|
|
),
|
|
) as _i6.AdjustProfile);
|
|
|
|
@override
|
|
_i7.ProductProfile get productProfile => (super.noSuchMethod(
|
|
Invocation.getter(#productProfile),
|
|
returnValue: _FakeProductProfile_7(
|
|
this,
|
|
Invocation.getter(#productProfile),
|
|
),
|
|
) as _i7.ProductProfile);
|
|
|
|
@override
|
|
Map<String, dynamic> get defaultRemoteConfig => (super.noSuchMethod(
|
|
Invocation.getter(#defaultRemoteConfig),
|
|
returnValue: <String, dynamic>{},
|
|
) as Map<String, dynamic>);
|
|
|
|
@override
|
|
Set<String> get conversionEvents => (super.noSuchMethod(
|
|
Invocation.getter(#conversionEvents),
|
|
returnValue: <String>{},
|
|
) as Set<String>);
|
|
|
|
@override
|
|
Iterable<_i10.Locale> get supportedLocales => (super.noSuchMethod(
|
|
Invocation.getter(#supportedLocales),
|
|
returnValue: <_i10.Locale>[],
|
|
) as Iterable<_i10.Locale>);
|
|
|
|
@override
|
|
Iterable<_i11.LocalizationsDelegate<dynamic>> get localizationsDelegates =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#localizationsDelegates),
|
|
returnValue: <_i11.LocalizationsDelegate<dynamic>>[],
|
|
) as Iterable<_i11.LocalizationsDelegate<dynamic>>);
|
|
|
|
@override
|
|
String getRemoteConfigKey(String? key) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getRemoteConfigKey,
|
|
[key],
|
|
),
|
|
returnValue: _i9.dummyValue<String>(
|
|
this,
|
|
Invocation.method(
|
|
#getRemoteConfigKey,
|
|
[key],
|
|
),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
_i4.RemoteDeployment refreshRemoteDeployment() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#refreshRemoteDeployment,
|
|
[],
|
|
),
|
|
returnValue: _FakeRemoteDeployment_3(
|
|
this,
|
|
Invocation.method(
|
|
#refreshRemoteDeployment,
|
|
[],
|
|
),
|
|
),
|
|
) as _i4.RemoteDeployment);
|
|
|
|
@override
|
|
_i12.Future<bool> switchAccount(
|
|
_i13.GuruUser? user,
|
|
_i14.Credential? credential, {
|
|
_i13.GuruUser? oldUser,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#switchAccount,
|
|
[
|
|
user,
|
|
credential,
|
|
],
|
|
{#oldUser: oldUser},
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
void showToast(
|
|
String? message, {
|
|
Duration? duration = const Duration(seconds: 3),
|
|
}) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#showToast,
|
|
[message],
|
|
{#duration: duration},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [AppSpec].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockAppSpec extends _i1.Mock implements _i3.AppSpec {
|
|
MockAppSpec() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
String get appName => (super.noSuchMethod(
|
|
Invocation.getter(#appName),
|
|
returnValue: _i9.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#appName),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
_i3.AppCategory get appCategory => (super.noSuchMethod(
|
|
Invocation.getter(#appCategory),
|
|
returnValue: _i3.AppCategory.game,
|
|
) as _i3.AppCategory);
|
|
|
|
@override
|
|
String get flavor => (super.noSuchMethod(
|
|
Invocation.getter(#flavor),
|
|
returnValue: _i9.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#flavor),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
_i4.AppDetails get details => (super.noSuchMethod(
|
|
Invocation.getter(#details),
|
|
returnValue: _FakeAppDetails_4(
|
|
this,
|
|
Invocation.getter(#details),
|
|
),
|
|
) as _i4.AppDetails);
|
|
|
|
@override
|
|
_i5.AdsProfile get adsProfile => (super.noSuchMethod(
|
|
Invocation.getter(#adsProfile),
|
|
returnValue: _FakeAdsProfile_5(
|
|
this,
|
|
Invocation.getter(#adsProfile),
|
|
),
|
|
) as _i5.AdsProfile);
|
|
|
|
@override
|
|
_i7.ProductProfile get productProfile => (super.noSuchMethod(
|
|
Invocation.getter(#productProfile),
|
|
returnValue: _FakeProductProfile_7(
|
|
this,
|
|
Invocation.getter(#productProfile),
|
|
),
|
|
) as _i7.ProductProfile);
|
|
|
|
@override
|
|
_i6.AdjustProfile get adjustProfile => (super.noSuchMethod(
|
|
Invocation.getter(#adjustProfile),
|
|
returnValue: _FakeAdjustProfile_6(
|
|
this,
|
|
Invocation.getter(#adjustProfile),
|
|
),
|
|
) as _i6.AdjustProfile);
|
|
|
|
@override
|
|
_i4.Deployment get deployment => (super.noSuchMethod(
|
|
Invocation.getter(#deployment),
|
|
returnValue: _FakeDeployment_8(
|
|
this,
|
|
Invocation.getter(#deployment),
|
|
),
|
|
) as _i4.Deployment);
|
|
|
|
@override
|
|
Map<String, dynamic> get defaultRemoteConfig => (super.noSuchMethod(
|
|
Invocation.getter(#defaultRemoteConfig),
|
|
returnValue: <String, dynamic>{},
|
|
) as Map<String, dynamic>);
|
|
|
|
@override
|
|
Map<String, _i15.ABTestExperiment> get localABTestExperiments =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#localABTestExperiments),
|
|
returnValue: <String, _i15.ABTestExperiment>{},
|
|
) as Map<String, _i15.ABTestExperiment>);
|
|
|
|
@override
|
|
String getRemoteConfigKey(String? key) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getRemoteConfigKey,
|
|
[key],
|
|
),
|
|
returnValue: _i9.dummyValue<String>(
|
|
this,
|
|
Invocation.method(
|
|
#getRemoteConfigKey,
|
|
[key],
|
|
),
|
|
),
|
|
) as String);
|
|
}
|
|
|
|
/// A class which mocks [Deployment].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockDeployment extends _i1.Mock implements _i4.Deployment {
|
|
MockDeployment() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
int get propertyCacheSize => (super.noSuchMethod(
|
|
Invocation.getter(#propertyCacheSize),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
bool get enableDithering => (super.noSuchMethod(
|
|
Invocation.getter(#enableDithering),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
bool get disableRewardsAds => (super.noSuchMethod(
|
|
Invocation.getter(#disableRewardsAds),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
bool get enableAnalyticsStatistic => (super.noSuchMethod(
|
|
Invocation.getter(#enableAnalyticsStatistic),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
bool get autoRestoreIap => (super.noSuchMethod(
|
|
Invocation.getter(#autoRestoreIap),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
int get initIgc => (super.noSuchMethod(
|
|
Invocation.getter(#initIgc),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
int get igcBalanceSecret => (super.noSuchMethod(
|
|
Invocation.getter(#igcBalanceSecret),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
bool get syncAccountProfile => (super.noSuchMethod(
|
|
Invocation.getter(#syncAccountProfile),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
bool get autoRequestNotificationPermission => (super.noSuchMethod(
|
|
Invocation.getter(#autoRequestNotificationPermission),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
int get logFileSizeLimit => (super.noSuchMethod(
|
|
Invocation.getter(#logFileSizeLimit),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
int get logFileCount => (super.noSuchMethod(
|
|
Invocation.getter(#logFileCount),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
int get persistentLogLevel => (super.noSuchMethod(
|
|
Invocation.getter(#persistentLogLevel),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
Set<String> get conversionEvents => (super.noSuchMethod(
|
|
Invocation.getter(#conversionEvents),
|
|
returnValue: <String>{},
|
|
) as Set<String>);
|
|
|
|
@override
|
|
int get apiConnectTimeout => (super.noSuchMethod(
|
|
Invocation.getter(#apiConnectTimeout),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
int get apiReceiveTimeout => (super.noSuchMethod(
|
|
Invocation.getter(#apiReceiveTimeout),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
int get iosSandboxSubsRenewalSpeed => (super.noSuchMethod(
|
|
Invocation.getter(#iosSandboxSubsRenewalSpeed),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
bool get adsCompliantInitialization => (super.noSuchMethod(
|
|
Invocation.getter(#adsCompliantInitialization),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
_i16.PromptTrigger get notificationPermissionPromptTrigger =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#notificationPermissionPromptTrigger),
|
|
returnValue: _i16.PromptTrigger.rationale,
|
|
) as _i16.PromptTrigger);
|
|
|
|
@override
|
|
bool get trackingNotificationPermissionPass => (super.noSuchMethod(
|
|
Invocation.getter(#trackingNotificationPermissionPass),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
int get trackingNotificationPermissionPassLimitTimes => (super.noSuchMethod(
|
|
Invocation.getter(#trackingNotificationPermissionPassLimitTimes),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
bool get enabledGuruAnalyticsStrategy => (super.noSuchMethod(
|
|
Invocation.getter(#enabledGuruAnalyticsStrategy),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
bool get allowInterstitialAsAlternativeReward => (super.noSuchMethod(
|
|
Invocation.getter(#allowInterstitialAsAlternativeReward),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
bool get showInternalAdsWhenBannerUnavailable => (super.noSuchMethod(
|
|
Invocation.getter(#showInternalAdsWhenBannerUnavailable),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
int get subscriptionRestoreGraceCount => (super.noSuchMethod(
|
|
Invocation.getter(#subscriptionRestoreGraceCount),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
int get fullscreenAdsMinInterval => (super.noSuchMethod(
|
|
Invocation.getter(#fullscreenAdsMinInterval),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
int get subscriptionGraceDays => (super.noSuchMethod(
|
|
Invocation.getter(#subscriptionGraceDays),
|
|
returnValue: 0,
|
|
) as int);
|
|
|
|
@override
|
|
bool get enabledSyncAccountProfile => (super.noSuchMethod(
|
|
Invocation.getter(#enabledSyncAccountProfile),
|
|
returnValue: false,
|
|
) as bool);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#toJson,
|
|
[],
|
|
),
|
|
returnValue: <String, dynamic>{},
|
|
) as Map<String, dynamic>);
|
|
}
|
|
|
|
/// A class which mocks [AdjustProfile].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockAdjustProfile extends _i1.Mock implements _i6.AdjustProfile {
|
|
MockAdjustProfile() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
String get appToken => (super.noSuchMethod(
|
|
Invocation.getter(#appToken),
|
|
returnValue: _i9.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#appToken),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
Map<String, _i6.AdjustEventConverter> get eventNameMapping =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#eventNameMapping),
|
|
returnValue: <String, _i6.AdjustEventConverter>{},
|
|
) as Map<String, _i6.AdjustEventConverter>);
|
|
|
|
@override
|
|
bool get isEnabled => (super.noSuchMethod(
|
|
Invocation.getter(#isEnabled),
|
|
returnValue: false,
|
|
) as bool);
|
|
}
|
|
|
|
/// A class which mocks [AppProperty].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockAppProperty extends _i1.Mock implements _i8.AppProperty {
|
|
MockAppProperty() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i12.Future<bool> setInt(
|
|
_i8.PropertyKey? key,
|
|
int? value,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setInt,
|
|
[
|
|
key,
|
|
value,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<int> getAndIncrease(
|
|
_i8.PropertyKey? key, {
|
|
int? defValue = 0,
|
|
String? tag,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getAndIncrease,
|
|
[key],
|
|
{
|
|
#defValue: defValue,
|
|
#tag: tag,
|
|
},
|
|
),
|
|
returnValue: _i12.Future<int>.value(0),
|
|
) as _i12.Future<int>);
|
|
|
|
@override
|
|
_i12.Future<int> increaseAndGet(
|
|
_i8.PropertyKey? key, {
|
|
int? defValue = 0,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#increaseAndGet,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<int>.value(0),
|
|
) as _i12.Future<int>);
|
|
|
|
@override
|
|
_i12.Future<int> decreaseAndGet(
|
|
_i8.PropertyKey? key, {
|
|
int? defValue = 0,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#decreaseAndGet,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<int>.value(0),
|
|
) as _i12.Future<int>);
|
|
|
|
@override
|
|
_i12.Future<int> getAndDecrease(
|
|
_i8.PropertyKey? key, {
|
|
int? defValue = 0,
|
|
String? tag,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getAndDecrease,
|
|
[key],
|
|
{
|
|
#defValue: defValue,
|
|
#tag: tag,
|
|
},
|
|
),
|
|
returnValue: _i12.Future<int>.value(0),
|
|
) as _i12.Future<int>);
|
|
|
|
@override
|
|
_i12.Future<bool> setDouble(
|
|
_i8.PropertyKey? key,
|
|
double? value,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setDouble,
|
|
[
|
|
key,
|
|
value,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<bool> setString(
|
|
_i8.PropertyKey? key,
|
|
String? value,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setString,
|
|
[
|
|
key,
|
|
value,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<bool> setBool(
|
|
_i8.PropertyKey? key,
|
|
bool? value,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setBool,
|
|
[
|
|
key,
|
|
value,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<bool> setProperties(_i8.PropertyBundle? bundle) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setProperties,
|
|
[bundle],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<Map<_i8.PropertyKey, String>> loadAllValues() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#loadAllValues,
|
|
[],
|
|
),
|
|
returnValue: _i12.Future<Map<_i8.PropertyKey, String>>.value(
|
|
<_i8.PropertyKey, String>{}),
|
|
) as _i12.Future<Map<_i8.PropertyKey, String>>);
|
|
|
|
@override
|
|
_i12.Future<Map<_i8.PropertyKey, String>> getValues(
|
|
List<_i8.PropertyKey>? keys) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getValues,
|
|
[keys],
|
|
),
|
|
returnValue: _i12.Future<Map<_i8.PropertyKey, String>>.value(
|
|
<_i8.PropertyKey, String>{}),
|
|
) as _i12.Future<Map<_i8.PropertyKey, String>>);
|
|
|
|
@override
|
|
_i12.Future<int> getInt(
|
|
_i8.PropertyKey? key, {
|
|
required int? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getInt,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<int>.value(0),
|
|
) as _i12.Future<int>);
|
|
|
|
@override
|
|
_i12.Future<double> getDouble(
|
|
_i8.PropertyKey? key, {
|
|
required double? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getDouble,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<double>.value(0.0),
|
|
) as _i12.Future<double>);
|
|
|
|
@override
|
|
_i12.Future<String> getString(
|
|
_i8.PropertyKey? key, {
|
|
required String? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getString,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<String>.value(_i9.dummyValue<String>(
|
|
this,
|
|
Invocation.method(
|
|
#getString,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
)),
|
|
) as _i12.Future<String>);
|
|
|
|
@override
|
|
_i12.Future<bool> getBool(
|
|
_i8.PropertyKey? key, {
|
|
required bool? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getBool,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<int> getOrCreateInt(
|
|
_i8.PropertyKey? key,
|
|
int? ifAbsent,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getOrCreateInt,
|
|
[
|
|
key,
|
|
ifAbsent,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<int>.value(0),
|
|
) as _i12.Future<int>);
|
|
|
|
@override
|
|
_i12.Future<double> getOrCreateDouble(
|
|
_i8.PropertyKey? key,
|
|
double? ifAbsent,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getOrCreateDouble,
|
|
[
|
|
key,
|
|
ifAbsent,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<double>.value(0.0),
|
|
) as _i12.Future<double>);
|
|
|
|
@override
|
|
_i12.Future<String> getOrCreateString(
|
|
_i8.PropertyKey? key,
|
|
String? ifAbsent,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getOrCreateString,
|
|
[
|
|
key,
|
|
ifAbsent,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<String>.value(_i9.dummyValue<String>(
|
|
this,
|
|
Invocation.method(
|
|
#getOrCreateString,
|
|
[
|
|
key,
|
|
ifAbsent,
|
|
],
|
|
),
|
|
)),
|
|
) as _i12.Future<String>);
|
|
|
|
@override
|
|
_i12.Future<bool> getOrCreateBool(
|
|
_i8.PropertyKey? key,
|
|
bool? ifAbsent,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getOrCreateBool,
|
|
[
|
|
key,
|
|
ifAbsent,
|
|
],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<_i8.PropertyBundle> loadValuesByTag(String? tag) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#loadValuesByTag,
|
|
[tag],
|
|
),
|
|
returnValue:
|
|
_i12.Future<_i8.PropertyBundle>.value(_FakePropertyBundle_9(
|
|
this,
|
|
Invocation.method(
|
|
#loadValuesByTag,
|
|
[tag],
|
|
),
|
|
)),
|
|
) as _i12.Future<_i8.PropertyBundle>);
|
|
|
|
@override
|
|
_i12.Future<_i8.PropertyBundle> loadValuesByUsage(int? usage) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#loadValuesByUsage,
|
|
[usage],
|
|
),
|
|
returnValue:
|
|
_i12.Future<_i8.PropertyBundle>.value(_FakePropertyBundle_9(
|
|
this,
|
|
Invocation.method(
|
|
#loadValuesByUsage,
|
|
[usage],
|
|
),
|
|
)),
|
|
) as _i12.Future<_i8.PropertyBundle>);
|
|
|
|
@override
|
|
_i12.Future<bool> remove(_i8.PropertyKey? key) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#remove,
|
|
[key],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<bool> removeAllWithTag(String? tag) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#removeAllWithTag,
|
|
[tag],
|
|
),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
) as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<bool?> getBoolOrNull(
|
|
_i8.PropertyKey? key, {
|
|
bool? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getBoolOrNull,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<bool?>.value(),
|
|
) as _i12.Future<bool?>);
|
|
|
|
@override
|
|
_i12.Future<double?> getDoubleOrNull(
|
|
_i8.PropertyKey? key, {
|
|
double? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getDoubleOrNull,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<double?>.value(),
|
|
) as _i12.Future<double?>);
|
|
|
|
@override
|
|
_i12.Future<int?> getIntOrNull(
|
|
_i8.PropertyKey? key, {
|
|
int? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getIntOrNull,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<int?>.value(),
|
|
) as _i12.Future<int?>);
|
|
|
|
@override
|
|
_i12.Future<String?> getStringOrNull(
|
|
_i8.PropertyKey? key, {
|
|
String? defValue,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getStringOrNull,
|
|
[key],
|
|
{#defValue: defValue},
|
|
),
|
|
returnValue: _i12.Future<String?>.value(),
|
|
) as _i12.Future<String?>);
|
|
}
|