mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
AGP compat updates
This commit is contained in:
parent
b0128c867c
commit
1740a42020
100 changed files with 2216 additions and 491 deletions
|
@ -1,16 +1,3 @@
|
|||
buildscript {
|
||||
ext.kotlin_version = '2.0.20'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.3.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
|
@ -18,12 +5,12 @@ allprojects {
|
|||
}
|
||||
}
|
||||
|
||||
rootProject.buildDir = '../build'
|
||||
rootProject.buildDir = "../build"
|
||||
subprojects {
|
||||
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
project.evaluationDependsOn(":app")
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete) {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
org.gradle.jvmargs=-Xmx1536M
|
||||
android.enableR8=true
|
||||
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
android.enableJetifier=true
|
|
@ -1,6 +1,5 @@
|
|||
#Fri Jun 23 08:50:38 CEST 2017
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
|
||||
|
|
|
@ -1,11 +1,25 @@
|
|||
include ':app'
|
||||
pluginManagement {
|
||||
def flutterSdkPath = {
|
||||
def properties = new Properties()
|
||||
file("local.properties").withInputStream { properties.load(it) }
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
return flutterSdkPath
|
||||
}()
|
||||
|
||||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
||||
def properties = new Properties()
|
||||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||
|
||||
assert localPropertiesFile.exists()
|
||||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|
||||
plugins {
|
||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||
id "com.android.application" version "8.1.0" apply false
|
||||
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
|
||||
}
|
||||
|
||||
include ":app"
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 46a7da857d4113eb3998567b18ac0b33a470f4fd
|
||||
Subproject commit 844bbf08115bde7bb9da4e7ee83edd67dd9695a7
|
|
@ -1 +1 @@
|
|||
Subproject commit f8746dbef5c5ad5ed2dad12f615723d087083e9c
|
||||
Subproject commit 8120d1dd3dc21a7b64cb176df3419f44fc9505c3
|
|
@ -1 +1 @@
|
|||
Subproject commit c0b8994009d29bc7fd2f0f2edbb004c39bf93951
|
||||
Subproject commit 7186b0bb936428cba441b69f77b508d007c50fb2
|
|
@ -1 +1 @@
|
|||
Subproject commit 2a74a97fb0f0e22a5280b22c010b710cdeec33bb
|
||||
Subproject commit d3fa8169524376579da08a5062ad88e45ee9b1eb
|
|
@ -19,8 +19,8 @@ FCResult _updateSparkUsedTagsWith(
|
|||
) {
|
||||
// hash the tags here since this function is called in a background isolate
|
||||
final hashedTags = LibSpark.hashTags(
|
||||
base64Tags: tags.map((e) => e[0] as String),
|
||||
);
|
||||
base64Tags: tags.map((e) => e[0] as String).toSet(),
|
||||
).toList();
|
||||
|
||||
if (hashedTags.isEmpty) {
|
||||
// nothing to add, return early
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'currency.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetCurrencyCollection on Isar {
|
||||
IsarCollection<Currency> get currencies => this.collection();
|
||||
|
@ -135,7 +135,7 @@ const CurrencySchema = CollectionSchema(
|
|||
getId: _currencyGetId,
|
||||
getLinks: _currencyGetLinks,
|
||||
attach: _currencyAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _currencyEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'pair.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetPairCollection on Isar {
|
||||
IsarCollection<Pair> get pairs => this.collection();
|
||||
|
@ -92,7 +92,7 @@ const PairSchema = CollectionSchema(
|
|||
getId: _pairGetId,
|
||||
getLinks: _pairGetLinks,
|
||||
attach: _pairAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _pairEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'address_label.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetAddressLabelCollection on Isar {
|
||||
IsarCollection<AddressLabel> get addressLabels => this.collection();
|
||||
|
@ -81,7 +81,7 @@ const AddressLabelSchema = CollectionSchema(
|
|||
getId: _addressLabelGetId,
|
||||
getLinks: _addressLabelGetLinks,
|
||||
attach: _addressLabelAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _addressLabelEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'block_explorer.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetTransactionBlockExplorerCollection on Isar {
|
||||
IsarCollection<TransactionBlockExplorer> get transactionBlockExplorers =>
|
||||
|
@ -54,7 +54,7 @@ const TransactionBlockExplorerSchema = CollectionSchema(
|
|||
getId: _transactionBlockExplorerGetId,
|
||||
getLinks: _transactionBlockExplorerGetLinks,
|
||||
attach: _transactionBlockExplorerAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _transactionBlockExplorerEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'address.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetAddressCollection on Isar {
|
||||
IsarCollection<Address> get addresses => this.collection();
|
||||
|
@ -124,7 +124,7 @@ const AddressSchema = CollectionSchema(
|
|||
getId: _addressGetId,
|
||||
getLinks: _addressGetLinks,
|
||||
attach: _addressAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _addressEstimateSize(
|
||||
|
@ -1821,7 +1821,7 @@ extension AddressQueryProperty
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const DerivationPathSchema = Schema(
|
||||
name: r'DerivationPath',
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'input.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const InputSchema = Schema(
|
||||
name: r'Input',
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'output.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const OutputSchema = Schema(
|
||||
name: r'Output',
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'transaction.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetTransactionCollection on Isar {
|
||||
IsarCollection<Transaction> get transactions => this.collection();
|
||||
|
@ -171,7 +171,7 @@ const TransactionSchema = CollectionSchema(
|
|||
getId: _transactionGetId,
|
||||
getLinks: _transactionGetLinks,
|
||||
attach: _transactionAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _transactionEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'utxo.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetUTXOCollection on Isar {
|
||||
IsarCollection<UTXO> get utxos => this.collection();
|
||||
|
@ -149,7 +149,7 @@ const UTXOSchema = CollectionSchema(
|
|||
getId: _uTXOGetId,
|
||||
getLinks: _uTXOGetLinks,
|
||||
attach: _uTXOAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _uTXOEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'input_v2.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const OutpointV2Schema = Schema(
|
||||
name: r'OutpointV2',
|
||||
|
@ -330,7 +330,7 @@ extension OutpointV2QueryObject
|
|||
on QueryBuilder<OutpointV2, OutpointV2, QFilterCondition> {}
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const InputV2Schema = Schema(
|
||||
name: r'InputV2',
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'output_v2.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const OutputV2Schema = Schema(
|
||||
name: r'OutputV2',
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'transaction_v2.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetTransactionV2Collection on Isar {
|
||||
IsarCollection<TransactionV2> get transactionV2s => this.collection();
|
||||
|
@ -177,7 +177,7 @@ const TransactionV2Schema = CollectionSchema(
|
|||
getId: _transactionV2GetId,
|
||||
getLinks: _transactionV2GetLinks,
|
||||
attach: _transactionV2Attach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _transactionV2EstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'contact_entry.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetContactEntryCollection on Isar {
|
||||
IsarCollection<ContactEntry> get contactEntrys => this.collection();
|
||||
|
@ -69,7 +69,7 @@ const ContactEntrySchema = CollectionSchema(
|
|||
getId: _contactEntryGetId,
|
||||
getLinks: _contactEntryGetLinks,
|
||||
attach: _contactEntryAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _contactEntryEstimateSize(
|
||||
|
@ -1142,7 +1142,7 @@ extension ContactEntryQueryProperty
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const ContactAddressEntrySchema = Schema(
|
||||
name: r'ContactAddressEntry',
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'encrypted_string_value.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetEncryptedStringValueCollection on Isar {
|
||||
IsarCollection<EncryptedStringValue> get encryptedStringValues =>
|
||||
|
@ -54,7 +54,7 @@ const EncryptedStringValueSchema = CollectionSchema(
|
|||
getId: _encryptedStringValueGetId,
|
||||
getLinks: _encryptedStringValueGetLinks,
|
||||
attach: _encryptedStringValueAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _encryptedStringValueEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'eth_contract.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetEthContractCollection on Isar {
|
||||
IsarCollection<EthContract> get ethContracts => this.collection();
|
||||
|
@ -74,7 +74,7 @@ const EthContractSchema = CollectionSchema(
|
|||
getId: _ethContractGetId,
|
||||
getLinks: _ethContractGetLinks,
|
||||
attach: _ethContractAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _ethContractEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'lelantus_coin.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetLelantusCoinCollection on Isar {
|
||||
IsarCollection<LelantusCoin> get lelantusCoins => this.collection();
|
||||
|
@ -101,7 +101,7 @@ const LelantusCoinSchema = CollectionSchema(
|
|||
getId: _lelantusCoinGetId,
|
||||
getLinks: _lelantusCoinGetLinks,
|
||||
attach: _lelantusCoinAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _lelantusCoinEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'log.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetLogCollection on Isar {
|
||||
IsarCollection<Log> get logs => this.collection();
|
||||
|
@ -59,7 +59,7 @@ const LogSchema = CollectionSchema(
|
|||
getId: _logGetId,
|
||||
getLinks: _logGetLinks,
|
||||
attach: _logAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _logEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'sent_to_address.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetSentToAddressCollection on Isar {
|
||||
IsarCollection<SentToAddress> get sentToAddress => this.collection();
|
||||
|
@ -81,7 +81,7 @@ const SentToAddressSchema = CollectionSchema(
|
|||
getId: _sentToAddressGetId,
|
||||
getLinks: _sentToAddressGetLinks,
|
||||
attach: _sentToAddressAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _sentToAddressEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'transaction_note.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetTransactionNoteCollection on Isar {
|
||||
IsarCollection<TransactionNote> get transactionNotes => this.collection();
|
||||
|
@ -76,7 +76,7 @@ const TransactionNoteSchema = CollectionSchema(
|
|||
getId: _transactionNoteGetId,
|
||||
getLinks: _transactionNoteGetLinks,
|
||||
attach: _transactionNoteAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _transactionNoteEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'ordinal.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetOrdinalCollection on Isar {
|
||||
IsarCollection<Ordinal> get ordinals => this.collection();
|
||||
|
@ -83,7 +83,7 @@ const OrdinalSchema = CollectionSchema(
|
|||
getId: _ordinalGetId,
|
||||
getLinks: _ordinalGetLinks,
|
||||
attach: _ordinalAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _ordinalEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'stack_theme.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetStackThemeCollection on Isar {
|
||||
IsarCollection<StackTheme> get stackThemes => this.collection();
|
||||
|
@ -860,7 +860,7 @@ const StackThemeSchema = CollectionSchema(
|
|||
getId: _stackThemeGetId,
|
||||
getLinks: _stackThemeGetLinks,
|
||||
attach: _stackThemeAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _stackThemeEstimateSize(
|
||||
|
@ -18012,7 +18012,7 @@ extension StackThemeQueryProperty
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const ThemeAssetsSchema = Schema(
|
||||
name: r'ThemeAssets',
|
||||
|
@ -25833,7 +25833,7 @@ extension ThemeAssetsQueryObject
|
|||
on QueryBuilder<ThemeAssets, ThemeAssets, QFilterCondition> {}
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const ThemeAssetsV2Schema = Schema(
|
||||
name: r'ThemeAssetsV2',
|
||||
|
@ -29441,7 +29441,7 @@ extension ThemeAssetsV2QueryObject
|
|||
on QueryBuilder<ThemeAssetsV2, ThemeAssetsV2, QFilterCondition> {}
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
const ThemeAssetsV3Schema = Schema(
|
||||
name: r'ThemeAssetsV3',
|
||||
|
|
|
@ -22,7 +22,7 @@ import 'package:flutter_libmonero/monero/monero.dart' as libxmr;
|
|||
import 'package:flutter_libmonero/wownero/wownero.dart' as libwow;
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:wakelock/wakelock.dart';
|
||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||
|
||||
import '../../../notifications/show_flush_bar.dart';
|
||||
import '../../../pages_desktop_specific/desktop_home_view.dart';
|
||||
|
@ -282,7 +282,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
),
|
||||
);
|
||||
} else {
|
||||
if (!Platform.isLinux) await Wakelock.enable();
|
||||
if (!Platform.isLinux) await WakelockPlus.enable();
|
||||
|
||||
final info = WalletInfo.createNew(
|
||||
coin: widget.coin,
|
||||
|
@ -426,12 +426,12 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
}
|
||||
|
||||
if (!Platform.isLinux && !isDesktop) {
|
||||
await Wakelock.disable();
|
||||
await WakelockPlus.disable();
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (!Platform.isLinux && !isDesktop) {
|
||||
await Wakelock.disable();
|
||||
await WakelockPlus.disable();
|
||||
}
|
||||
|
||||
// if (e is HiveError &&
|
||||
|
@ -463,7 +463,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
}
|
||||
|
||||
if (!Platform.isLinux && !isDesktop) {
|
||||
await Wakelock.disable();
|
||||
await WakelockPlus.disable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ import 'dart:async';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:wakelock/wakelock.dart';
|
||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||
|
||||
import '../../pages_desktop_specific/cashfusion/sub_widgets/fusion_progress.dart';
|
||||
import '../../providers/cash_fusion/fusion_progress_ui_state_provider.dart';
|
||||
|
@ -85,7 +85,7 @@ class _FusionProgressViewState extends ConsumerState<FusionProgressView> {
|
|||
message: "Stopping fusion",
|
||||
);
|
||||
|
||||
await Wakelock.disable();
|
||||
await WakelockPlus.disable();
|
||||
|
||||
return true;
|
||||
} else {
|
||||
|
@ -101,7 +101,7 @@ class _FusionProgressViewState extends ConsumerState<FusionProgressView> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
Wakelock.disable();
|
||||
WakelockPlus.disable();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ class _FusionProgressViewState extends ConsumerState<FusionProgressView> {
|
|||
.watch(fusionProgressUIStateProvider(widget.walletId))
|
||||
.fusionRoundsCompleted;
|
||||
|
||||
Wakelock.enable();
|
||||
WakelockPlus.enable();
|
||||
|
||||
return WillPopScope(
|
||||
onWillPop: () async {
|
||||
|
|
|
@ -18,7 +18,7 @@ import 'package:isar/isar.dart';
|
|||
import 'package:stack_wallet_backup/stack_wallet_backup.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
import 'package:wakelock/wakelock.dart';
|
||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||
|
||||
import '../../../../../app_config.dart';
|
||||
import '../../../../../db/hive/db.dart';
|
||||
|
@ -700,7 +700,7 @@ abstract class SWB {
|
|||
StackRestoringUIState? uiState,
|
||||
SecureStorageInterface secureStorageInterface,
|
||||
) async {
|
||||
if (!Platform.isLinux) await Wakelock.enable();
|
||||
if (!Platform.isLinux) await WakelockPlus.enable();
|
||||
|
||||
Logging.instance.log(
|
||||
"SWB creating temp backup",
|
||||
|
@ -914,7 +914,7 @@ abstract class SWB {
|
|||
await status;
|
||||
}
|
||||
|
||||
if (!Platform.isLinux) await Wakelock.disable();
|
||||
if (!Platform.isLinux) await WakelockPlus.disable();
|
||||
// check if cancel was requested and restore previous state
|
||||
if (_checkShouldCancel(
|
||||
preRestoreState,
|
||||
|
|
|
@ -16,7 +16,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
import 'package:wakelock/wakelock.dart';
|
||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||
|
||||
import '../../../../providers/providers.dart';
|
||||
import '../../../../route_generator.dart';
|
||||
|
@ -125,7 +125,7 @@ class _WalletNetworkSettingsViewState
|
|||
}
|
||||
|
||||
Future<void> _attemptRescan() async {
|
||||
if (!Platform.isLinux) await Wakelock.enable();
|
||||
if (!Platform.isLinux) await WakelockPlus.enable();
|
||||
|
||||
try {
|
||||
if (mounted) {
|
||||
|
@ -180,7 +180,7 @@ class _WalletNetworkSettingsViewState
|
|||
);
|
||||
}
|
||||
} catch (e) {
|
||||
if (!Platform.isLinux) await Wakelock.disable();
|
||||
if (!Platform.isLinux) await WakelockPlus.disable();
|
||||
|
||||
if (mounted) {
|
||||
// pop rescanning dialog
|
||||
|
@ -212,7 +212,7 @@ class _WalletNetworkSettingsViewState
|
|||
}
|
||||
}
|
||||
} finally {
|
||||
if (!Platform.isLinux) await Wakelock.disable();
|
||||
if (!Platform.isLinux) await WakelockPlus.disable();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import 'dart:io';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:wakelock/wakelock.dart';
|
||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||
|
||||
import '../../../providers/cash_fusion/fusion_progress_ui_state_provider.dart';
|
||||
import '../../../providers/global/prefs_provider.dart';
|
||||
|
@ -139,7 +139,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
message: "Stopping fusion",
|
||||
);
|
||||
|
||||
await Wakelock.disable();
|
||||
await WakelockPlus.disable();
|
||||
|
||||
return true;
|
||||
} else {
|
||||
|
@ -156,7 +156,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
|
||||
@override
|
||||
dispose() {
|
||||
Wakelock.disable();
|
||||
WakelockPlus.disable();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
.fusionRoundsCompleted;
|
||||
|
||||
if (!Platform.isLinux) {
|
||||
Wakelock.enable();
|
||||
WakelockPlus.enable();
|
||||
}
|
||||
|
||||
return DesktopDialog(
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:local_auth/auth_strings.dart';
|
||||
import 'package:local_auth/local_auth.dart';
|
||||
import 'package:local_auth_android/local_auth_android.dart';
|
||||
|
||||
import 'logger.dart';
|
||||
|
||||
|
@ -62,10 +62,11 @@ class Biometrics {
|
|||
if (availableSystems.contains(BiometricType.face)) {
|
||||
try {
|
||||
final bool didAuthenticate = await localAuth.authenticate(
|
||||
biometricOnly: true,
|
||||
localizedReason: localizedReason,
|
||||
stickyAuth: true,
|
||||
iOSAuthStrings: const IOSAuthMessages(),
|
||||
options: const AuthenticationOptions(
|
||||
stickyAuth: true,
|
||||
biometricOnly: true,
|
||||
),
|
||||
);
|
||||
|
||||
if (didAuthenticate) {
|
||||
|
@ -80,10 +81,11 @@ class Biometrics {
|
|||
} else if (availableSystems.contains(BiometricType.fingerprint)) {
|
||||
try {
|
||||
final bool didAuthenticate = await localAuth.authenticate(
|
||||
biometricOnly: true,
|
||||
localizedReason: localizedReason,
|
||||
stickyAuth: true,
|
||||
iOSAuthStrings: const IOSAuthMessages(),
|
||||
options: const AuthenticationOptions(
|
||||
stickyAuth: true,
|
||||
biometricOnly: true,
|
||||
),
|
||||
);
|
||||
|
||||
if (didAuthenticate) {
|
||||
|
@ -100,14 +102,18 @@ class Biometrics {
|
|||
if (availableSystems.contains(BiometricType.fingerprint)) {
|
||||
try {
|
||||
final bool didAuthenticate = await localAuth.authenticate(
|
||||
biometricOnly: true,
|
||||
localizedReason: localizedReason,
|
||||
stickyAuth: true,
|
||||
androidAuthStrings: AndroidAuthMessages(
|
||||
biometricHint: "",
|
||||
cancelButton: cancelButtonText,
|
||||
signInTitle: title,
|
||||
options: const AuthenticationOptions(
|
||||
stickyAuth: true,
|
||||
biometricOnly: true,
|
||||
),
|
||||
authMessages: <AuthMessages>[
|
||||
AndroidAuthMessages(
|
||||
biometricHint: "",
|
||||
cancelButton: cancelButtonText,
|
||||
signInTitle: title,
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
if (didAuthenticate) {
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'frost_wallet_info.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetFrostWalletInfoCollection on Isar {
|
||||
IsarCollection<FrostWalletInfo> get frostWalletInfo => this.collection();
|
||||
|
@ -68,7 +68,7 @@ const FrostWalletInfoSchema = CollectionSchema(
|
|||
getId: _frostWalletInfoGetId,
|
||||
getLinks: _frostWalletInfoGetLinks,
|
||||
attach: _frostWalletInfoAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _frostWalletInfoEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'spark_coin.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetSparkCoinCollection on Isar {
|
||||
IsarCollection<SparkCoin> get sparkCoins => this.collection();
|
||||
|
@ -139,7 +139,7 @@ const SparkCoinSchema = CollectionSchema(
|
|||
getId: _sparkCoinGetId,
|
||||
getLinks: _sparkCoinGetLinks,
|
||||
attach: _sparkCoinAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _sparkCoinEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'token_wallet_info.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetTokenWalletInfoCollection on Isar {
|
||||
IsarCollection<TokenWalletInfo> get tokenWalletInfo => this.collection();
|
||||
|
@ -68,7 +68,7 @@ const TokenWalletInfoSchema = CollectionSchema(
|
|||
getId: _tokenWalletInfoGetId,
|
||||
getLinks: _tokenWalletInfoGetLinks,
|
||||
attach: _tokenWalletInfoAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _tokenWalletInfoEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'wallet_info.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetWalletInfoCollection on Isar {
|
||||
IsarCollection<WalletInfo> get walletInfo => this.collection();
|
||||
|
@ -114,7 +114,7 @@ const WalletInfoSchema = CollectionSchema(
|
|||
getId: _walletInfoGetId,
|
||||
getLinks: _walletInfoGetLinks,
|
||||
attach: _walletInfoAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _walletInfoEstimateSize(
|
||||
|
|
|
@ -7,7 +7,7 @@ part of 'wallet_info_meta.dart';
|
|||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
|
||||
|
||||
extension GetWalletInfoMetaCollection on Isar {
|
||||
IsarCollection<WalletInfoMeta> get walletInfoMeta => this.collection();
|
||||
|
@ -53,7 +53,7 @@ const WalletInfoMetaSchema = CollectionSchema(
|
|||
getId: _walletInfoMetaGetId,
|
||||
getLinks: _walletInfoMetaGetLinks,
|
||||
attach: _walletInfoMetaAttach,
|
||||
version: '3.0.5',
|
||||
version: '3.1.8',
|
||||
);
|
||||
|
||||
int _walletInfoMetaEstimateSize(
|
||||
|
|
|
@ -15,13 +15,14 @@ import flutter_local_notifications
|
|||
import flutter_secure_storage_macos
|
||||
import isar_flutter_libs
|
||||
import lelantus
|
||||
import local_auth_darwin
|
||||
import package_info_plus
|
||||
import path_provider_foundation
|
||||
import share_plus
|
||||
import sqlite3_flutter_libs
|
||||
import stack_wallet_backup
|
||||
import url_launcher_macos
|
||||
import wakelock_macos
|
||||
import wakelock_plus
|
||||
import window_size
|
||||
|
||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||
|
@ -35,12 +36,13 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
|||
FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin"))
|
||||
IsarFlutterLibsPlugin.register(with: registry.registrar(forPlugin: "IsarFlutterLibsPlugin"))
|
||||
LelantusPlugin.register(with: registry.registrar(forPlugin: "LelantusPlugin"))
|
||||
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
|
||||
FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin"))
|
||||
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
|
||||
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
|
||||
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
|
||||
Sqlite3FlutterLibsPlugin.register(with: registry.registrar(forPlugin: "Sqlite3FlutterLibsPlugin"))
|
||||
StackWalletBackupPlugin.register(with: registry.registrar(forPlugin: "StackWalletBackupPlugin"))
|
||||
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
|
||||
WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin"))
|
||||
WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin"))
|
||||
WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin"))
|
||||
}
|
||||
|
|
543
pubspec.lock
543
pubspec.lock
File diff suppressed because it is too large
Load diff
|
@ -1,30 +1,10 @@
|
|||
def localProperties = new Properties()
|
||||
def localPropertiesFile = rootProject.file('local.properties')
|
||||
if (localPropertiesFile.exists()) {
|
||||
localPropertiesFile.withReader('UTF-8') { reader ->
|
||||
localProperties.load(reader)
|
||||
}
|
||||
plugins {
|
||||
id "com.android.application"
|
||||
id "kotlin-android"
|
||||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
}
|
||||
|
||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
||||
if (flutterRoot == null) {
|
||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
||||
}
|
||||
|
||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||
if (flutterVersionCode == null) {
|
||||
flutterVersionCode = '1'
|
||||
}
|
||||
|
||||
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
||||
if (flutterVersionName == null) {
|
||||
flutterVersionName = '1.0'
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
def keystoreProperties = new Properties()
|
||||
def keystorePropertiesFile = rootProject.file('key.properties')
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
|
@ -32,35 +12,29 @@ if (keystorePropertiesFile.exists()) {
|
|||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 34
|
||||
namespace "com.place.holder"
|
||||
compileSdk flutter.compileSdkVersion
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
// ndkVersion = "21.1.6352462"
|
||||
// ndkVersion = "25.2.9519653"
|
||||
ndkVersion = "23.1.7779620"
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
packagingOptions {
|
||||
pickFirst 'lib/x86/libc++_shared.so'
|
||||
pickFirst 'lib/x86_64/libc++_shared.so'
|
||||
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
|
||||
pickFirst 'lib/arm64-v8a/libc++_shared.so'
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.place.holder"
|
||||
minSdkVersion 23
|
||||
targetSdkVersion 33
|
||||
// ndkVersion = "21.1.6352462"
|
||||
// ndkVersion = "25.2.9519653"
|
||||
ndkVersion = "23.1.7779620"
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
minSdk flutter.minSdkVersion
|
||||
targetSdk flutter.targetSdkVersion
|
||||
versionCode flutter.versionCode
|
||||
versionName flutter.versionName
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
ndk {
|
||||
abiFilters "x86_64","armeabi-v7a", "arm64-v8a"
|
||||
}
|
||||
|
@ -99,15 +73,18 @@ android {
|
|||
'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
// not required. Just info
|
||||
tasks.whenTaskAdded { task ->
|
||||
if (task.name == 'assembleDebug') {
|
||||
task.doFirst {
|
||||
println "The compileSdkVersion is $flutter.compileSdkVersion"
|
||||
println "The targetSdkVersion is $flutter.targetSdkVersion"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source '../..'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'androidx.test:runner:1.1.1'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
||||
}
|
||||
}
|
|
@ -74,4 +74,14 @@
|
|||
<!-- android:resource="@xml/provider_paths" />-->
|
||||
<!-- </provider>-->
|
||||
</application>
|
||||
<!-- Required to query activities that can process text, see:
|
||||
https://developer.android.com/training/package-visibility and
|
||||
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
|
||||
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
||||
<data android:mimeType="text/plain"/>
|
||||
</intent>
|
||||
</queries>
|
||||
</manifest>
|
|
@ -13,16 +13,18 @@ description: PLACEHOLDER
|
|||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: PLACEHOLDER_V+PLACEHOLDER_B
|
||||
|
||||
isar_version: &isar_version 3.1.8
|
||||
|
||||
environment:
|
||||
sdk: ">=3.5.2 <4.0.0"
|
||||
flutter: ^3.24.2
|
||||
sdk: ">=3.5.3 <4.0.0"
|
||||
flutter: ^3.24.3
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
ffi: ^2.0.1
|
||||
mutex: ^3.0.0
|
||||
web_socket_channel: ^2.4.5
|
||||
web_socket_channel: ^2.4.0
|
||||
|
||||
lelantus:
|
||||
path: ./crypto_plugins/flutter_liblelantus
|
||||
|
@ -33,7 +35,7 @@ dependencies:
|
|||
flutter_libsparkmobile:
|
||||
git:
|
||||
url: https://github.com/cypherstack/flutter_libsparkmobile.git
|
||||
ref: 7a11d0cadf8c7a6a5d5144dab18cef9536aa5943
|
||||
ref: cc7b43b731e4a7906dd25d4364a08e34554cee19
|
||||
|
||||
flutter_libmonero:
|
||||
path: ./crypto_plugins/flutter_libmonero
|
||||
|
@ -63,7 +65,7 @@ dependencies:
|
|||
stack_wallet_backup:
|
||||
git:
|
||||
url: https://github.com/cypherstack/stack_wallet_backup.git
|
||||
ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed
|
||||
ref: 5efe8f8f259317d32b6f037cf91f62e06125c040
|
||||
|
||||
bip47:
|
||||
git:
|
||||
|
@ -78,11 +80,11 @@ dependencies:
|
|||
fusiondart:
|
||||
git:
|
||||
url: https://github.com/cypherstack/fusiondart.git
|
||||
ref: 7dd8ff0dc9cb0caaac795fa44841a26437edfec3
|
||||
ref: 9dc883f4432c8db4ec44cb8cc836963295d63952
|
||||
|
||||
# Utility plugins
|
||||
http: ^0.13.0
|
||||
local_auth: ^1.1.10
|
||||
local_auth: ^2.3.0
|
||||
permission_handler: ^11.0.0
|
||||
flutter_local_notifications: ^17.2.2
|
||||
rxdart: ^0.27.3
|
||||
|
@ -130,10 +132,10 @@ dependencies:
|
|||
event_bus: ^2.0.0
|
||||
uuid: ^3.0.5
|
||||
crypto: ^3.0.2
|
||||
barcode_scan2: ^4.2.3
|
||||
wakelock: ^0.6.2
|
||||
barcode_scan2: ^4.3.3
|
||||
wakelock_plus: ^1.2.8
|
||||
intl: ^0.17.0
|
||||
devicelocale: ^0.6.0
|
||||
devicelocale: ^0.7.1
|
||||
device_info_plus: ^10.1.2
|
||||
keyboard_dismisser: ^3.0.0
|
||||
another_flushbar: ^1.10.28
|
||||
|
@ -143,12 +145,16 @@ dependencies:
|
|||
share_plus: ^7.0.2
|
||||
emojis: ^0.9.9
|
||||
pointycastle: ^3.6.0
|
||||
package_info_plus: ^4.0.2
|
||||
package_info_plus: ^8.0.2
|
||||
lottie: ^2.3.2
|
||||
file_picker: ^8.0.3
|
||||
connectivity_plus: ^4.0.1
|
||||
isar: 3.0.5
|
||||
isar_flutter_libs: 3.0.5 # contains the binaries
|
||||
isar:
|
||||
version: *isar_version
|
||||
hosted: https://pub.isar-community.dev/
|
||||
isar_flutter_libs: # contains Isar Core
|
||||
version: *isar_version
|
||||
hosted: https://pub.isar-community.dev/
|
||||
dropdown_button2: ^2.1.3
|
||||
string_validator: ^0.3.0
|
||||
equatable: ^2.0.5
|
||||
|
@ -157,7 +163,7 @@ dependencies:
|
|||
dart_bs58check: ^3.0.2
|
||||
hex: ^0.2.0
|
||||
archive: ^3.6.1
|
||||
desktop_drop: ^0.4.1
|
||||
desktop_drop: ^0.4.4
|
||||
nanodart: ^2.0.0
|
||||
basic_utils: ^5.5.4
|
||||
stellar_flutter_sdk: ^1.7.8
|
||||
|
@ -174,8 +180,8 @@ dependencies:
|
|||
# coinlib_flutter: ^2.1.0-rc.1
|
||||
coinlib_flutter:
|
||||
git:
|
||||
url: https://github.com/peercoin/coinlib.git
|
||||
ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
|
||||
url: https://github.com/julian-CStack/coinlib.git
|
||||
ref: 0acacfd17eacf72135c693a7b862bd9b7cc56739
|
||||
path: coinlib_flutter
|
||||
electrum_adapter:
|
||||
git:
|
||||
|
@ -212,10 +218,12 @@ dev_dependencies:
|
|||
mockito: ^5.4.1
|
||||
mockingjay: ^0.2.0
|
||||
# lint: ^1.10.0
|
||||
analyzer: ^5.13.0
|
||||
analyzer: ^6.7.0
|
||||
import_sorter: ^4.6.0
|
||||
flutter_lints: ^3.0.1
|
||||
isar_generator: 3.0.5
|
||||
isar_generator:
|
||||
version: *isar_version
|
||||
hosted: https://pub.isar-community.dev/
|
||||
|
||||
flutter_native_splash:
|
||||
image: assets/icon/splash.png
|
||||
|
@ -230,14 +238,14 @@ dependency_overrides:
|
|||
# coin lib git for testing while waiting for publishing
|
||||
coinlib:
|
||||
git:
|
||||
url: https://github.com/peercoin/coinlib.git
|
||||
ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
|
||||
url: https://github.com/julian-CStack/coinlib.git
|
||||
ref: 0acacfd17eacf72135c693a7b862bd9b7cc56739
|
||||
path: coinlib
|
||||
|
||||
coinlib_flutter:
|
||||
git:
|
||||
url: https://github.com/peercoin/coinlib.git
|
||||
ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
|
||||
url: https://github.com/julian-CStack/coinlib.git
|
||||
ref: 0acacfd17eacf72135c693a7b862bd9b7cc56739
|
||||
path: coinlib_flutter
|
||||
|
||||
# adding here due to pure laziness
|
||||
|
@ -267,7 +275,7 @@ dependency_overrides:
|
|||
stack_wallet_backup:
|
||||
git:
|
||||
url: https://github.com/cypherstack/stack_wallet_backup.git
|
||||
ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed
|
||||
ref: 5efe8f8f259317d32b6f037cf91f62e06125c040
|
||||
|
||||
# required override for nanodart
|
||||
bip39:
|
||||
|
@ -282,7 +290,7 @@ dependency_overrides:
|
|||
ref: 9abc0930081c9859884e073bd25ab88b2114d9e7
|
||||
|
||||
crypto: 3.0.2
|
||||
analyzer: ^5.2.0
|
||||
analyzer: ^6.7.0
|
||||
pinenacl: ^0.6.0
|
||||
http: ^0.13.0
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
Invocation.getter(#cryptoCurrency),
|
||||
),
|
||||
) as _i2.CryptoCurrency);
|
||||
|
||||
@override
|
||||
set failovers(List<_i5.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -97,11 +98,13 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentFailoverIndex => (super.noSuchMethod(
|
||||
Invocation.getter(#currentFailoverIndex),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -110,6 +113,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -119,6 +123,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||
),
|
||||
) as Duration);
|
||||
|
||||
@override
|
||||
String get host => (super.noSuchMethod(
|
||||
Invocation.getter(#host),
|
||||
|
@ -127,16 +132,19 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
Invocation.getter(#host),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
int get port => (super.noSuchMethod(
|
||||
Invocation.getter(#port),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
bool get useSSL => (super.noSuchMethod(
|
||||
Invocation.getter(#useSSL),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i7.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -146,6 +154,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
|
||||
@override
|
||||
_i7.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -155,6 +164,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
|
||||
@override
|
||||
_i7.Future<dynamic> request({
|
||||
required String? command,
|
||||
|
@ -177,6 +187,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<dynamic>.value(),
|
||||
) as _i7.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i7.Future<List<dynamic>> batchRequest({
|
||||
required String? command,
|
||||
|
@ -197,6 +208,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<List<dynamic>>.value(<dynamic>[]),
|
||||
) as _i7.Future<List<dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<bool> ping({
|
||||
String? requestID,
|
||||
|
@ -213,6 +225,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -224,6 +237,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -235,6 +249,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<String> broadcastTransaction({
|
||||
required String? rawTx,
|
||||
|
@ -261,6 +276,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i7.Future<String>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getBalance({
|
||||
required String? scripthash,
|
||||
|
@ -278,6 +294,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<List<Map<String, dynamic>>> getHistory({
|
||||
required String? scripthash,
|
||||
|
@ -295,6 +312,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue: _i7.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i7.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i7.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -307,6 +325,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue: _i7.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i7.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i7.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
required String? scripthash,
|
||||
|
@ -324,6 +343,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue: _i7.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i7.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i7.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -336,6 +356,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue: _i7.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i7.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -355,6 +376,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||
String? groupId = r'1',
|
||||
|
@ -374,6 +396,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<dynamic> getLelantusMintData({
|
||||
dynamic mints,
|
||||
|
@ -390,6 +413,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<dynamic>.value(),
|
||||
) as _i7.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||
String? requestID,
|
||||
|
@ -407,6 +431,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -417,6 +442,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<int>.value(0),
|
||||
) as _i7.Future<int>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||
String? coinGroupId = r'1',
|
||||
|
@ -436,6 +462,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
|
@ -453,6 +480,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue: _i7.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i7.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i7.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -463,6 +491,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<int>.value(0),
|
||||
) as _i7.Future<int>);
|
||||
|
||||
@override
|
||||
_i7.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -473,6 +502,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<Set<String>>.value(<String>{}),
|
||||
) as _i7.Future<Set<String>>);
|
||||
|
||||
@override
|
||||
_i7.Future<
|
||||
List<
|
||||
|
@ -515,6 +545,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
List<String> serialContext,
|
||||
String txid
|
||||
})>>);
|
||||
|
||||
@override
|
||||
_i7.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||
String? requestID,
|
||||
|
@ -531,6 +562,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||
) as _i7.Future<List<List<dynamic>>>);
|
||||
|
||||
@override
|
||||
_i7.Future<bool> isMasterNodeCollateral({
|
||||
String? requestID,
|
||||
|
@ -549,6 +581,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
|
||||
@override
|
||||
_i7.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -560,6 +593,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
returnValue:
|
||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i7.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i7.Future<_i3.Decimal> estimateFee({
|
||||
String? requestID,
|
||||
|
@ -586,6 +620,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.Decimal>);
|
||||
|
||||
@override
|
||||
_i7.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -617,11 +652,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
Invocation.getter(#isInitialized),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
int get lastUnlockedTimeout => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlockedTimeout),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -630,11 +667,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get lastUnlocked => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlocked),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlocked(int? lastUnlocked) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -643,16 +682,19 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentNotificationId => (super.noSuchMethod(
|
||||
Invocation.getter(#currentNotificationId),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
List<String> get walletIdsSyncOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#walletIdsSyncOnStartup),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
set walletIdsSyncOnStartup(List<String>? walletIdsSyncOnStartup) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -662,11 +704,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i9.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i9.SyncingType.currentWalletOnly,
|
||||
) as _i9.SyncingType);
|
||||
|
||||
@override
|
||||
set syncType(_i9.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -675,11 +719,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get wifiOnly => (super.noSuchMethod(
|
||||
Invocation.getter(#wifiOnly),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set wifiOnly(bool? wifiOnly) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -688,11 +734,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showFavoriteWallets => (super.noSuchMethod(
|
||||
Invocation.getter(#showFavoriteWallets),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -701,6 +749,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get language => (super.noSuchMethod(
|
||||
Invocation.getter(#language),
|
||||
|
@ -709,6 +758,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
Invocation.getter(#language),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set language(String? newLanguage) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -717,6 +767,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get currency => (super.noSuchMethod(
|
||||
Invocation.getter(#currency),
|
||||
|
@ -725,6 +776,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
Invocation.getter(#currency),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set currency(String? newCurrency) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -733,11 +785,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get randomizePIN => (super.noSuchMethod(
|
||||
Invocation.getter(#randomizePIN),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -746,11 +800,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useBiometrics => (super.noSuchMethod(
|
||||
Invocation.getter(#useBiometrics),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useBiometrics(bool? useBiometrics) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -759,11 +815,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasPin => (super.noSuchMethod(
|
||||
Invocation.getter(#hasPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hasPin(bool? hasPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -772,11 +830,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get familiarity => (super.noSuchMethod(
|
||||
Invocation.getter(#familiarity),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set familiarity(int? familiarity) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -785,11 +845,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get torKillSwitch => (super.noSuchMethod(
|
||||
Invocation.getter(#torKillSwitch),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set torKillSwitch(bool? torKillswitch) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -798,11 +860,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showTestNetCoins => (super.noSuchMethod(
|
||||
Invocation.getter(#showTestNetCoins),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -811,11 +875,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get isAutoBackupEnabled => (super.noSuchMethod(
|
||||
Invocation.getter(#isAutoBackupEnabled),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -824,6 +890,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -832,11 +899,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i10.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i10.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i10.BackupFrequencyType);
|
||||
|
||||
@override
|
||||
set backupFrequencyType(_i10.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -846,6 +915,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -854,11 +924,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hideBlockExplorerWarning => (super.noSuchMethod(
|
||||
Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -868,11 +940,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get gotoWalletOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -881,6 +955,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -889,11 +964,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get externalCalls => (super.noSuchMethod(
|
||||
Invocation.getter(#externalCalls),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set externalCalls(bool? externalCalls) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -902,11 +979,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -915,11 +994,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||
Invocation.getter(#enableSystemBrightness),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -929,6 +1010,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get themeId => (super.noSuchMethod(
|
||||
Invocation.getter(#themeId),
|
||||
|
@ -937,6 +1019,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
Invocation.getter(#themeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set themeId(String? themeId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -945,6 +1028,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
|
@ -953,6 +1037,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -962,6 +1047,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
|
@ -970,6 +1056,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -979,11 +1066,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useTor => (super.noSuchMethod(
|
||||
Invocation.getter(#useTor),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useTor(bool? useTor) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -992,11 +1081,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get autoPin => (super.noSuchMethod(
|
||||
Invocation.getter(#autoPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set autoPin(bool? autoPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -1005,11 +1096,28 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableExchange => (super.noSuchMethod(
|
||||
Invocation.getter(#enableExchange),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableExchange(bool? showExchange) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableExchange,
|
||||
showExchange,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i7.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1019,6 +1127,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
|
||||
@override
|
||||
_i7.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1028,6 +1137,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
|
||||
@override
|
||||
_i7.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1036,6 +1146,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
|
||||
@override
|
||||
_i7.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1045,6 +1156,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
|
||||
@override
|
||||
_i7.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1054,6 +1166,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
|
||||
@override
|
||||
_i11.AmountUnit amountUnit(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1062,6 +1175,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValue: _i11.AmountUnit.normal,
|
||||
) as _i11.AmountUnit);
|
||||
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i2.CryptoCurrency? coin,
|
||||
|
@ -1078,6 +1192,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int maxDecimals(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1086,6 +1201,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i2.CryptoCurrency? coin,
|
||||
|
@ -1102,6 +1218,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i4.FusionInfo getFusionServerInfo(_i2.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1117,6 +1234,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
),
|
||||
) as _i4.FusionInfo);
|
||||
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i2.CryptoCurrency? coin,
|
||||
|
@ -1132,6 +1250,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1140,6 +1259,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1148,6 +1268,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1156,6 +1277,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -100,6 +100,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
Invocation.getter(#iOptions),
|
||||
),
|
||||
) as _i2.IOSOptions);
|
||||
|
||||
@override
|
||||
_i2.AndroidOptions get aOptions => (super.noSuchMethod(
|
||||
Invocation.getter(#aOptions),
|
||||
|
@ -108,6 +109,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
Invocation.getter(#aOptions),
|
||||
),
|
||||
) as _i2.AndroidOptions);
|
||||
|
||||
@override
|
||||
_i2.LinuxOptions get lOptions => (super.noSuchMethod(
|
||||
Invocation.getter(#lOptions),
|
||||
|
@ -116,6 +118,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
Invocation.getter(#lOptions),
|
||||
),
|
||||
) as _i2.LinuxOptions);
|
||||
|
||||
@override
|
||||
_i2.WindowsOptions get wOptions => (super.noSuchMethod(
|
||||
Invocation.getter(#wOptions),
|
||||
|
@ -124,6 +127,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
Invocation.getter(#wOptions),
|
||||
),
|
||||
) as _i2.WindowsOptions);
|
||||
|
||||
@override
|
||||
_i2.WebOptions get webOptions => (super.noSuchMethod(
|
||||
Invocation.getter(#webOptions),
|
||||
|
@ -132,6 +136,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
Invocation.getter(#webOptions),
|
||||
),
|
||||
) as _i2.WebOptions);
|
||||
|
||||
@override
|
||||
_i2.MacOsOptions get mOptions => (super.noSuchMethod(
|
||||
Invocation.getter(#mOptions),
|
||||
|
@ -140,6 +145,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
Invocation.getter(#mOptions),
|
||||
),
|
||||
) as _i2.MacOsOptions);
|
||||
|
||||
@override
|
||||
_i3.Future<void> write({
|
||||
required String? key,
|
||||
|
@ -169,6 +175,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
returnValue: _i3.Future<void>.value(),
|
||||
returnValueForMissingStub: _i3.Future<void>.value(),
|
||||
) as _i3.Future<void>);
|
||||
|
||||
@override
|
||||
_i3.Future<String?> read({
|
||||
required String? key,
|
||||
|
@ -195,6 +202,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
),
|
||||
returnValue: _i3.Future<String?>.value(),
|
||||
) as _i3.Future<String?>);
|
||||
|
||||
@override
|
||||
_i3.Future<bool> containsKey({
|
||||
required String? key,
|
||||
|
@ -221,6 +229,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
),
|
||||
returnValue: _i3.Future<bool>.value(false),
|
||||
) as _i3.Future<bool>);
|
||||
|
||||
@override
|
||||
_i3.Future<void> delete({
|
||||
required String? key,
|
||||
|
@ -248,6 +257,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
returnValue: _i3.Future<void>.value(),
|
||||
returnValueForMissingStub: _i3.Future<void>.value(),
|
||||
) as _i3.Future<void>);
|
||||
|
||||
@override
|
||||
_i3.Future<Map<String, String>> readAll({
|
||||
_i2.IOSOptions? iOptions,
|
||||
|
@ -272,6 +282,7 @@ class MockFlutterSecureStorage extends _i1.Mock
|
|||
),
|
||||
returnValue: _i3.Future<Map<String, String>>.value(<String, String>{}),
|
||||
) as _i3.Future<Map<String, String>>);
|
||||
|
||||
@override
|
||||
_i3.Future<void> deleteAll({
|
||||
_i2.IOSOptions? iOptions,
|
||||
|
|
|
@ -48,11 +48,13 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
Invocation.getter(#availableBytes),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int get usedBytes => (super.noSuchMethod(
|
||||
Invocation.getter(#usedBytes),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void skip(int? bytes) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -61,6 +63,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int readByte() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -69,6 +72,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
_i4.Uint8List viewBytes(int? bytes) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -77,6 +81,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
_i4.Uint8List peekBytes(int? bytes) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -85,6 +90,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
int readWord() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -93,6 +99,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readInt32() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -101,6 +108,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readUint32() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,6 +117,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readInt() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +126,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
double readDouble() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +135,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0.0,
|
||||
) as double);
|
||||
|
||||
@override
|
||||
bool readBool() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +144,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
String readString([
|
||||
int? byteCount,
|
||||
|
@ -157,6 +169,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i4.Uint8List readByteList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -165,6 +178,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
List<int> readIntList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -173,6 +187,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <int>[],
|
||||
) as List<int>);
|
||||
|
||||
@override
|
||||
List<double> readDoubleList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -181,6 +196,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <double>[],
|
||||
) as List<double>);
|
||||
|
||||
@override
|
||||
List<bool> readBoolList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -189,6 +205,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <bool>[],
|
||||
) as List<bool>);
|
||||
|
||||
@override
|
||||
List<String> readStringList([
|
||||
int? length,
|
||||
|
@ -204,6 +221,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<dynamic> readList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -212,6 +230,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <dynamic>[],
|
||||
) as List<dynamic>);
|
||||
|
||||
@override
|
||||
Map<dynamic, dynamic> readMap([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -220,6 +239,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <dynamic, dynamic>{},
|
||||
) as Map<dynamic, dynamic>);
|
||||
|
||||
@override
|
||||
_i3.HiveList<_i1.HiveObjectMixin> readHiveList([int? length]) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -253,6 +273,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeWord(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -261,6 +282,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeInt32(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -269,6 +291,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeUint32(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -277,6 +300,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeInt(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -285,6 +309,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeDouble(double? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -293,6 +318,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeBool(bool? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -301,6 +327,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeString(
|
||||
String? value, {
|
||||
|
@ -318,6 +345,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeByteList(
|
||||
List<int>? bytes, {
|
||||
|
@ -331,6 +359,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeIntList(
|
||||
List<int>? list, {
|
||||
|
@ -344,6 +373,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeDoubleList(
|
||||
List<double>? list, {
|
||||
|
@ -357,6 +387,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeBoolList(
|
||||
List<bool>? list, {
|
||||
|
@ -370,6 +401,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeStringList(
|
||||
List<String>? list, {
|
||||
|
@ -387,6 +419,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeList(
|
||||
List<dynamic>? list, {
|
||||
|
@ -400,6 +433,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeMap(
|
||||
Map<dynamic, dynamic>? map, {
|
||||
|
@ -413,6 +447,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeHiveList(
|
||||
_i3.HiveList<_i1.HiveObjectMixin>? list, {
|
||||
|
@ -426,6 +461,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void write<T>(
|
||||
T? value, {
|
||||
|
|
|
@ -48,11 +48,13 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
Invocation.getter(#availableBytes),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int get usedBytes => (super.noSuchMethod(
|
||||
Invocation.getter(#usedBytes),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void skip(int? bytes) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -61,6 +63,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int readByte() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -69,6 +72,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
_i4.Uint8List viewBytes(int? bytes) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -77,6 +81,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
_i4.Uint8List peekBytes(int? bytes) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -85,6 +90,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
int readWord() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -93,6 +99,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readInt32() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -101,6 +108,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readUint32() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,6 +117,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readInt() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +126,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
double readDouble() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +135,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0.0,
|
||||
) as double);
|
||||
|
||||
@override
|
||||
bool readBool() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +144,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
String readString([
|
||||
int? byteCount,
|
||||
|
@ -157,6 +169,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i4.Uint8List readByteList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -165,6 +178,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
List<int> readIntList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -173,6 +187,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <int>[],
|
||||
) as List<int>);
|
||||
|
||||
@override
|
||||
List<double> readDoubleList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -181,6 +196,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <double>[],
|
||||
) as List<double>);
|
||||
|
||||
@override
|
||||
List<bool> readBoolList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -189,6 +205,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <bool>[],
|
||||
) as List<bool>);
|
||||
|
||||
@override
|
||||
List<String> readStringList([
|
||||
int? length,
|
||||
|
@ -204,6 +221,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<dynamic> readList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -212,6 +230,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <dynamic>[],
|
||||
) as List<dynamic>);
|
||||
|
||||
@override
|
||||
Map<dynamic, dynamic> readMap([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -220,6 +239,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <dynamic, dynamic>{},
|
||||
) as Map<dynamic, dynamic>);
|
||||
|
||||
@override
|
||||
_i3.HiveList<_i1.HiveObjectMixin> readHiveList([int? length]) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -253,6 +273,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeWord(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -261,6 +282,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeInt32(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -269,6 +291,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeUint32(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -277,6 +300,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeInt(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -285,6 +309,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeDouble(double? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -293,6 +318,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeBool(bool? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -301,6 +327,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeString(
|
||||
String? value, {
|
||||
|
@ -318,6 +345,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeByteList(
|
||||
List<int>? bytes, {
|
||||
|
@ -331,6 +359,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeIntList(
|
||||
List<int>? list, {
|
||||
|
@ -344,6 +373,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeDoubleList(
|
||||
List<double>? list, {
|
||||
|
@ -357,6 +387,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeBoolList(
|
||||
List<bool>? list, {
|
||||
|
@ -370,6 +401,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeStringList(
|
||||
List<String>? list, {
|
||||
|
@ -387,6 +419,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeList(
|
||||
List<dynamic>? list, {
|
||||
|
@ -400,6 +433,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeMap(
|
||||
Map<dynamic, dynamic>? map, {
|
||||
|
@ -413,6 +447,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeHiveList(
|
||||
_i3.HiveList<_i1.HiveObjectMixin>? list, {
|
||||
|
@ -426,6 +461,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void write<T>(
|
||||
T? value, {
|
||||
|
|
|
@ -48,11 +48,13 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
Invocation.getter(#availableBytes),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int get usedBytes => (super.noSuchMethod(
|
||||
Invocation.getter(#usedBytes),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void skip(int? bytes) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -61,6 +63,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int readByte() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -69,6 +72,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
_i4.Uint8List viewBytes(int? bytes) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -77,6 +81,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
_i4.Uint8List peekBytes(int? bytes) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -85,6 +90,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
int readWord() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -93,6 +99,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readInt32() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -101,6 +108,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readUint32() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,6 +117,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
int readInt() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +126,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
double readDouble() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +135,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: 0.0,
|
||||
) as double);
|
||||
|
||||
@override
|
||||
bool readBool() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +144,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
String readString([
|
||||
int? byteCount,
|
||||
|
@ -157,6 +169,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i4.Uint8List readByteList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -165,6 +178,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: _i4.Uint8List(0),
|
||||
) as _i4.Uint8List);
|
||||
|
||||
@override
|
||||
List<int> readIntList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -173,6 +187,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <int>[],
|
||||
) as List<int>);
|
||||
|
||||
@override
|
||||
List<double> readDoubleList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -181,6 +196,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <double>[],
|
||||
) as List<double>);
|
||||
|
||||
@override
|
||||
List<bool> readBoolList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -189,6 +205,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <bool>[],
|
||||
) as List<bool>);
|
||||
|
||||
@override
|
||||
List<String> readStringList([
|
||||
int? length,
|
||||
|
@ -204,6 +221,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<dynamic> readList([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -212,6 +230,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <dynamic>[],
|
||||
) as List<dynamic>);
|
||||
|
||||
@override
|
||||
Map<dynamic, dynamic> readMap([int? length]) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -220,6 +239,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader {
|
|||
),
|
||||
returnValue: <dynamic, dynamic>{},
|
||||
) as Map<dynamic, dynamic>);
|
||||
|
||||
@override
|
||||
_i3.HiveList<_i1.HiveObjectMixin> readHiveList([int? length]) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -253,6 +273,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeWord(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -261,6 +282,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeInt32(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -269,6 +291,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeUint32(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -277,6 +300,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeInt(int? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -285,6 +309,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeDouble(double? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -293,6 +318,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeBool(bool? value) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -301,6 +327,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeString(
|
||||
String? value, {
|
||||
|
@ -318,6 +345,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeByteList(
|
||||
List<int>? bytes, {
|
||||
|
@ -331,6 +359,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeIntList(
|
||||
List<int>? list, {
|
||||
|
@ -344,6 +373,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeDoubleList(
|
||||
List<double>? list, {
|
||||
|
@ -357,6 +387,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeBoolList(
|
||||
List<bool>? list, {
|
||||
|
@ -370,6 +401,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeStringList(
|
||||
List<String>? list, {
|
||||
|
@ -387,6 +419,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeList(
|
||||
List<dynamic>? list, {
|
||||
|
@ -400,6 +433,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeMap(
|
||||
Map<dynamic, dynamic>? map, {
|
||||
|
@ -413,6 +447,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void writeHiveList(
|
||||
_i3.HiveList<_i1.HiveObjectMixin>? list, {
|
||||
|
@ -426,6 +461,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void write<T>(
|
||||
T? value, {
|
||||
|
|
|
@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i2.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i2.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i5.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i5.StackTheme>[],
|
||||
) as List<_i5.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.Future<void> install({required _i7.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i4.StackThemeMetaData>> fetchThemes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<List<_i4.StackThemeMetaData>>.value(
|
||||
<_i4.StackThemeMetaData>[]),
|
||||
) as _i6.Future<List<_i4.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i7.Uint8List> fetchTheme(
|
||||
{required _i4.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
|
||||
) as _i6.Future<_i7.Uint8List>);
|
||||
|
||||
@override
|
||||
_i5.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
|
|
@ -121,6 +121,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
Invocation.getter(#nodeService),
|
||||
),
|
||||
) as _i2.NodeService);
|
||||
|
||||
@override
|
||||
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -129,6 +130,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get mainDB => (super.noSuchMethod(
|
||||
Invocation.getter(#mainDB),
|
||||
|
@ -137,6 +139,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
Invocation.getter(#mainDB),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -145,11 +148,13 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
|
||||
Invocation.getter(#wallets),
|
||||
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
|
||||
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
|
||||
|
||||
@override
|
||||
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -165,6 +170,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
),
|
||||
) as _i5.Wallet<_i4.CryptoCurrency>);
|
||||
|
||||
@override
|
||||
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -173,6 +179,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i10.Future<void> deleteWallet(
|
||||
_i11.WalletInfo? info,
|
||||
|
@ -189,6 +196,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> load(
|
||||
_i12.Prefs? prefs,
|
||||
|
@ -205,6 +213,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> loadAfterStackRestore(
|
||||
_i12.Prefs? prefs,
|
||||
|
@ -241,21 +250,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i6.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i13.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i13.NodeModel>[],
|
||||
) as List<_i13.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i13.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i13.NodeModel>[],
|
||||
) as List<_i13.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -265,6 +278,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> setPrimaryNodeFor({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -284,6 +298,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i13.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -291,6 +306,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i13.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i13.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -300,6 +316,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i13.NodeModel>[],
|
||||
) as List<_i13.NodeModel>);
|
||||
|
||||
@override
|
||||
_i13.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -307,6 +324,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i13.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i13.NodeModel> failoverNodesFor(
|
||||
{required _i4.CryptoCurrency? currency}) =>
|
||||
|
@ -318,6 +336,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i13.NodeModel>[],
|
||||
) as List<_i13.NodeModel>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> add(
|
||||
_i13.NodeModel? node,
|
||||
|
@ -336,6 +355,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -352,6 +372,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -370,6 +391,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> edit(
|
||||
_i13.NodeModel? editedNode,
|
||||
|
@ -388,6 +410,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -397,6 +420,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -405,6 +429,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -413,6 +438,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -421,6 +447,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -447,11 +474,13 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -462,6 +491,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -470,6 +500,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -478,6 +509,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -486,6 +518,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -512,6 +545,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i7.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i7.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -520,6 +554,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -528,11 +563,13 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i18.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i18.StackTheme>[],
|
||||
) as List<_i18.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -541,6 +578,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i10.Future<void> install({required _i19.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -552,6 +590,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -562,6 +601,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -571,6 +611,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -581,6 +622,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<List<_i17.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -591,6 +633,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValue: _i10.Future<List<_i17.StackThemeMetaData>>.value(
|
||||
<_i17.StackThemeMetaData>[]),
|
||||
) as _i10.Future<List<_i17.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i19.Uint8List> fetchTheme(
|
||||
{required _i17.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -602,6 +645,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
),
|
||||
returnValue: _i10.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
|
||||
) as _i10.Future<_i19.Uint8List>);
|
||||
|
||||
@override
|
||||
_i18.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -624,11 +668,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#isInitialized),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
int get lastUnlockedTimeout => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlockedTimeout),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -637,11 +683,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get lastUnlocked => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlocked),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlocked(int? lastUnlocked) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -650,16 +698,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentNotificationId => (super.noSuchMethod(
|
||||
Invocation.getter(#currentNotificationId),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
List<String> get walletIdsSyncOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#walletIdsSyncOnStartup),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
set walletIdsSyncOnStartup(List<String>? walletIdsSyncOnStartup) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -669,11 +720,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i20.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i20.SyncingType.currentWalletOnly,
|
||||
) as _i20.SyncingType);
|
||||
|
||||
@override
|
||||
set syncType(_i20.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -682,11 +735,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get wifiOnly => (super.noSuchMethod(
|
||||
Invocation.getter(#wifiOnly),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set wifiOnly(bool? wifiOnly) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -695,11 +750,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showFavoriteWallets => (super.noSuchMethod(
|
||||
Invocation.getter(#showFavoriteWallets),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -708,6 +765,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get language => (super.noSuchMethod(
|
||||
Invocation.getter(#language),
|
||||
|
@ -716,6 +774,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#language),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set language(String? newLanguage) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -724,6 +783,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get currency => (super.noSuchMethod(
|
||||
Invocation.getter(#currency),
|
||||
|
@ -732,6 +792,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#currency),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set currency(String? newCurrency) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -740,11 +801,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get randomizePIN => (super.noSuchMethod(
|
||||
Invocation.getter(#randomizePIN),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -753,11 +816,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useBiometrics => (super.noSuchMethod(
|
||||
Invocation.getter(#useBiometrics),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useBiometrics(bool? useBiometrics) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -766,11 +831,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasPin => (super.noSuchMethod(
|
||||
Invocation.getter(#hasPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hasPin(bool? hasPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -779,11 +846,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get familiarity => (super.noSuchMethod(
|
||||
Invocation.getter(#familiarity),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set familiarity(int? familiarity) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -792,11 +861,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get torKillSwitch => (super.noSuchMethod(
|
||||
Invocation.getter(#torKillSwitch),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set torKillSwitch(bool? torKillswitch) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -805,11 +876,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showTestNetCoins => (super.noSuchMethod(
|
||||
Invocation.getter(#showTestNetCoins),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -818,11 +891,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get isAutoBackupEnabled => (super.noSuchMethod(
|
||||
Invocation.getter(#isAutoBackupEnabled),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -831,6 +906,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -839,11 +915,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i21.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i21.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i21.BackupFrequencyType);
|
||||
|
||||
@override
|
||||
set backupFrequencyType(_i21.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -853,6 +931,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -861,11 +940,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hideBlockExplorerWarning => (super.noSuchMethod(
|
||||
Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -875,11 +956,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get gotoWalletOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -888,6 +971,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -896,11 +980,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get externalCalls => (super.noSuchMethod(
|
||||
Invocation.getter(#externalCalls),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set externalCalls(bool? externalCalls) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -909,11 +995,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -922,11 +1010,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||
Invocation.getter(#enableSystemBrightness),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -936,6 +1026,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get themeId => (super.noSuchMethod(
|
||||
Invocation.getter(#themeId),
|
||||
|
@ -944,6 +1035,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#themeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set themeId(String? themeId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -952,6 +1044,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
|
@ -960,6 +1053,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -969,6 +1063,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
|
@ -977,6 +1072,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -986,11 +1082,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useTor => (super.noSuchMethod(
|
||||
Invocation.getter(#useTor),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useTor(bool? useTor) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -999,11 +1097,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get autoPin => (super.noSuchMethod(
|
||||
Invocation.getter(#autoPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set autoPin(bool? autoPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -1012,11 +1112,28 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableExchange => (super.noSuchMethod(
|
||||
Invocation.getter(#enableExchange),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableExchange(bool? showExchange) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableExchange,
|
||||
showExchange,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1026,6 +1143,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1035,6 +1153,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1043,6 +1162,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1052,6 +1172,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1061,6 +1182,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i22.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1069,6 +1191,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: _i22.AmountUnit.normal,
|
||||
) as _i22.AmountUnit);
|
||||
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -1085,6 +1208,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1093,6 +1217,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -1109,6 +1234,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i8.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1124,6 +1250,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
),
|
||||
) as _i8.FusionInfo);
|
||||
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i4.CryptoCurrency? coin,
|
||||
|
@ -1139,6 +1266,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1147,6 +1275,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1155,6 +1284,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1163,6 +1293,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -70,6 +70,7 @@ class MockHTTP extends _i1.Mock implements _i2.HTTP {
|
|||
),
|
||||
)),
|
||||
) as _i3.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i3.Future<_i2.Response> post({
|
||||
required Uri? url,
|
||||
|
|
|
@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock
|
|||
Invocation.getter(#contacts),
|
||||
returnValue: <_i2.ContactEntry>[],
|
||||
) as List<_i2.ContactEntry>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i2.ContactEntry getContactById(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as _i2.ContactEntry);
|
||||
|
||||
@override
|
||||
_i4.Future<List<_i2.ContactEntry>> search(String? text) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<List<_i2.ContactEntry>>.value(<_i2.ContactEntry>[]),
|
||||
) as _i4.Future<List<_i2.ContactEntry>>);
|
||||
|
||||
@override
|
||||
bool matches(
|
||||
String? term,
|
||||
|
@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> addContact(_i2.ContactEntry? contact) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> editContact(_i2.ContactEntry? editedContact) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -88,11 +88,13 @@ class MockAddressBookService extends _i1.Mock
|
|||
Invocation.getter(#contacts),
|
||||
returnValue: <_i3.ContactEntry>[],
|
||||
) as List<_i3.ContactEntry>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i3.ContactEntry getContactById(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -107,6 +109,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as _i3.ContactEntry);
|
||||
|
||||
@override
|
||||
_i5.Future<List<_i3.ContactEntry>> search(String? text) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -117,6 +120,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue:
|
||||
_i5.Future<List<_i3.ContactEntry>>.value(<_i3.ContactEntry>[]),
|
||||
) as _i5.Future<List<_i3.ContactEntry>>);
|
||||
|
||||
@override
|
||||
bool matches(
|
||||
String? term,
|
||||
|
@ -132,6 +136,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i5.Future<bool> addContact(_i3.ContactEntry? contact) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -140,6 +145,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
|
||||
@override
|
||||
_i5.Future<bool> editContact(_i3.ContactEntry? editedContact) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -149,6 +155,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -158,6 +165,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -166,6 +174,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -174,6 +183,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -182,6 +192,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -49,11 +49,13 @@ class MockAddressBookService extends _i1.Mock
|
|||
Invocation.getter(#contacts),
|
||||
returnValue: <_i2.ContactEntry>[],
|
||||
) as List<_i2.ContactEntry>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i2.ContactEntry getContactById(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -68,6 +70,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as _i2.ContactEntry);
|
||||
|
||||
@override
|
||||
_i4.Future<List<_i2.ContactEntry>> search(String? text) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -78,6 +81,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<List<_i2.ContactEntry>>.value(<_i2.ContactEntry>[]),
|
||||
) as _i4.Future<List<_i2.ContactEntry>>);
|
||||
|
||||
@override
|
||||
bool matches(
|
||||
String? term,
|
||||
|
@ -93,6 +97,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> addContact(_i2.ContactEntry? contact) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -101,6 +106,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> editContact(_i2.ContactEntry? editedContact) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -110,6 +116,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -119,6 +126,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -127,6 +135,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -135,6 +144,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +153,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -169,11 +180,13 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -184,6 +197,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -192,6 +206,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -200,6 +215,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -208,6 +224,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock
|
|||
Invocation.getter(#contacts),
|
||||
returnValue: <_i2.ContactEntry>[],
|
||||
) as List<_i2.ContactEntry>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i2.ContactEntry getContactById(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as _i2.ContactEntry);
|
||||
|
||||
@override
|
||||
_i4.Future<List<_i2.ContactEntry>> search(String? text) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<List<_i2.ContactEntry>>.value(<_i2.ContactEntry>[]),
|
||||
) as _i4.Future<List<_i2.ContactEntry>>);
|
||||
|
||||
@override
|
||||
bool matches(
|
||||
String? term,
|
||||
|
@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> addContact(_i2.ContactEntry? contact) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> editContact(_i2.ContactEntry? editedContact) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -97,11 +97,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
Invocation.getter(#isInitialized),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
int get lastUnlockedTimeout => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlockedTimeout),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -110,11 +112,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get lastUnlocked => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlocked),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlocked(int? lastUnlocked) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -123,16 +127,19 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentNotificationId => (super.noSuchMethod(
|
||||
Invocation.getter(#currentNotificationId),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
List<String> get walletIdsSyncOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#walletIdsSyncOnStartup),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
set walletIdsSyncOnStartup(List<String>? walletIdsSyncOnStartup) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -142,11 +149,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i6.SyncingType.currentWalletOnly,
|
||||
) as _i6.SyncingType);
|
||||
|
||||
@override
|
||||
set syncType(_i6.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -155,11 +164,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get wifiOnly => (super.noSuchMethod(
|
||||
Invocation.getter(#wifiOnly),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set wifiOnly(bool? wifiOnly) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -168,11 +179,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showFavoriteWallets => (super.noSuchMethod(
|
||||
Invocation.getter(#showFavoriteWallets),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -181,6 +194,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get language => (super.noSuchMethod(
|
||||
Invocation.getter(#language),
|
||||
|
@ -189,6 +203,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
Invocation.getter(#language),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set language(String? newLanguage) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -197,6 +212,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get currency => (super.noSuchMethod(
|
||||
Invocation.getter(#currency),
|
||||
|
@ -205,6 +221,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
Invocation.getter(#currency),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set currency(String? newCurrency) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -213,11 +230,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get randomizePIN => (super.noSuchMethod(
|
||||
Invocation.getter(#randomizePIN),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -226,11 +245,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useBiometrics => (super.noSuchMethod(
|
||||
Invocation.getter(#useBiometrics),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useBiometrics(bool? useBiometrics) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -239,11 +260,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasPin => (super.noSuchMethod(
|
||||
Invocation.getter(#hasPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hasPin(bool? hasPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -252,11 +275,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get familiarity => (super.noSuchMethod(
|
||||
Invocation.getter(#familiarity),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set familiarity(int? familiarity) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -265,11 +290,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get torKillSwitch => (super.noSuchMethod(
|
||||
Invocation.getter(#torKillSwitch),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set torKillSwitch(bool? torKillswitch) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -278,11 +305,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showTestNetCoins => (super.noSuchMethod(
|
||||
Invocation.getter(#showTestNetCoins),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -291,11 +320,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get isAutoBackupEnabled => (super.noSuchMethod(
|
||||
Invocation.getter(#isAutoBackupEnabled),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -304,6 +335,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -312,11 +344,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i8.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i8.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i8.BackupFrequencyType);
|
||||
|
||||
@override
|
||||
set backupFrequencyType(_i8.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -326,6 +360,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -334,11 +369,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hideBlockExplorerWarning => (super.noSuchMethod(
|
||||
Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -348,11 +385,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get gotoWalletOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -361,6 +400,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -369,11 +409,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get externalCalls => (super.noSuchMethod(
|
||||
Invocation.getter(#externalCalls),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set externalCalls(bool? externalCalls) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -382,11 +424,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -395,11 +439,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||
Invocation.getter(#enableSystemBrightness),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -409,6 +455,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get themeId => (super.noSuchMethod(
|
||||
Invocation.getter(#themeId),
|
||||
|
@ -417,6 +464,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
Invocation.getter(#themeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set themeId(String? themeId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -425,6 +473,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
|
@ -433,6 +482,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -442,6 +492,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
|
@ -450,6 +501,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -459,11 +511,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useTor => (super.noSuchMethod(
|
||||
Invocation.getter(#useTor),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useTor(bool? useTor) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -472,11 +526,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get autoPin => (super.noSuchMethod(
|
||||
Invocation.getter(#autoPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set autoPin(bool? autoPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -485,11 +541,28 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableExchange => (super.noSuchMethod(
|
||||
Invocation.getter(#enableExchange),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableExchange(bool? showExchange) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableExchange,
|
||||
showExchange,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i9.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -499,6 +572,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -508,6 +582,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -516,6 +591,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValue: _i9.Future<bool>.value(false),
|
||||
) as _i9.Future<bool>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -525,6 +601,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -534,6 +611,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.AmountUnit amountUnit(_i11.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -542,6 +620,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValue: _i10.AmountUnit.normal,
|
||||
) as _i10.AmountUnit);
|
||||
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i11.CryptoCurrency? coin,
|
||||
|
@ -558,6 +637,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int maxDecimals(_i11.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -566,6 +646,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i11.CryptoCurrency? coin,
|
||||
|
@ -582,6 +663,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i2.FusionInfo getFusionServerInfo(_i11.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -597,6 +679,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
),
|
||||
) as _i2.FusionInfo);
|
||||
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i11.CryptoCurrency? coin,
|
||||
|
@ -612,6 +695,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -620,6 +704,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -628,6 +713,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -636,6 +722,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -659,16 +746,19 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
Invocation.getter(#trades),
|
||||
returnValue: <_i14.Trade>[],
|
||||
) as List<_i14.Trade>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i14.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method(
|
||||
#get,
|
||||
[tradeId],
|
||||
)) as _i14.Trade?);
|
||||
|
||||
@override
|
||||
_i9.Future<void> add({
|
||||
required _i14.Trade? trade,
|
||||
|
@ -686,6 +776,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> edit({
|
||||
required _i14.Trade? trade,
|
||||
|
@ -703,6 +794,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> delete({
|
||||
required _i14.Trade? trade,
|
||||
|
@ -720,6 +812,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> deleteByUuid({
|
||||
required String? uuid,
|
||||
|
@ -737,6 +830,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -745,6 +839,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -753,6 +848,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -761,6 +857,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -784,11 +881,13 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService {
|
|||
Invocation.getter(#all),
|
||||
returnValue: <String, String>{},
|
||||
) as Map<String, String>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
String getNote({required String? tradeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -805,6 +904,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService {
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i9.Future<void> set({
|
||||
required String? tradeId,
|
||||
|
@ -822,6 +922,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> delete({required String? tradeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -832,6 +933,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -840,6 +942,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -848,6 +951,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -856,6 +960,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -882,6 +987,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i3.HTTP);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<List<_i17.Currency>>> getAvailableCurrencies({
|
||||
bool? fixedRate,
|
||||
|
@ -910,6 +1016,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<List<_i17.Currency>>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<List<_i17.Currency>>> getCurrenciesV2() =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -927,6 +1034,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<List<_i17.Currency>>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<List<_i17.Currency>>> getPairedCurrencies({
|
||||
required String? ticker,
|
||||
|
@ -955,6 +1063,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<List<_i17.Currency>>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<_i18.Decimal>> getMinimalExchangeAmount({
|
||||
required String? fromTicker,
|
||||
|
@ -985,6 +1094,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i18.Decimal>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<_i19.Range>> getRange({
|
||||
required String? fromTicker,
|
||||
|
@ -1018,6 +1128,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i19.Range>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<_i20.Estimate>> getEstimatedExchangeAmount({
|
||||
required String? fromTicker,
|
||||
|
@ -1051,6 +1162,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i20.Estimate>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<_i20.Estimate>>
|
||||
getEstimatedExchangeAmountFixedRate({
|
||||
|
@ -1091,6 +1203,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i20.Estimate>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<_i21.CNExchangeEstimate>>
|
||||
getEstimatedExchangeAmountV2({
|
||||
|
@ -1138,6 +1251,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i21.CNExchangeEstimate>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<List<_i22.FixedRateMarket>>>
|
||||
getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod(
|
||||
|
@ -1157,6 +1271,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<List<_i22.FixedRateMarket>>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>>
|
||||
createStandardExchangeTransaction({
|
||||
|
@ -1210,6 +1325,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>>
|
||||
createFixedRateExchangeTransaction({
|
||||
|
@ -1269,6 +1385,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>>);
|
||||
|
||||
@override
|
||||
_i9.Future<
|
||||
_i4
|
||||
|
@ -1299,6 +1416,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI {
|
|||
),
|
||||
)),
|
||||
) as _i9.Future<_i4.ExchangeResponse<_i24.ExchangeTransactionStatus>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i4.ExchangeResponse<List<_i25.Pair>>>
|
||||
getAvailableFloatingRatePairs({bool? includePartners = false}) =>
|
||||
|
|
|
@ -54,11 +54,13 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
returnValue: _i4.Future<Map<String, _i3.WalletInfo>>.value(
|
||||
<String, _i3.WalletInfo>{}),
|
||||
) as _i4.Future<Map<String, _i3.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -67,6 +69,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -75,6 +78,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -83,6 +87,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,21 +114,25 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i2.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +142,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setPrimaryNodeFor({
|
||||
required _i8.CryptoCurrency? coin,
|
||||
|
@ -152,6 +162,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -159,6 +170,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i7.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -168,6 +180,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
_i7.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -175,6 +188,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i7.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> failoverNodesFor(
|
||||
{required _i8.CryptoCurrency? currency}) =>
|
||||
|
@ -186,6 +200,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> add(
|
||||
_i7.NodeModel? node,
|
||||
|
@ -204,6 +219,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -220,6 +236,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -238,6 +255,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> edit(
|
||||
_i7.NodeModel? editedNode,
|
||||
|
@ -256,6 +274,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -265,6 +284,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -273,6 +293,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -281,6 +302,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -289,6 +311,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -39,11 +39,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -52,6 +54,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -60,6 +63,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -68,6 +72,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -94,11 +99,13 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i3.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,6 +116,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
returnValue: _i3.Future<void>.value(),
|
||||
returnValueForMissingStub: _i3.Future<void>.value(),
|
||||
) as _i3.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +125,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +134,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +143,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -39,11 +39,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -52,6 +54,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -60,6 +63,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -68,6 +72,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -94,11 +99,13 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i3.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,6 +116,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
returnValue: _i3.Future<void>.value(),
|
||||
returnValueForMissingStub: _i3.Future<void>.value(),
|
||||
) as _i3.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +125,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +134,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +143,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -39,11 +39,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -52,6 +54,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -60,6 +63,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -68,6 +72,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -94,11 +99,13 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i3.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,6 +116,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
returnValue: _i3.Future<void>.value(),
|
||||
returnValueForMissingStub: _i3.Future<void>.value(),
|
||||
) as _i3.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +125,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +134,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +143,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -54,11 +54,13 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
returnValue: _i4.Future<Map<String, _i3.WalletInfo>>.value(
|
||||
<String, _i3.WalletInfo>{}),
|
||||
) as _i4.Future<Map<String, _i3.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -67,6 +69,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -75,6 +78,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -83,6 +87,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -109,21 +114,25 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i2.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +142,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setPrimaryNodeFor({
|
||||
required _i8.CryptoCurrency? coin,
|
||||
|
@ -152,6 +162,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -159,6 +170,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i7.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -168,6 +180,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
_i7.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -175,6 +188,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i7.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i7.NodeModel> failoverNodesFor(
|
||||
{required _i8.CryptoCurrency? currency}) =>
|
||||
|
@ -186,6 +200,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValue: <_i7.NodeModel>[],
|
||||
) as List<_i7.NodeModel>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> add(
|
||||
_i7.NodeModel? node,
|
||||
|
@ -204,6 +219,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -220,6 +236,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -238,6 +255,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> edit(
|
||||
_i7.NodeModel? editedNode,
|
||||
|
@ -256,6 +274,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -265,6 +284,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -273,6 +293,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -281,6 +302,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -289,6 +311,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -95,11 +95,13 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService {
|
|||
returnValue: _i5.Future<Map<String, _i6.WalletInfo>>.value(
|
||||
<String, _i6.WalletInfo>{}),
|
||||
) as _i5.Future<Map<String, _i6.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -108,6 +110,7 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -116,6 +119,7 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -124,6 +128,7 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -150,21 +155,25 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i3.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i9.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i9.NodeModel>[],
|
||||
) as List<_i9.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i9.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i9.NodeModel>[],
|
||||
) as List<_i9.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -174,6 +183,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setPrimaryNodeFor({
|
||||
required _i10.CryptoCurrency? coin,
|
||||
|
@ -193,6 +203,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.NodeModel? getPrimaryNodeFor({required _i10.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -200,6 +211,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i9.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i9.NodeModel> getNodesFor(_i10.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -209,6 +221,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
),
|
||||
returnValue: <_i9.NodeModel>[],
|
||||
) as List<_i9.NodeModel>);
|
||||
|
||||
@override
|
||||
_i9.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -216,6 +229,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i9.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i9.NodeModel> failoverNodesFor(
|
||||
{required _i10.CryptoCurrency? currency}) =>
|
||||
|
@ -227,6 +241,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
),
|
||||
returnValue: <_i9.NodeModel>[],
|
||||
) as List<_i9.NodeModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> add(
|
||||
_i9.NodeModel? node,
|
||||
|
@ -245,6 +260,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -261,6 +277,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -279,6 +296,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> edit(
|
||||
_i9.NodeModel? editedNode,
|
||||
|
@ -297,6 +315,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -306,6 +325,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -314,6 +334,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -322,6 +343,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -330,6 +352,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i2.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setPrimaryNodeFor({
|
||||
required _i6.CryptoCurrency? coin,
|
||||
|
@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> failoverNodesFor(
|
||||
{required _i6.CryptoCurrency? currency}) =>
|
||||
|
@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> add(
|
||||
_i4.NodeModel? node,
|
||||
|
@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> edit(
|
||||
_i4.NodeModel? editedNode,
|
||||
|
@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i2.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setPrimaryNodeFor({
|
||||
required _i6.CryptoCurrency? coin,
|
||||
|
@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> failoverNodesFor(
|
||||
{required _i6.CryptoCurrency? currency}) =>
|
||||
|
@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> add(
|
||||
_i4.NodeModel? node,
|
||||
|
@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> edit(
|
||||
_i4.NodeModel? editedNode,
|
||||
|
@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i2.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setPrimaryNodeFor({
|
||||
required _i6.CryptoCurrency? coin,
|
||||
|
@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> failoverNodesFor(
|
||||
{required _i6.CryptoCurrency? currency}) =>
|
||||
|
@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> add(
|
||||
_i4.NodeModel? node,
|
||||
|
@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> edit(
|
||||
_i4.NodeModel? editedNode,
|
||||
|
@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -4,16 +4,18 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i4;
|
||||
import 'dart:ui' as _i11;
|
||||
import 'dart:ui' as _i13;
|
||||
|
||||
import 'package:local_auth/auth_strings.dart' as _i8;
|
||||
import 'package:local_auth/local_auth.dart' as _i7;
|
||||
import 'package:local_auth_android/local_auth_android.dart' as _i8;
|
||||
import 'package:local_auth_darwin/local_auth_darwin.dart' as _i9;
|
||||
import 'package:local_auth_windows/local_auth_windows.dart' as _i10;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:mockito/src/dummies.dart' as _i6;
|
||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i3;
|
||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i2;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i10;
|
||||
import 'package:stackwallet/utilities/biometrics.dart' as _i9;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i12;
|
||||
import 'package:stackwallet/utilities/biometrics.dart' as _i11;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i5;
|
||||
|
||||
|
@ -58,6 +60,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
Invocation.getter(#electrumXClient),
|
||||
),
|
||||
) as _i2.ElectrumXClient);
|
||||
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
required String? groupId,
|
||||
|
@ -77,6 +80,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -91,6 +95,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String base64ToReverseHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -105,6 +110,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -124,6 +130,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i4.Future<List<String>> getUsedCoinSerials({
|
||||
required _i5.CryptoCurrency? cryptoCurrency,
|
||||
|
@ -140,6 +147,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<List<String>>.value(<String>[]),
|
||||
) as _i4.Future<List<String>>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> clearSharedTransactionCache(
|
||||
{required _i5.CryptoCurrency? cryptoCurrency}) =>
|
||||
|
@ -168,41 +176,16 @@ class MockLocalAuthentication extends _i1.Mock
|
|||
Invocation.getter(#canCheckBiometrics),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
@override
|
||||
_i4.Future<bool> authenticateWithBiometrics({
|
||||
required String? localizedReason,
|
||||
bool? useErrorDialogs = true,
|
||||
bool? stickyAuth = false,
|
||||
_i8.AndroidAuthMessages? androidAuthStrings =
|
||||
const _i8.AndroidAuthMessages(),
|
||||
_i8.IOSAuthMessages? iOSAuthStrings = const _i8.IOSAuthMessages(),
|
||||
bool? sensitiveTransaction = true,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#authenticateWithBiometrics,
|
||||
[],
|
||||
{
|
||||
#localizedReason: localizedReason,
|
||||
#useErrorDialogs: useErrorDialogs,
|
||||
#stickyAuth: stickyAuth,
|
||||
#androidAuthStrings: androidAuthStrings,
|
||||
#iOSAuthStrings: iOSAuthStrings,
|
||||
#sensitiveTransaction: sensitiveTransaction,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> authenticate({
|
||||
required String? localizedReason,
|
||||
bool? useErrorDialogs = true,
|
||||
bool? stickyAuth = false,
|
||||
_i8.AndroidAuthMessages? androidAuthStrings =
|
||||
const _i8.AndroidAuthMessages(),
|
||||
_i8.IOSAuthMessages? iOSAuthStrings = const _i8.IOSAuthMessages(),
|
||||
bool? sensitiveTransaction = true,
|
||||
bool? biometricOnly = false,
|
||||
Iterable<_i8.AuthMessages>? authMessages = const [
|
||||
_i9.IOSAuthMessages(),
|
||||
_i8.AndroidAuthMessages(),
|
||||
_i10.WindowsAuthMessages(),
|
||||
],
|
||||
_i8.AuthenticationOptions? options = const _i8.AuthenticationOptions(),
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -210,16 +193,13 @@ class MockLocalAuthentication extends _i1.Mock
|
|||
[],
|
||||
{
|
||||
#localizedReason: localizedReason,
|
||||
#useErrorDialogs: useErrorDialogs,
|
||||
#stickyAuth: stickyAuth,
|
||||
#androidAuthStrings: androidAuthStrings,
|
||||
#iOSAuthStrings: iOSAuthStrings,
|
||||
#sensitiveTransaction: sensitiveTransaction,
|
||||
#biometricOnly: biometricOnly,
|
||||
#authMessages: authMessages,
|
||||
#options: options,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> stopAuthentication() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -228,6 +208,7 @@ class MockLocalAuthentication extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> isDeviceSupported() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -236,22 +217,23 @@ class MockLocalAuthentication extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<List<_i7.BiometricType>> getAvailableBiometrics() =>
|
||||
_i4.Future<List<_i8.BiometricType>> getAvailableBiometrics() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getAvailableBiometrics,
|
||||
[],
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<List<_i7.BiometricType>>.value(<_i7.BiometricType>[]),
|
||||
) as _i4.Future<List<_i7.BiometricType>>);
|
||||
_i4.Future<List<_i8.BiometricType>>.value(<_i8.BiometricType>[]),
|
||||
) as _i4.Future<List<_i8.BiometricType>>);
|
||||
}
|
||||
|
||||
/// A class which mocks [Biometrics].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockBiometrics extends _i1.Mock implements _i9.Biometrics {
|
||||
class MockBiometrics extends _i1.Mock implements _i11.Biometrics {
|
||||
MockBiometrics() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -279,39 +261,43 @@ class MockBiometrics extends _i1.Mock implements _i9.Biometrics {
|
|||
/// A class which mocks [WalletsService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockWalletsService extends _i1.Mock implements _i10.WalletsService {
|
||||
class MockWalletsService extends _i1.Mock implements _i12.WalletsService {
|
||||
MockWalletsService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i4.Future<Map<String, _i10.WalletInfo>> get walletNames =>
|
||||
_i4.Future<Map<String, _i12.WalletInfo>> get walletNames =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#walletNames),
|
||||
returnValue: _i4.Future<Map<String, _i10.WalletInfo>>.value(
|
||||
<String, _i10.WalletInfo>{}),
|
||||
) as _i4.Future<Map<String, _i10.WalletInfo>>);
|
||||
returnValue: _i4.Future<Map<String, _i12.WalletInfo>>.value(
|
||||
<String, _i12.WalletInfo>{}),
|
||||
) as _i4.Future<Map<String, _i12.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -320,6 +306,7 @@ class MockWalletsService extends _i1.Mock implements _i10.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
returnValue: _i3.Future<Map<String, _i2.WalletInfo>>.value(
|
||||
<String, _i2.WalletInfo>{}),
|
||||
) as _i3.Future<Map<String, _i2.WalletInfo>>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
void addListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -49,11 +49,13 @@ class MockAddressBookService extends _i1.Mock
|
|||
Invocation.getter(#contacts),
|
||||
returnValue: <_i2.ContactEntry>[],
|
||||
) as List<_i2.ContactEntry>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i2.ContactEntry getContactById(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -68,6 +70,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as _i2.ContactEntry);
|
||||
|
||||
@override
|
||||
_i4.Future<List<_i2.ContactEntry>> search(String? text) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -78,6 +81,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<List<_i2.ContactEntry>>.value(<_i2.ContactEntry>[]),
|
||||
) as _i4.Future<List<_i2.ContactEntry>>);
|
||||
|
||||
@override
|
||||
bool matches(
|
||||
String? term,
|
||||
|
@ -93,6 +97,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> addContact(_i2.ContactEntry? contact) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -101,6 +106,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> editContact(_i2.ContactEntry? editedContact) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -110,6 +116,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -119,6 +126,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -127,6 +135,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -135,6 +144,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +153,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -169,11 +180,13 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -184,6 +197,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -192,6 +206,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -200,6 +215,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -208,6 +224,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -39,11 +39,13 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -54,6 +56,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -62,6 +65,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -70,6 +74,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -78,6 +83,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock
|
|||
Invocation.getter(#contacts),
|
||||
returnValue: <_i2.ContactEntry>[],
|
||||
) as List<_i2.ContactEntry>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i2.ContactEntry getContactById(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as _i2.ContactEntry);
|
||||
|
||||
@override
|
||||
_i4.Future<List<_i2.ContactEntry>> search(String? text) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<List<_i2.ContactEntry>>.value(<_i2.ContactEntry>[]),
|
||||
) as _i4.Future<List<_i2.ContactEntry>>);
|
||||
|
||||
@override
|
||||
bool matches(
|
||||
String? term,
|
||||
|
@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> addContact(_i2.ContactEntry? contact) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> editContact(_i2.ContactEntry? editedContact) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -39,11 +39,13 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -54,6 +56,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -62,6 +65,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -70,6 +74,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -78,6 +83,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -70,6 +70,7 @@ class MockHTTP extends _i1.Mock implements _i2.HTTP {
|
|||
),
|
||||
)),
|
||||
) as _i3.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i3.Future<_i2.Response> post({
|
||||
required Uri? url,
|
||||
|
|
|
@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#cryptoCurrency),
|
||||
),
|
||||
) as _i2.CryptoCurrency);
|
||||
|
||||
@override
|
||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentFailoverIndex => (super.noSuchMethod(
|
||||
Invocation.getter(#currentFailoverIndex),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||
),
|
||||
) as Duration);
|
||||
|
||||
@override
|
||||
String get host => (super.noSuchMethod(
|
||||
Invocation.getter(#host),
|
||||
|
@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#host),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
int get port => (super.noSuchMethod(
|
||||
Invocation.getter(#port),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
bool get useSSL => (super.noSuchMethod(
|
||||
Invocation.getter(#useSSL),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> request({
|
||||
required String? command,
|
||||
|
@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<dynamic>> batchRequest({
|
||||
required String? command,
|
||||
|
@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
||||
) as _i6.Future<List<dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> ping({
|
||||
String? requestID,
|
||||
|
@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<String> broadcastTransaction({
|
||||
required String? rawTx,
|
||||
|
@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<String>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBalance({
|
||||
required String? scripthash,
|
||||
|
@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
||||
required String? scripthash,
|
||||
|
@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
required String? scripthash,
|
||||
|
@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||
String? groupId = r'1',
|
||||
|
@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> getLelantusMintData({
|
||||
dynamic mints,
|
||||
|
@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||
String? requestID,
|
||||
|
@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||
String? coinGroupId = r'1',
|
||||
|
@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
|
@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
||||
) as _i6.Future<Set<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<
|
||||
List<
|
||||
|
@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
List<String> serialContext,
|
||||
String txid
|
||||
})>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||
String? requestID,
|
||||
|
@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||
) as _i6.Future<List<List<dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> isMasterNodeCollateral({
|
||||
String? requestID,
|
||||
|
@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> estimateFee({
|
||||
String? requestID,
|
||||
|
@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<_i3.Decimal>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
Invocation.getter(#electrumXClient),
|
||||
),
|
||||
) as _i4.ElectrumXClient);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
required String? groupId,
|
||||
|
@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String base64ToReverseHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<String>> getUsedCoinSerials({
|
||||
required _i2.CryptoCurrency? cryptoCurrency,
|
||||
|
@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
||||
) as _i6.Future<List<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> clearSharedTransactionCache(
|
||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||
|
@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
Invocation.getter(#walletId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
List<String> get pendings => (super.noSuchMethod(
|
||||
Invocation.getter(#pendings),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<String> get confirmeds => (super.noSuchMethod(
|
||||
Invocation.getter(#confirmeds),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#cryptoCurrency),
|
||||
),
|
||||
) as _i2.CryptoCurrency);
|
||||
|
||||
@override
|
||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentFailoverIndex => (super.noSuchMethod(
|
||||
Invocation.getter(#currentFailoverIndex),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||
),
|
||||
) as Duration);
|
||||
|
||||
@override
|
||||
String get host => (super.noSuchMethod(
|
||||
Invocation.getter(#host),
|
||||
|
@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#host),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
int get port => (super.noSuchMethod(
|
||||
Invocation.getter(#port),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
bool get useSSL => (super.noSuchMethod(
|
||||
Invocation.getter(#useSSL),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> request({
|
||||
required String? command,
|
||||
|
@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<dynamic>> batchRequest({
|
||||
required String? command,
|
||||
|
@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
||||
) as _i6.Future<List<dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> ping({
|
||||
String? requestID,
|
||||
|
@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<String> broadcastTransaction({
|
||||
required String? rawTx,
|
||||
|
@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<String>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBalance({
|
||||
required String? scripthash,
|
||||
|
@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
||||
required String? scripthash,
|
||||
|
@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
required String? scripthash,
|
||||
|
@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||
String? groupId = r'1',
|
||||
|
@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> getLelantusMintData({
|
||||
dynamic mints,
|
||||
|
@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||
String? requestID,
|
||||
|
@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||
String? coinGroupId = r'1',
|
||||
|
@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
|
@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
||||
) as _i6.Future<Set<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<
|
||||
List<
|
||||
|
@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
List<String> serialContext,
|
||||
String txid
|
||||
})>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||
String? requestID,
|
||||
|
@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||
) as _i6.Future<List<List<dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> isMasterNodeCollateral({
|
||||
String? requestID,
|
||||
|
@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> estimateFee({
|
||||
String? requestID,
|
||||
|
@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<_i3.Decimal>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
Invocation.getter(#electrumXClient),
|
||||
),
|
||||
) as _i4.ElectrumXClient);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
required String? groupId,
|
||||
|
@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String base64ToReverseHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<String>> getUsedCoinSerials({
|
||||
required _i2.CryptoCurrency? cryptoCurrency,
|
||||
|
@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
||||
) as _i6.Future<List<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> clearSharedTransactionCache(
|
||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||
|
@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
Invocation.getter(#walletId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
List<String> get pendings => (super.noSuchMethod(
|
||||
Invocation.getter(#pendings),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<String> get confirmeds => (super.noSuchMethod(
|
||||
Invocation.getter(#confirmeds),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#cryptoCurrency),
|
||||
),
|
||||
) as _i2.CryptoCurrency);
|
||||
|
||||
@override
|
||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentFailoverIndex => (super.noSuchMethod(
|
||||
Invocation.getter(#currentFailoverIndex),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||
),
|
||||
) as Duration);
|
||||
|
||||
@override
|
||||
String get host => (super.noSuchMethod(
|
||||
Invocation.getter(#host),
|
||||
|
@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#host),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
int get port => (super.noSuchMethod(
|
||||
Invocation.getter(#port),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
bool get useSSL => (super.noSuchMethod(
|
||||
Invocation.getter(#useSSL),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> request({
|
||||
required String? command,
|
||||
|
@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<dynamic>> batchRequest({
|
||||
required String? command,
|
||||
|
@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
||||
) as _i6.Future<List<dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> ping({
|
||||
String? requestID,
|
||||
|
@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<String> broadcastTransaction({
|
||||
required String? rawTx,
|
||||
|
@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<String>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBalance({
|
||||
required String? scripthash,
|
||||
|
@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
||||
required String? scripthash,
|
||||
|
@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
required String? scripthash,
|
||||
|
@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||
String? groupId = r'1',
|
||||
|
@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> getLelantusMintData({
|
||||
dynamic mints,
|
||||
|
@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||
String? requestID,
|
||||
|
@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||
String? coinGroupId = r'1',
|
||||
|
@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
|
@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
||||
) as _i6.Future<Set<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<
|
||||
List<
|
||||
|
@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
List<String> serialContext,
|
||||
String txid
|
||||
})>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||
String? requestID,
|
||||
|
@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||
) as _i6.Future<List<List<dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> isMasterNodeCollateral({
|
||||
String? requestID,
|
||||
|
@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> estimateFee({
|
||||
String? requestID,
|
||||
|
@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<_i3.Decimal>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
Invocation.getter(#electrumXClient),
|
||||
),
|
||||
) as _i4.ElectrumXClient);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
required String? groupId,
|
||||
|
@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String base64ToReverseHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<String>> getUsedCoinSerials({
|
||||
required _i2.CryptoCurrency? cryptoCurrency,
|
||||
|
@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
||||
) as _i6.Future<List<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> clearSharedTransactionCache(
|
||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||
|
@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
Invocation.getter(#walletId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
List<String> get pendings => (super.noSuchMethod(
|
||||
Invocation.getter(#pendings),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<String> get confirmeds => (super.noSuchMethod(
|
||||
Invocation.getter(#confirmeds),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#cryptoCurrency),
|
||||
),
|
||||
) as _i2.CryptoCurrency);
|
||||
|
||||
@override
|
||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentFailoverIndex => (super.noSuchMethod(
|
||||
Invocation.getter(#currentFailoverIndex),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||
),
|
||||
) as Duration);
|
||||
|
||||
@override
|
||||
String get host => (super.noSuchMethod(
|
||||
Invocation.getter(#host),
|
||||
|
@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#host),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
int get port => (super.noSuchMethod(
|
||||
Invocation.getter(#port),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
bool get useSSL => (super.noSuchMethod(
|
||||
Invocation.getter(#useSSL),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> request({
|
||||
required String? command,
|
||||
|
@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<dynamic>> batchRequest({
|
||||
required String? command,
|
||||
|
@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
||||
) as _i6.Future<List<dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> ping({
|
||||
String? requestID,
|
||||
|
@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<String> broadcastTransaction({
|
||||
required String? rawTx,
|
||||
|
@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<String>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBalance({
|
||||
required String? scripthash,
|
||||
|
@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
||||
required String? scripthash,
|
||||
|
@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
required String? scripthash,
|
||||
|
@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||
String? groupId = r'1',
|
||||
|
@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> getLelantusMintData({
|
||||
dynamic mints,
|
||||
|
@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||
String? requestID,
|
||||
|
@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||
String? coinGroupId = r'1',
|
||||
|
@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
|
@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
||||
) as _i6.Future<Set<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<
|
||||
List<
|
||||
|
@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
List<String> serialContext,
|
||||
String txid
|
||||
})>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||
String? requestID,
|
||||
|
@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||
) as _i6.Future<List<List<dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> isMasterNodeCollateral({
|
||||
String? requestID,
|
||||
|
@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> estimateFee({
|
||||
String? requestID,
|
||||
|
@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<_i3.Decimal>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
Invocation.getter(#electrumXClient),
|
||||
),
|
||||
) as _i4.ElectrumXClient);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
required String? groupId,
|
||||
|
@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String base64ToReverseHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<String>> getUsedCoinSerials({
|
||||
required _i2.CryptoCurrency? cryptoCurrency,
|
||||
|
@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
||||
) as _i6.Future<List<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> clearSharedTransactionCache(
|
||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||
|
@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
Invocation.getter(#walletId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
List<String> get pendings => (super.noSuchMethod(
|
||||
Invocation.getter(#pendings),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<String> get confirmeds => (super.noSuchMethod(
|
||||
Invocation.getter(#confirmeds),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#cryptoCurrency),
|
||||
),
|
||||
) as _i2.CryptoCurrency);
|
||||
|
||||
@override
|
||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentFailoverIndex => (super.noSuchMethod(
|
||||
Invocation.getter(#currentFailoverIndex),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||
),
|
||||
) as Duration);
|
||||
|
||||
@override
|
||||
String get host => (super.noSuchMethod(
|
||||
Invocation.getter(#host),
|
||||
|
@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
Invocation.getter(#host),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
int get port => (super.noSuchMethod(
|
||||
Invocation.getter(#port),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
bool get useSSL => (super.noSuchMethod(
|
||||
Invocation.getter(#useSSL),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> request({
|
||||
required String? command,
|
||||
|
@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<dynamic>> batchRequest({
|
||||
required String? command,
|
||||
|
@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
||||
) as _i6.Future<List<dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> ping({
|
||||
String? requestID,
|
||||
|
@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<String> broadcastTransaction({
|
||||
required String? rawTx,
|
||||
|
@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<String>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getBalance({
|
||||
required String? scripthash,
|
||||
|
@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
||||
required String? scripthash,
|
||||
|
@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
required String? scripthash,
|
||||
|
@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
{required List<dynamic>? args}) =>
|
||||
|
@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||
<List<Map<String, dynamic>>>[]),
|
||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||
String? groupId = r'1',
|
||||
|
@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<dynamic> getLelantusMintData({
|
||||
dynamic mints,
|
||||
|
@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<dynamic>.value(),
|
||||
) as _i6.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||
String? requestID,
|
||||
|
@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||
String? coinGroupId = r'1',
|
||||
|
@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
|
@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<int>.value(0),
|
||||
) as _i6.Future<int>);
|
||||
|
||||
@override
|
||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
||||
) as _i6.Future<Set<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<
|
||||
List<
|
||||
|
@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
List<String> serialContext,
|
||||
String txid
|
||||
})>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||
String? requestID,
|
||||
|
@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||
) as _i6.Future<List<List<dynamic>>>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> isMasterNodeCollateral({
|
||||
String? requestID,
|
||||
|
@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> estimateFee({
|
||||
String? requestID,
|
||||
|
@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
),
|
||||
)),
|
||||
) as _i6.Future<_i3.Decimal>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
Invocation.getter(#electrumXClient),
|
||||
),
|
||||
) as _i4.ElectrumXClient);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
required String? groupId,
|
||||
|
@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String base64ToReverseHex(String? source) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
|
@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
returnValue:
|
||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i6.Future<Map<String, dynamic>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<String>> getUsedCoinSerials({
|
||||
required _i2.CryptoCurrency? cryptoCurrency,
|
||||
|
@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
|||
),
|
||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
||||
) as _i6.Future<List<String>>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> clearSharedTransactionCache(
|
||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||
|
@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
Invocation.getter(#walletId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
List<String> get pendings => (super.noSuchMethod(
|
||||
Invocation.getter(#pendings),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
List<String> get confirmeds => (super.noSuchMethod(
|
||||
Invocation.getter(#confirmeds),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock
|
|||
Invocation.getter(#contacts),
|
||||
returnValue: <_i2.ContactEntry>[],
|
||||
) as List<_i2.ContactEntry>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i2.ContactEntry getContactById(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
),
|
||||
) as _i2.ContactEntry);
|
||||
|
||||
@override
|
||||
_i4.Future<List<_i2.ContactEntry>> search(String? text) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue:
|
||||
_i4.Future<List<_i2.ContactEntry>>.value(<_i2.ContactEntry>[]),
|
||||
) as _i4.Future<List<_i2.ContactEntry>>);
|
||||
|
||||
@override
|
||||
bool matches(
|
||||
String? term,
|
||||
|
@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> addContact(_i2.ContactEntry? contact) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<bool> editContact(_i2.ContactEntry? editedContact) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i2.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i2.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i5.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i5.StackTheme>[],
|
||||
) as List<_i5.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.Future<void> install({required _i7.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i4.StackThemeMetaData>> fetchThemes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<List<_i4.StackThemeMetaData>>.value(
|
||||
<_i4.StackThemeMetaData>[]),
|
||||
) as _i6.Future<List<_i4.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i7.Uint8List> fetchTheme(
|
||||
{required _i4.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
|
||||
) as _i6.Future<_i7.Uint8List>);
|
||||
|
||||
@override
|
||||
_i5.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
|
|
@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i2.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i2.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i5.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i5.StackTheme>[],
|
||||
) as List<_i5.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.Future<void> install({required _i7.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i4.StackThemeMetaData>> fetchThemes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<List<_i4.StackThemeMetaData>>.value(
|
||||
<_i4.StackThemeMetaData>[]),
|
||||
) as _i6.Future<List<_i4.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i7.Uint8List> fetchTheme(
|
||||
{required _i4.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
|
||||
) as _i6.Future<_i7.Uint8List>);
|
||||
|
||||
@override
|
||||
_i5.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
|
|
@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i2.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i2.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i5.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i5.StackTheme>[],
|
||||
) as List<_i5.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.Future<void> install({required _i7.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i4.StackThemeMetaData>> fetchThemes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<List<_i4.StackThemeMetaData>>.value(
|
||||
<_i4.StackThemeMetaData>[]),
|
||||
) as _i6.Future<List<_i4.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i7.Uint8List> fetchTheme(
|
||||
{required _i4.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
|
||||
) as _i6.Future<_i7.Uint8List>);
|
||||
|
||||
@override
|
||||
_i5.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
|
|
@ -121,6 +121,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
Invocation.getter(#nodeService),
|
||||
),
|
||||
) as _i2.NodeService);
|
||||
|
||||
@override
|
||||
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -129,6 +130,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get mainDB => (super.noSuchMethod(
|
||||
Invocation.getter(#mainDB),
|
||||
|
@ -137,6 +139,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
Invocation.getter(#mainDB),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -145,11 +148,13 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
|
||||
Invocation.getter(#wallets),
|
||||
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
|
||||
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
|
||||
|
||||
@override
|
||||
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -165,6 +170,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
),
|
||||
) as _i5.Wallet<_i4.CryptoCurrency>);
|
||||
|
||||
@override
|
||||
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -173,6 +179,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i10.Future<void> deleteWallet(
|
||||
_i11.WalletInfo? info,
|
||||
|
@ -189,6 +196,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> load(
|
||||
_i12.Prefs? prefs,
|
||||
|
@ -205,6 +213,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> loadAfterStackRestore(
|
||||
_i12.Prefs? prefs,
|
||||
|
@ -241,6 +250,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i6.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i6.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -249,6 +259,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -257,11 +268,13 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i14.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i14.StackTheme>[],
|
||||
) as List<_i14.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -270,6 +283,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i10.Future<void> install({required _i15.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -281,6 +295,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -291,6 +306,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -300,6 +316,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -310,6 +327,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<List<_i13.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -320,6 +338,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
returnValue: _i10.Future<List<_i13.StackThemeMetaData>>.value(
|
||||
<_i13.StackThemeMetaData>[]),
|
||||
) as _i10.Future<List<_i13.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i15.Uint8List> fetchTheme(
|
||||
{required _i13.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -331,6 +350,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
),
|
||||
returnValue: _i10.Future<_i15.Uint8List>.value(_i15.Uint8List(0)),
|
||||
) as _i10.Future<_i15.Uint8List>);
|
||||
|
||||
@override
|
||||
_i14.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -353,11 +373,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#isInitialized),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
int get lastUnlockedTimeout => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlockedTimeout),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -366,11 +388,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get lastUnlocked => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlocked),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlocked(int? lastUnlocked) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -379,16 +403,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentNotificationId => (super.noSuchMethod(
|
||||
Invocation.getter(#currentNotificationId),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
List<String> get walletIdsSyncOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#walletIdsSyncOnStartup),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
set walletIdsSyncOnStartup(List<String>? walletIdsSyncOnStartup) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -398,11 +425,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i16.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i16.SyncingType.currentWalletOnly,
|
||||
) as _i16.SyncingType);
|
||||
|
||||
@override
|
||||
set syncType(_i16.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -411,11 +440,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get wifiOnly => (super.noSuchMethod(
|
||||
Invocation.getter(#wifiOnly),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set wifiOnly(bool? wifiOnly) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -424,11 +455,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showFavoriteWallets => (super.noSuchMethod(
|
||||
Invocation.getter(#showFavoriteWallets),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -437,6 +470,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get language => (super.noSuchMethod(
|
||||
Invocation.getter(#language),
|
||||
|
@ -445,6 +479,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#language),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set language(String? newLanguage) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -453,6 +488,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get currency => (super.noSuchMethod(
|
||||
Invocation.getter(#currency),
|
||||
|
@ -461,6 +497,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#currency),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set currency(String? newCurrency) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -469,11 +506,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get randomizePIN => (super.noSuchMethod(
|
||||
Invocation.getter(#randomizePIN),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -482,11 +521,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useBiometrics => (super.noSuchMethod(
|
||||
Invocation.getter(#useBiometrics),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useBiometrics(bool? useBiometrics) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -495,11 +536,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasPin => (super.noSuchMethod(
|
||||
Invocation.getter(#hasPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hasPin(bool? hasPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -508,11 +551,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get familiarity => (super.noSuchMethod(
|
||||
Invocation.getter(#familiarity),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set familiarity(int? familiarity) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -521,11 +566,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get torKillSwitch => (super.noSuchMethod(
|
||||
Invocation.getter(#torKillSwitch),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set torKillSwitch(bool? torKillswitch) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -534,11 +581,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showTestNetCoins => (super.noSuchMethod(
|
||||
Invocation.getter(#showTestNetCoins),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -547,11 +596,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get isAutoBackupEnabled => (super.noSuchMethod(
|
||||
Invocation.getter(#isAutoBackupEnabled),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -560,6 +611,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -568,11 +620,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i18.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i18.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i18.BackupFrequencyType);
|
||||
|
||||
@override
|
||||
set backupFrequencyType(_i18.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -582,6 +636,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -590,11 +645,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hideBlockExplorerWarning => (super.noSuchMethod(
|
||||
Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -604,11 +661,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get gotoWalletOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -617,6 +676,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -625,11 +685,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get externalCalls => (super.noSuchMethod(
|
||||
Invocation.getter(#externalCalls),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set externalCalls(bool? externalCalls) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -638,11 +700,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -651,11 +715,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||
Invocation.getter(#enableSystemBrightness),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -665,6 +731,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get themeId => (super.noSuchMethod(
|
||||
Invocation.getter(#themeId),
|
||||
|
@ -673,6 +740,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#themeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set themeId(String? themeId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -681,6 +749,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
|
@ -689,6 +758,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -698,6 +768,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
|
@ -706,6 +777,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -715,11 +787,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useTor => (super.noSuchMethod(
|
||||
Invocation.getter(#useTor),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useTor(bool? useTor) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -728,11 +802,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get autoPin => (super.noSuchMethod(
|
||||
Invocation.getter(#autoPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set autoPin(bool? autoPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -741,11 +817,28 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableExchange => (super.noSuchMethod(
|
||||
Invocation.getter(#enableExchange),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableExchange(bool? showExchange) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableExchange,
|
||||
showExchange,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -755,6 +848,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -764,6 +858,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -772,6 +867,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -781,6 +877,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -790,6 +887,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i19.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -798,6 +896,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: _i19.AmountUnit.normal,
|
||||
) as _i19.AmountUnit);
|
||||
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -814,6 +913,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -822,6 +922,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -838,6 +939,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i7.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -853,6 +955,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
),
|
||||
) as _i7.FusionInfo);
|
||||
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i4.CryptoCurrency? coin,
|
||||
|
@ -868,6 +971,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void addListener(_i20.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -876,6 +980,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -884,6 +989,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -892,6 +998,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -918,11 +1025,13 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -933,6 +1042,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i20.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -941,6 +1051,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -949,6 +1060,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -957,6 +1069,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -983,21 +1096,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i8.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i22.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1007,6 +1124,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> setPrimaryNodeFor({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -1026,6 +1144,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i22.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -1033,6 +1152,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i22.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i22.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1042,6 +1162,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
|
||||
@override
|
||||
_i22.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -1049,6 +1170,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i22.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i22.NodeModel> failoverNodesFor(
|
||||
{required _i4.CryptoCurrency? currency}) =>
|
||||
|
@ -1060,6 +1182,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> add(
|
||||
_i22.NodeModel? node,
|
||||
|
@ -1078,6 +1201,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -1094,6 +1218,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -1112,6 +1237,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> edit(
|
||||
_i22.NodeModel? editedNode,
|
||||
|
@ -1130,6 +1256,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1139,6 +1266,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i20.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1147,6 +1275,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1155,6 +1284,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1163,6 +1293,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i2.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setPrimaryNodeFor({
|
||||
required _i6.CryptoCurrency? coin,
|
||||
|
@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i4.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i4.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i4.NodeModel> failoverNodesFor(
|
||||
{required _i6.CryptoCurrency? currency}) =>
|
||||
|
@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValue: <_i4.NodeModel>[],
|
||||
) as List<_i4.NodeModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> add(
|
||||
_i4.NodeModel? node,
|
||||
|
@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> edit(
|
||||
_i4.NodeModel? editedNode,
|
||||
|
@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -122,6 +122,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
Invocation.getter(#nodeService),
|
||||
),
|
||||
) as _i2.NodeService);
|
||||
|
||||
@override
|
||||
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -130,6 +131,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get mainDB => (super.noSuchMethod(
|
||||
Invocation.getter(#mainDB),
|
||||
|
@ -138,6 +140,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
Invocation.getter(#mainDB),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -146,11 +149,13 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
|
||||
Invocation.getter(#wallets),
|
||||
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
|
||||
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
|
||||
|
||||
@override
|
||||
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -166,6 +171,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
),
|
||||
) as _i5.Wallet<_i4.CryptoCurrency>);
|
||||
|
||||
@override
|
||||
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -174,6 +180,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i10.Future<void> deleteWallet(
|
||||
_i11.WalletInfo? info,
|
||||
|
@ -190,6 +197,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> load(
|
||||
_i12.Prefs? prefs,
|
||||
|
@ -206,6 +214,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> loadAfterStackRestore(
|
||||
_i12.Prefs? prefs,
|
||||
|
@ -239,11 +248,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#isInitialized),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
int get lastUnlockedTimeout => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlockedTimeout),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -252,11 +263,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get lastUnlocked => (super.noSuchMethod(
|
||||
Invocation.getter(#lastUnlocked),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set lastUnlocked(int? lastUnlocked) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -265,16 +278,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get currentNotificationId => (super.noSuchMethod(
|
||||
Invocation.getter(#currentNotificationId),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
List<String> get walletIdsSyncOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#walletIdsSyncOnStartup),
|
||||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
|
||||
@override
|
||||
set walletIdsSyncOnStartup(List<String>? walletIdsSyncOnStartup) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -284,11 +300,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i13.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i13.SyncingType.currentWalletOnly,
|
||||
) as _i13.SyncingType);
|
||||
|
||||
@override
|
||||
set syncType(_i13.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -297,11 +315,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get wifiOnly => (super.noSuchMethod(
|
||||
Invocation.getter(#wifiOnly),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set wifiOnly(bool? wifiOnly) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -310,11 +330,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showFavoriteWallets => (super.noSuchMethod(
|
||||
Invocation.getter(#showFavoriteWallets),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -323,6 +345,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get language => (super.noSuchMethod(
|
||||
Invocation.getter(#language),
|
||||
|
@ -331,6 +354,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#language),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set language(String? newLanguage) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -339,6 +363,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get currency => (super.noSuchMethod(
|
||||
Invocation.getter(#currency),
|
||||
|
@ -347,6 +372,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#currency),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set currency(String? newCurrency) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -355,11 +381,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get randomizePIN => (super.noSuchMethod(
|
||||
Invocation.getter(#randomizePIN),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -368,11 +396,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useBiometrics => (super.noSuchMethod(
|
||||
Invocation.getter(#useBiometrics),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useBiometrics(bool? useBiometrics) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -381,11 +411,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasPin => (super.noSuchMethod(
|
||||
Invocation.getter(#hasPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hasPin(bool? hasPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -394,11 +426,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int get familiarity => (super.noSuchMethod(
|
||||
Invocation.getter(#familiarity),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
set familiarity(int? familiarity) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -407,11 +441,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get torKillSwitch => (super.noSuchMethod(
|
||||
Invocation.getter(#torKillSwitch),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set torKillSwitch(bool? torKillswitch) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -420,11 +456,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get showTestNetCoins => (super.noSuchMethod(
|
||||
Invocation.getter(#showTestNetCoins),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -433,11 +471,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get isAutoBackupEnabled => (super.noSuchMethod(
|
||||
Invocation.getter(#isAutoBackupEnabled),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -446,6 +486,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -454,11 +495,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i15.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i15.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i15.BackupFrequencyType);
|
||||
|
||||
@override
|
||||
set backupFrequencyType(_i15.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -468,6 +511,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -476,11 +520,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hideBlockExplorerWarning => (super.noSuchMethod(
|
||||
Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -490,11 +536,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get gotoWalletOnStartup => (super.noSuchMethod(
|
||||
Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -503,6 +551,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -511,11 +560,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get externalCalls => (super.noSuchMethod(
|
||||
Invocation.getter(#externalCalls),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set externalCalls(bool? externalCalls) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -524,11 +575,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -537,11 +590,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||
Invocation.getter(#enableSystemBrightness),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -551,6 +606,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get themeId => (super.noSuchMethod(
|
||||
Invocation.getter(#themeId),
|
||||
|
@ -559,6 +615,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#themeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set themeId(String? themeId) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -567,6 +624,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
|
@ -575,6 +633,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#systemBrightnessLightThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -584,6 +643,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
|
@ -592,6 +652,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -601,11 +662,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get useTor => (super.noSuchMethod(
|
||||
Invocation.getter(#useTor),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set useTor(bool? useTor) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -614,11 +677,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get autoPin => (super.noSuchMethod(
|
||||
Invocation.getter(#autoPin),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set autoPin(bool? autoPin) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -627,11 +692,28 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get enableExchange => (super.noSuchMethod(
|
||||
Invocation.getter(#enableExchange),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set enableExchange(bool? showExchange) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableExchange,
|
||||
showExchange,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -641,6 +723,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -650,6 +733,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -658,6 +742,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -667,6 +752,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -676,6 +762,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i16.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -684,6 +771,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: _i16.AmountUnit.normal,
|
||||
) as _i16.AmountUnit);
|
||||
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -700,6 +788,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -708,6 +797,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValue: 0,
|
||||
) as int);
|
||||
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -724,6 +814,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -739,6 +830,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
),
|
||||
) as _i6.FusionInfo);
|
||||
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i4.CryptoCurrency? coin,
|
||||
|
@ -754,6 +846,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -762,6 +855,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -770,6 +864,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -778,6 +873,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -804,21 +900,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i7.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i18.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i10.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -828,6 +928,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> setPrimaryNodeFor({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -847,6 +948,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i18.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -854,6 +956,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i18.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i18.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -863,6 +966,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
|
||||
@override
|
||||
_i18.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -870,6 +974,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i18.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i18.NodeModel> failoverNodesFor(
|
||||
{required _i4.CryptoCurrency? currency}) =>
|
||||
|
@ -881,6 +986,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> add(
|
||||
_i18.NodeModel? node,
|
||||
|
@ -899,6 +1005,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -915,6 +1022,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -933,6 +1041,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> edit(
|
||||
_i18.NodeModel? editedNode,
|
||||
|
@ -951,6 +1060,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -960,6 +1070,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -968,6 +1079,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -976,6 +1088,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -984,6 +1097,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1007,6 +1121,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService {
|
|||
Invocation.getter(#status),
|
||||
returnValue: _i20.TorConnectionStatus.disconnected,
|
||||
) as _i20.TorConnectionStatus);
|
||||
|
||||
@override
|
||||
({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1024,6 +1139,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService {
|
|||
port: 0
|
||||
),
|
||||
) as ({_i8.InternetAddress host, int port}));
|
||||
|
||||
@override
|
||||
void init({
|
||||
required String? torDataDirPath,
|
||||
|
@ -1040,6 +1156,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i10.Future<void> start() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1049,6 +1166,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService {
|
|||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
|
||||
@override
|
||||
_i10.Future<void> disable() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -91,6 +91,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
Invocation.getter(#nodeService),
|
||||
),
|
||||
) as _i2.NodeService);
|
||||
|
||||
@override
|
||||
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -99,6 +100,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get mainDB => (super.noSuchMethod(
|
||||
Invocation.getter(#mainDB),
|
||||
|
@ -107,6 +109,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
Invocation.getter(#mainDB),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -115,11 +118,13 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
|
||||
Invocation.getter(#wallets),
|
||||
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
|
||||
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
|
||||
|
||||
@override
|
||||
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -135,6 +140,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
),
|
||||
) as _i5.Wallet<_i4.CryptoCurrency>);
|
||||
|
||||
@override
|
||||
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -143,6 +149,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i8.Future<void> deleteWallet(
|
||||
_i9.WalletInfo? info,
|
||||
|
@ -159,6 +166,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> load(
|
||||
_i11.Prefs? prefs,
|
||||
|
@ -175,6 +183,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> loadAfterStackRestore(
|
||||
_i11.Prefs? prefs,
|
||||
|
@ -211,6 +220,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i6.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i6.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -219,6 +229,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -227,11 +238,13 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i13.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i13.StackTheme>[],
|
||||
) as List<_i13.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -240,6 +253,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i8.Future<void> install({required _i14.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -251,6 +265,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -261,6 +276,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -270,6 +286,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -280,6 +297,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValue: _i8.Future<bool>.value(false),
|
||||
) as _i8.Future<bool>);
|
||||
|
||||
@override
|
||||
_i8.Future<List<_i12.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -290,6 +308,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i8.Future<List<_i12.StackThemeMetaData>>.value(
|
||||
<_i12.StackThemeMetaData>[]),
|
||||
) as _i8.Future<List<_i12.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i8.Future<_i14.Uint8List> fetchTheme(
|
||||
{required _i12.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -301,6 +320,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValue: _i8.Future<_i14.Uint8List>.value(_i14.Uint8List(0)),
|
||||
) as _i8.Future<_i14.Uint8List>);
|
||||
|
||||
@override
|
||||
_i13.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
|
|
@ -62,6 +62,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i2.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i2.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -70,6 +71,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -78,11 +80,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i5.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i5.StackTheme>[],
|
||||
) as List<_i5.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -91,6 +95,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.Future<void> install({required _i7.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -102,6 +107,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -112,6 +118,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -121,6 +128,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -131,6 +139,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<bool>.value(false),
|
||||
) as _i6.Future<bool>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i4.StackThemeMetaData>> fetchThemes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -140,6 +149,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
returnValue: _i6.Future<List<_i4.StackThemeMetaData>>.value(
|
||||
<_i4.StackThemeMetaData>[]),
|
||||
) as _i6.Future<List<_i4.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i7.Uint8List> fetchTheme(
|
||||
{required _i4.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -151,6 +161,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService {
|
|||
),
|
||||
returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
|
||||
) as _i6.Future<_i7.Uint8List>);
|
||||
|
||||
@override
|
||||
_i5.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -176,6 +187,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#bellNew),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get buy => (super.noSuchMethod(
|
||||
Invocation.getter(#buy),
|
||||
|
@ -184,6 +196,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#buy),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get exchange => (super.noSuchMethod(
|
||||
Invocation.getter(#exchange),
|
||||
|
@ -192,6 +205,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#exchange),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get personaIncognito => (super.noSuchMethod(
|
||||
Invocation.getter(#personaIncognito),
|
||||
|
@ -200,6 +214,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#personaIncognito),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get personaEasy => (super.noSuchMethod(
|
||||
Invocation.getter(#personaEasy),
|
||||
|
@ -208,6 +223,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#personaEasy),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get stack => (super.noSuchMethod(
|
||||
Invocation.getter(#stack),
|
||||
|
@ -216,6 +232,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#stack),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get stackIcon => (super.noSuchMethod(
|
||||
Invocation.getter(#stackIcon),
|
||||
|
@ -224,6 +241,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#stackIcon),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get receive => (super.noSuchMethod(
|
||||
Invocation.getter(#receive),
|
||||
|
@ -232,6 +250,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#receive),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get receivePending => (super.noSuchMethod(
|
||||
Invocation.getter(#receivePending),
|
||||
|
@ -240,6 +259,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#receivePending),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get receiveCancelled => (super.noSuchMethod(
|
||||
Invocation.getter(#receiveCancelled),
|
||||
|
@ -248,6 +268,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#receiveCancelled),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get send => (super.noSuchMethod(
|
||||
Invocation.getter(#send),
|
||||
|
@ -256,6 +277,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#send),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get sendPending => (super.noSuchMethod(
|
||||
Invocation.getter(#sendPending),
|
||||
|
@ -264,6 +286,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#sendPending),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get sendCancelled => (super.noSuchMethod(
|
||||
Invocation.getter(#sendCancelled),
|
||||
|
@ -272,6 +295,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#sendCancelled),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get themeSelector => (super.noSuchMethod(
|
||||
Invocation.getter(#themeSelector),
|
||||
|
@ -280,6 +304,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#themeSelector),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get themePreview => (super.noSuchMethod(
|
||||
Invocation.getter(#themePreview),
|
||||
|
@ -288,6 +313,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#themePreview),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get txExchange => (super.noSuchMethod(
|
||||
Invocation.getter(#txExchange),
|
||||
|
@ -296,6 +322,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#txExchange),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get txExchangePending => (super.noSuchMethod(
|
||||
Invocation.getter(#txExchangePending),
|
||||
|
@ -304,6 +331,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
|
|||
Invocation.getter(#txExchangePending),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
String get txExchangeFailed => (super.noSuchMethod(
|
||||
Invocation.getter(#txExchangeFailed),
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -94,6 +94,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
Invocation.getter(#nodeService),
|
||||
),
|
||||
) as _i2.NodeService);
|
||||
|
||||
@override
|
||||
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -102,6 +103,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get mainDB => (super.noSuchMethod(
|
||||
Invocation.getter(#mainDB),
|
||||
|
@ -110,6 +112,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
Invocation.getter(#mainDB),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -118,11 +121,13 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
|
||||
Invocation.getter(#wallets),
|
||||
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
|
||||
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
|
||||
|
||||
@override
|
||||
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -138,6 +143,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
),
|
||||
) as _i5.Wallet<_i4.CryptoCurrency>);
|
||||
|
||||
@override
|
||||
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -146,6 +152,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i8.Future<void> deleteWallet(
|
||||
_i9.WalletInfo? info,
|
||||
|
@ -162,6 +169,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> load(
|
||||
_i11.Prefs? prefs,
|
||||
|
@ -178,6 +186,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> loadAfterStackRestore(
|
||||
_i11.Prefs? prefs,
|
||||
|
@ -214,11 +223,13 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
|
|||
Invocation.getter(#locale),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i8.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -229,6 +240,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -237,6 +249,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -245,6 +258,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -253,6 +267,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -279,6 +294,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i6.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i6.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -287,6 +303,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -295,11 +312,13 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i16.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i16.StackTheme>[],
|
||||
) as List<_i16.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -308,6 +327,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i8.Future<void> install({required _i17.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -319,6 +339,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -329,6 +350,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -338,6 +360,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -348,6 +371,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
),
|
||||
returnValue: _i8.Future<bool>.value(false),
|
||||
) as _i8.Future<bool>);
|
||||
|
||||
@override
|
||||
_i8.Future<List<_i15.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -358,6 +382,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
returnValue: _i8.Future<List<_i15.StackThemeMetaData>>.value(
|
||||
<_i15.StackThemeMetaData>[]),
|
||||
) as _i8.Future<List<_i15.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i8.Future<_i17.Uint8List> fetchTheme(
|
||||
{required _i15.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -369,6 +394,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService {
|
|||
),
|
||||
returnValue: _i8.Future<_i17.Uint8List>.value(_i17.Uint8List(0)),
|
||||
) as _i8.Future<_i17.Uint8List>);
|
||||
|
||||
@override
|
||||
_i16.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
|
|
@ -90,6 +90,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
Invocation.getter(#nodeService),
|
||||
),
|
||||
) as _i2.NodeService);
|
||||
|
||||
@override
|
||||
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -98,6 +99,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get mainDB => (super.noSuchMethod(
|
||||
Invocation.getter(#mainDB),
|
||||
|
@ -106,6 +108,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
Invocation.getter(#mainDB),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -114,11 +117,13 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
|
||||
Invocation.getter(#wallets),
|
||||
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
|
||||
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
|
||||
|
||||
@override
|
||||
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -134,6 +139,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
),
|
||||
) as _i5.Wallet<_i4.CryptoCurrency>);
|
||||
|
||||
@override
|
||||
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -142,6 +148,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i8.Future<void> deleteWallet(
|
||||
_i9.WalletInfo? info,
|
||||
|
@ -158,6 +165,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> load(
|
||||
_i10.Prefs? prefs,
|
||||
|
@ -174,6 +182,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> loadAfterStackRestore(
|
||||
_i10.Prefs? prefs,
|
||||
|
@ -210,21 +219,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i6.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i11.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i11.NodeModel>[],
|
||||
) as List<_i11.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i11.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i11.NodeModel>[],
|
||||
) as List<_i11.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i8.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -234,6 +247,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> setPrimaryNodeFor({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -253,6 +267,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i11.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -260,6 +275,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i11.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i11.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -269,6 +285,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i11.NodeModel>[],
|
||||
) as List<_i11.NodeModel>);
|
||||
|
||||
@override
|
||||
_i11.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -276,6 +293,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i11.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i11.NodeModel> failoverNodesFor(
|
||||
{required _i4.CryptoCurrency? currency}) =>
|
||||
|
@ -287,6 +305,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i11.NodeModel>[],
|
||||
) as List<_i11.NodeModel>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> add(
|
||||
_i11.NodeModel? node,
|
||||
|
@ -305,6 +324,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -321,6 +341,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -339,6 +360,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> edit(
|
||||
_i11.NodeModel? editedNode,
|
||||
|
@ -357,6 +379,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
_i8.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -366,6 +389,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -374,6 +398,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -382,6 +407,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -390,6 +416,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -104,6 +104,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
Invocation.getter(#nodeService),
|
||||
),
|
||||
) as _i2.NodeService);
|
||||
|
||||
@override
|
||||
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -112,6 +113,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get mainDB => (super.noSuchMethod(
|
||||
Invocation.getter(#mainDB),
|
||||
|
@ -120,6 +122,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
Invocation.getter(#mainDB),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -128,11 +131,13 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
|
||||
Invocation.getter(#wallets),
|
||||
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
|
||||
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
|
||||
|
||||
@override
|
||||
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -148,6 +153,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
),
|
||||
),
|
||||
) as _i5.Wallet<_i4.CryptoCurrency>);
|
||||
|
||||
@override
|
||||
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -156,6 +162,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i9.Future<void> deleteWallet(
|
||||
_i10.WalletInfo? info,
|
||||
|
@ -172,6 +179,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> load(
|
||||
_i11.Prefs? prefs,
|
||||
|
@ -188,6 +196,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> loadAfterStackRestore(
|
||||
_i11.Prefs? prefs,
|
||||
|
@ -224,6 +233,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i6.HTTP);
|
||||
|
||||
@override
|
||||
set client(_i6.HTTP? _client) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -232,6 +242,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.MainDB get db => (super.noSuchMethod(
|
||||
Invocation.getter(#db),
|
||||
|
@ -240,11 +251,13 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
Invocation.getter(#db),
|
||||
),
|
||||
) as _i3.MainDB);
|
||||
|
||||
@override
|
||||
List<_i13.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i13.StackTheme>[],
|
||||
) as List<_i13.StackTheme>);
|
||||
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -253,6 +266,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i9.Future<void> install({required _i14.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -264,6 +278,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -274,6 +289,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -283,6 +299,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -293,6 +310,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValue: _i9.Future<bool>.value(false),
|
||||
) as _i9.Future<bool>);
|
||||
|
||||
@override
|
||||
_i9.Future<List<_i12.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -303,6 +321,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
returnValue: _i9.Future<List<_i12.StackThemeMetaData>>.value(
|
||||
<_i12.StackThemeMetaData>[]),
|
||||
) as _i9.Future<List<_i12.StackThemeMetaData>>);
|
||||
|
||||
@override
|
||||
_i9.Future<_i14.Uint8List> fetchTheme(
|
||||
{required _i12.StackThemeMetaData? themeMetaData}) =>
|
||||
|
@ -314,6 +333,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService {
|
|||
),
|
||||
returnValue: _i9.Future<_i14.Uint8List>.value(_i14.Uint8List(0)),
|
||||
) as _i9.Future<_i14.Uint8List>);
|
||||
|
||||
@override
|
||||
_i13.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -339,21 +359,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i7.SecureStorageInterface);
|
||||
|
||||
@override
|
||||
List<_i15.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i15.NodeModel>[],
|
||||
) as List<_i15.NodeModel>);
|
||||
|
||||
@override
|
||||
List<_i15.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i15.NodeModel>[],
|
||||
) as List<_i15.NodeModel>);
|
||||
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i9.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -363,6 +387,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> setPrimaryNodeFor({
|
||||
required _i4.CryptoCurrency? coin,
|
||||
|
@ -382,6 +407,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i15.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -389,6 +415,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#currency: currency},
|
||||
)) as _i15.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i15.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -398,6 +425,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i15.NodeModel>[],
|
||||
) as List<_i15.NodeModel>);
|
||||
|
||||
@override
|
||||
_i15.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
|
@ -405,6 +433,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
[],
|
||||
{#id: id},
|
||||
)) as _i15.NodeModel?);
|
||||
|
||||
@override
|
||||
List<_i15.NodeModel> failoverNodesFor(
|
||||
{required _i4.CryptoCurrency? currency}) =>
|
||||
|
@ -416,6 +445,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValue: <_i15.NodeModel>[],
|
||||
) as List<_i15.NodeModel>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> add(
|
||||
_i15.NodeModel? node,
|
||||
|
@ -434,6 +464,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> delete(
|
||||
String? id,
|
||||
|
@ -450,6 +481,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> setEnabledState(
|
||||
String? id,
|
||||
|
@ -468,6 +500,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> edit(
|
||||
_i15.NodeModel? editedNode,
|
||||
|
@ -486,6 +519,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
_i9.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -495,6 +529,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValue: _i9.Future<void>.value(),
|
||||
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||
) as _i9.Future<void>);
|
||||
|
||||
@override
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -503,6 +538,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -511,6 +547,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -519,6 +556,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <flutter_libepiccash/flutter_libepiccash_plugin_c_api.h>
|
||||
#include <flutter_secure_storage_windows/flutter_secure_storage_windows_plugin.h>
|
||||
#include <isar_flutter_libs/isar_flutter_libs_plugin.h>
|
||||
#include <local_auth_windows/local_auth_plugin.h>
|
||||
#include <permission_handler_windows/permission_handler_windows_plugin.h>
|
||||
#include <share_plus/share_plus_windows_plugin_c_api.h>
|
||||
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
|
||||
|
@ -32,6 +33,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
|
|||
registry->GetRegistrarForPlugin("FlutterSecureStorageWindowsPlugin"));
|
||||
IsarFlutterLibsPluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("IsarFlutterLibsPlugin"));
|
||||
LocalAuthPluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("LocalAuthPlugin"));
|
||||
PermissionHandlerWindowsPluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
|
||||
SharePlusWindowsPluginCApiRegisterWithRegistrar(
|
||||
|
|
|
@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||
flutter_libepiccash
|
||||
flutter_secure_storage_windows
|
||||
isar_flutter_libs
|
||||
local_auth_windows
|
||||
permission_handler_windows
|
||||
share_plus
|
||||
sqlite3_flutter_libs
|
||||
|
|
Loading…
Reference in a new issue