mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-18 08:34:31 +00:00
add address tags property and update generated
This commit is contained in:
parent
afc49b7d6c
commit
172429f94a
40 changed files with 1012 additions and 179 deletions
|
@ -8,6 +8,7 @@ class AddressLabel {
|
||||||
required this.walletId,
|
required this.walletId,
|
||||||
required this.addressString,
|
required this.addressString,
|
||||||
required this.value,
|
required this.value,
|
||||||
|
required this.tags,
|
||||||
});
|
});
|
||||||
|
|
||||||
Id id = Isar.autoIncrement;
|
Id id = Isar.autoIncrement;
|
||||||
|
@ -20,11 +21,14 @@ class AddressLabel {
|
||||||
|
|
||||||
late final String value;
|
late final String value;
|
||||||
|
|
||||||
AddressLabel copyWith({String? label, Id? id}) {
|
late final List<String>? tags;
|
||||||
|
|
||||||
|
AddressLabel copyWith({String? label, Id? id, List<String>? tags}) {
|
||||||
final addressLabel = AddressLabel(
|
final addressLabel = AddressLabel(
|
||||||
walletId: walletId,
|
walletId: walletId,
|
||||||
addressString: addressString,
|
addressString: addressString,
|
||||||
value: label ?? value,
|
value: label ?? value,
|
||||||
|
tags: tags ?? this.tags,
|
||||||
);
|
);
|
||||||
addressLabel.id = id ?? this.id;
|
addressLabel.id = id ?? this.id;
|
||||||
return addressLabel;
|
return addressLabel;
|
||||||
|
|
|
@ -22,13 +22,18 @@ const AddressLabelSchema = CollectionSchema(
|
||||||
name: r'addressString',
|
name: r'addressString',
|
||||||
type: IsarType.string,
|
type: IsarType.string,
|
||||||
),
|
),
|
||||||
r'value': PropertySchema(
|
r'tags': PropertySchema(
|
||||||
id: 1,
|
id: 1,
|
||||||
|
name: r'tags',
|
||||||
|
type: IsarType.stringList,
|
||||||
|
),
|
||||||
|
r'value': PropertySchema(
|
||||||
|
id: 2,
|
||||||
name: r'value',
|
name: r'value',
|
||||||
type: IsarType.string,
|
type: IsarType.string,
|
||||||
),
|
),
|
||||||
r'walletId': PropertySchema(
|
r'walletId': PropertySchema(
|
||||||
id: 2,
|
id: 3,
|
||||||
name: r'walletId',
|
name: r'walletId',
|
||||||
type: IsarType.string,
|
type: IsarType.string,
|
||||||
)
|
)
|
||||||
|
@ -86,6 +91,18 @@ int _addressLabelEstimateSize(
|
||||||
) {
|
) {
|
||||||
var bytesCount = offsets.last;
|
var bytesCount = offsets.last;
|
||||||
bytesCount += 3 + object.addressString.length * 3;
|
bytesCount += 3 + object.addressString.length * 3;
|
||||||
|
{
|
||||||
|
final list = object.tags;
|
||||||
|
if (list != null) {
|
||||||
|
bytesCount += 3 + list.length * 3;
|
||||||
|
{
|
||||||
|
for (var i = 0; i < list.length; i++) {
|
||||||
|
final value = list[i];
|
||||||
|
bytesCount += value.length * 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
bytesCount += 3 + object.value.length * 3;
|
bytesCount += 3 + object.value.length * 3;
|
||||||
bytesCount += 3 + object.walletId.length * 3;
|
bytesCount += 3 + object.walletId.length * 3;
|
||||||
return bytesCount;
|
return bytesCount;
|
||||||
|
@ -98,8 +115,9 @@ void _addressLabelSerialize(
|
||||||
Map<Type, List<int>> allOffsets,
|
Map<Type, List<int>> allOffsets,
|
||||||
) {
|
) {
|
||||||
writer.writeString(offsets[0], object.addressString);
|
writer.writeString(offsets[0], object.addressString);
|
||||||
writer.writeString(offsets[1], object.value);
|
writer.writeStringList(offsets[1], object.tags);
|
||||||
writer.writeString(offsets[2], object.walletId);
|
writer.writeString(offsets[2], object.value);
|
||||||
|
writer.writeString(offsets[3], object.walletId);
|
||||||
}
|
}
|
||||||
|
|
||||||
AddressLabel _addressLabelDeserialize(
|
AddressLabel _addressLabelDeserialize(
|
||||||
|
@ -110,8 +128,9 @@ AddressLabel _addressLabelDeserialize(
|
||||||
) {
|
) {
|
||||||
final object = AddressLabel(
|
final object = AddressLabel(
|
||||||
addressString: reader.readString(offsets[0]),
|
addressString: reader.readString(offsets[0]),
|
||||||
value: reader.readString(offsets[1]),
|
tags: reader.readStringList(offsets[1]),
|
||||||
walletId: reader.readString(offsets[2]),
|
value: reader.readString(offsets[2]),
|
||||||
|
walletId: reader.readString(offsets[3]),
|
||||||
);
|
);
|
||||||
object.id = id;
|
object.id = id;
|
||||||
return object;
|
return object;
|
||||||
|
@ -127,9 +146,11 @@ P _addressLabelDeserializeProp<P>(
|
||||||
case 0:
|
case 0:
|
||||||
return (reader.readString(offset)) as P;
|
return (reader.readString(offset)) as P;
|
||||||
case 1:
|
case 1:
|
||||||
return (reader.readString(offset)) as P;
|
return (reader.readStringList(offset)) as P;
|
||||||
case 2:
|
case 2:
|
||||||
return (reader.readString(offset)) as P;
|
return (reader.readString(offset)) as P;
|
||||||
|
case 3:
|
||||||
|
return (reader.readString(offset)) as P;
|
||||||
default:
|
default:
|
||||||
throw IsarError('Unknown property with id $propertyId');
|
throw IsarError('Unknown property with id $propertyId');
|
||||||
}
|
}
|
||||||
|
@ -649,6 +670,248 @@ extension AddressLabelQueryFilter
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> tagsIsNull() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(const FilterCondition.isNull(
|
||||||
|
property: r'tags',
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsIsNotNull() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(const FilterCondition.isNotNull(
|
||||||
|
property: r'tags',
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementEqualTo(
|
||||||
|
String value, {
|
||||||
|
bool caseSensitive = true,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.equalTo(
|
||||||
|
property: r'tags',
|
||||||
|
value: value,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementGreaterThan(
|
||||||
|
String value, {
|
||||||
|
bool include = false,
|
||||||
|
bool caseSensitive = true,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||||
|
include: include,
|
||||||
|
property: r'tags',
|
||||||
|
value: value,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementLessThan(
|
||||||
|
String value, {
|
||||||
|
bool include = false,
|
||||||
|
bool caseSensitive = true,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.lessThan(
|
||||||
|
include: include,
|
||||||
|
property: r'tags',
|
||||||
|
value: value,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementBetween(
|
||||||
|
String lower,
|
||||||
|
String upper, {
|
||||||
|
bool includeLower = true,
|
||||||
|
bool includeUpper = true,
|
||||||
|
bool caseSensitive = true,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.between(
|
||||||
|
property: r'tags',
|
||||||
|
lower: lower,
|
||||||
|
includeLower: includeLower,
|
||||||
|
upper: upper,
|
||||||
|
includeUpper: includeUpper,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementStartsWith(
|
||||||
|
String value, {
|
||||||
|
bool caseSensitive = true,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.startsWith(
|
||||||
|
property: r'tags',
|
||||||
|
value: value,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementEndsWith(
|
||||||
|
String value, {
|
||||||
|
bool caseSensitive = true,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.endsWith(
|
||||||
|
property: r'tags',
|
||||||
|
value: value,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementContains(String value, {bool caseSensitive = true}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.contains(
|
||||||
|
property: r'tags',
|
||||||
|
value: value,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementMatches(String pattern, {bool caseSensitive = true}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.matches(
|
||||||
|
property: r'tags',
|
||||||
|
wildcard: pattern,
|
||||||
|
caseSensitive: caseSensitive,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementIsEmpty() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.equalTo(
|
||||||
|
property: r'tags',
|
||||||
|
value: '',
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsElementIsNotEmpty() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||||
|
property: r'tags',
|
||||||
|
value: '',
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsLengthEqualTo(int length) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.listLength(
|
||||||
|
r'tags',
|
||||||
|
length,
|
||||||
|
true,
|
||||||
|
length,
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsIsEmpty() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.listLength(
|
||||||
|
r'tags',
|
||||||
|
0,
|
||||||
|
true,
|
||||||
|
0,
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsIsNotEmpty() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.listLength(
|
||||||
|
r'tags',
|
||||||
|
0,
|
||||||
|
false,
|
||||||
|
999999,
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsLengthLessThan(
|
||||||
|
int length, {
|
||||||
|
bool include = false,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.listLength(
|
||||||
|
r'tags',
|
||||||
|
0,
|
||||||
|
true,
|
||||||
|
length,
|
||||||
|
include,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsLengthGreaterThan(
|
||||||
|
int length, {
|
||||||
|
bool include = false,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.listLength(
|
||||||
|
r'tags',
|
||||||
|
length,
|
||||||
|
include,
|
||||||
|
999999,
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
|
||||||
|
tagsLengthBetween(
|
||||||
|
int lower,
|
||||||
|
int upper, {
|
||||||
|
bool includeLower = true,
|
||||||
|
bool includeUpper = true,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.listLength(
|
||||||
|
r'tags',
|
||||||
|
lower,
|
||||||
|
includeLower,
|
||||||
|
upper,
|
||||||
|
includeUpper,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueEqualTo(
|
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueEqualTo(
|
||||||
String value, {
|
String value, {
|
||||||
bool caseSensitive = true,
|
bool caseSensitive = true,
|
||||||
|
@ -1028,6 +1291,12 @@ extension AddressLabelQueryWhereDistinct
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, AddressLabel, QDistinct> distinctByTags() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addDistinctBy(r'tags');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<AddressLabel, AddressLabel, QDistinct> distinctByValue(
|
QueryBuilder<AddressLabel, AddressLabel, QDistinct> distinctByValue(
|
||||||
{bool caseSensitive = true}) {
|
{bool caseSensitive = true}) {
|
||||||
return QueryBuilder.apply(this, (query) {
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
@ -1057,6 +1326,12 @@ extension AddressLabelQueryProperty
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<AddressLabel, List<String>?, QQueryOperations> tagsProperty() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addPropertyName(r'tags');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<AddressLabel, String, QQueryOperations> valueProperty() {
|
QueryBuilder<AddressLabel, String, QQueryOperations> valueProperty() {
|
||||||
return QueryBuilder.apply(this, (query) {
|
return QueryBuilder.apply(this, (query) {
|
||||||
return query.addPropertyName(r'value');
|
return query.addPropertyName(r'value');
|
||||||
|
|
|
@ -56,6 +56,11 @@ class _AddressCardState extends State<AddressCard> {
|
||||||
walletId: widget.walletId,
|
walletId: widget.walletId,
|
||||||
addressString: address.value,
|
addressString: address.value,
|
||||||
value: "",
|
value: "",
|
||||||
|
tags: address.subType == AddressSubType.receiving
|
||||||
|
? ["receiving"]
|
||||||
|
: address.subType == AddressSubType.change
|
||||||
|
? ["change"]
|
||||||
|
: null,
|
||||||
);
|
);
|
||||||
id = MainDB.instance.putAddressLabelSync(label!);
|
id = MainDB.instance.putAddressLabelSync(label!);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ abstract class Constants {
|
||||||
// Enable Logger.print statements
|
// Enable Logger.print statements
|
||||||
static const bool disableLogger = false;
|
static const bool disableLogger = false;
|
||||||
|
|
||||||
static const int currentHiveDbVersion = 6;
|
static const int currentHiveDbVersion = 7;
|
||||||
|
|
||||||
static const int rescanV1 = 1;
|
static const int rescanV1 = 1;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
import 'package:isar/isar.dart';
|
||||||
import 'package:stackwallet/db/main_db.dart';
|
import 'package:stackwallet/db/main_db.dart';
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart';
|
import 'package:stackwallet/electrumx_rpc/electrumx.dart';
|
||||||
import 'package:stackwallet/hive/db.dart';
|
import 'package:stackwallet/hive/db.dart';
|
||||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart';
|
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart';
|
||||||
import 'package:stackwallet/models/exchange/response_objects/trade.dart';
|
import 'package:stackwallet/models/exchange/response_objects/trade.dart';
|
||||||
|
import 'package:stackwallet/models/isar/models/blockchain_data/address.dart';
|
||||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as isar_models;
|
import 'package:stackwallet/models/isar/models/isar_models.dart' as isar_models;
|
||||||
import 'package:stackwallet/models/models.dart';
|
import 'package:stackwallet/models/models.dart';
|
||||||
import 'package:stackwallet/models/node_model.dart';
|
import 'package:stackwallet/models/node_model.dart';
|
||||||
|
@ -205,6 +207,61 @@ class DbVersionMigrator with WalletDB {
|
||||||
// try to continue migrating
|
// try to continue migrating
|
||||||
return await migrate(6, secureStore: secureStore);
|
return await migrate(6, secureStore: secureStore);
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
// migrate
|
||||||
|
await MainDB.instance.initMainDB();
|
||||||
|
final count = await MainDB.instance.isar.addresses.count();
|
||||||
|
// add change/receiving tags to address labels
|
||||||
|
for (var i = 0; i < count; i += 50) {
|
||||||
|
final addresses = await MainDB.instance.isar.addresses
|
||||||
|
.where()
|
||||||
|
.offset(i)
|
||||||
|
.limit(50)
|
||||||
|
.findAll();
|
||||||
|
|
||||||
|
final List<isar_models.AddressLabel> labels = [];
|
||||||
|
for (final address in addresses) {
|
||||||
|
final tags = address.subType == AddressSubType.receiving
|
||||||
|
? ["receiving"]
|
||||||
|
: address.subType == AddressSubType.change
|
||||||
|
? ["change"]
|
||||||
|
: null;
|
||||||
|
|
||||||
|
// update/create label if tags is not empty
|
||||||
|
if (tags != null) {
|
||||||
|
isar_models.AddressLabel? label = await MainDB
|
||||||
|
.instance.isar.addressLabels
|
||||||
|
.where()
|
||||||
|
.addressStringWalletIdEqualTo(address.value, address.walletId)
|
||||||
|
.findFirst();
|
||||||
|
if (label == null) {
|
||||||
|
label = isar_models.AddressLabel(
|
||||||
|
walletId: address.walletId,
|
||||||
|
value: "",
|
||||||
|
addressString: address.value,
|
||||||
|
tags: tags,
|
||||||
|
);
|
||||||
|
} else if (label.tags == null) {
|
||||||
|
label = label.copyWith(tags: tags);
|
||||||
|
}
|
||||||
|
labels.add(label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (labels.isNotEmpty) {
|
||||||
|
await MainDB.instance.isar.writeTxn(() async {
|
||||||
|
await MainDB.instance.isar.addressLabels.putAll(labels);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// update version
|
||||||
|
await DB.instance.put<dynamic>(
|
||||||
|
boxName: DB.boxNameDBInfo, key: "hive_data_version", value: 7);
|
||||||
|
|
||||||
|
// try to continue migrating
|
||||||
|
return await migrate(7, secureStore: secureStore);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// finally return
|
// finally return
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i4;
|
import 'dart:async' as _i4;
|
||||||
import 'dart:ui' as _i8;
|
import 'dart:ui' as _i9;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i2;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
|
@ -12,6 +12,7 @@ import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i5;
|
import 'package:stackwallet/utilities/prefs.dart' as _i5;
|
||||||
|
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i8;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -665,6 +666,61 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#enableSystemBrightness),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#enableSystemBrightness,
|
||||||
|
enableSystemBrightness,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i8.ThemeType get theme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#theme),
|
||||||
|
returnValue: _i8.ThemeType.light,
|
||||||
|
) as _i8.ThemeType);
|
||||||
|
@override
|
||||||
|
set theme(_i8.ThemeType? theme) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#theme,
|
||||||
|
theme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i8.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
|
returnValue: _i8.ThemeType.light,
|
||||||
|
) as _i8.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessLightTheme(_i8.ThemeType? systemBrightnessLightTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessLightTheme,
|
||||||
|
systemBrightnessLightTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i8.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
|
returnValue: _i8.ThemeType.light,
|
||||||
|
) as _i8.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessDarkTheme(_i8.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessDarkTheme,
|
||||||
|
systemBrightnessDarkTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
@ -714,7 +770,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i4.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i9.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -722,7 +778,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i9.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
|
|
@ -4,13 +4,14 @@
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i3;
|
import 'dart:async' as _i3;
|
||||||
import 'dart:ui' as _i7;
|
import 'dart:ui' as _i8;
|
||||||
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/rpc.dart' as _i2;
|
import 'package:stackwallet/electrumx_rpc/rpc.dart' as _i2;
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i6;
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i5;
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i5;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i4;
|
import 'package:stackwallet/utilities/prefs.dart' as _i4;
|
||||||
|
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i7;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -386,6 +387,61 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#enableSystemBrightness),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#enableSystemBrightness,
|
||||||
|
enableSystemBrightness,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i7.ThemeType get theme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#theme),
|
||||||
|
returnValue: _i7.ThemeType.light,
|
||||||
|
) as _i7.ThemeType);
|
||||||
|
@override
|
||||||
|
set theme(_i7.ThemeType? theme) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#theme,
|
||||||
|
theme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i7.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
|
returnValue: _i7.ThemeType.light,
|
||||||
|
) as _i7.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessLightTheme(_i7.ThemeType? systemBrightnessLightTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessLightTheme,
|
||||||
|
systemBrightnessLightTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i7.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
|
returnValue: _i7.ThemeType.light,
|
||||||
|
) as _i7.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessDarkTheme(_i7.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessDarkTheme,
|
||||||
|
systemBrightnessDarkTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
@ -435,7 +491,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
||||||
returnValueForMissingStub: _i3.Future<void>.value(),
|
returnValueForMissingStub: _i3.Future<void>.value(),
|
||||||
) as _i3.Future<void>);
|
) as _i3.Future<void>);
|
||||||
@override
|
@override
|
||||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -443,7 +499,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
|
|
@ -37,6 +37,7 @@ import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i31;
|
||||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||||
as _i7;
|
as _i7;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i23;
|
import 'package:stackwallet/utilities/prefs.dart' as _i23;
|
||||||
|
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i33;
|
||||||
import 'package:tuple/tuple.dart' as _i15;
|
import 'package:tuple/tuple.dart' as _i15;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
@ -2547,6 +2548,61 @@ class MockPrefs extends _i1.Mock implements _i23.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#enableSystemBrightness),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#enableSystemBrightness,
|
||||||
|
enableSystemBrightness,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i33.ThemeType get theme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#theme),
|
||||||
|
returnValue: _i33.ThemeType.light,
|
||||||
|
) as _i33.ThemeType);
|
||||||
|
@override
|
||||||
|
set theme(_i33.ThemeType? theme) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#theme,
|
||||||
|
theme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i33.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
|
returnValue: _i33.ThemeType.light,
|
||||||
|
) as _i33.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessLightTheme(_i33.ThemeType? systemBrightnessLightTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessLightTheme,
|
||||||
|
systemBrightnessLightTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i33.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
|
returnValue: _i33.ThemeType.light,
|
||||||
|
) as _i33.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessDarkTheme(_i33.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessDarkTheme,
|
||||||
|
systemBrightnessDarkTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
@ -2781,6 +2837,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -378,6 +378,11 @@ class MockManager extends _i1.Mock implements _i11.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -339,6 +339,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -337,6 +337,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -3,35 +3,37 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i6;
|
import 'dart:async' as _i7;
|
||||||
import 'dart:ui' as _i7;
|
import 'dart:ui' as _i8;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i14;
|
import 'package:decimal/decimal.dart' as _i15;
|
||||||
import 'package:http/http.dart' as _i12;
|
import 'package:http/http.dart' as _i13;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/models/exchange/change_now/cn_exchange_estimate.dart'
|
import 'package:stackwallet/models/exchange/change_now/cn_exchange_estimate.dart'
|
||||||
as _i17;
|
|
||||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
|
|
||||||
as _i19;
|
|
||||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
|
|
||||||
as _i20;
|
|
||||||
import 'package:stackwallet/models/exchange/response_objects/estimate.dart'
|
|
||||||
as _i16;
|
|
||||||
import 'package:stackwallet/models/exchange/response_objects/fixed_rate_market.dart'
|
|
||||||
as _i18;
|
as _i18;
|
||||||
|
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
|
||||||
|
as _i20;
|
||||||
|
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
|
||||||
|
as _i21;
|
||||||
|
import 'package:stackwallet/models/exchange/response_objects/estimate.dart'
|
||||||
|
as _i17;
|
||||||
|
import 'package:stackwallet/models/exchange/response_objects/fixed_rate_market.dart'
|
||||||
|
as _i19;
|
||||||
import 'package:stackwallet/models/exchange/response_objects/range.dart'
|
import 'package:stackwallet/models/exchange/response_objects/range.dart'
|
||||||
as _i15;
|
as _i16;
|
||||||
import 'package:stackwallet/models/exchange/response_objects/trade.dart' as _i9;
|
import 'package:stackwallet/models/exchange/response_objects/trade.dart'
|
||||||
import 'package:stackwallet/models/isar/exchange_cache/currency.dart' as _i13;
|
as _i10;
|
||||||
import 'package:stackwallet/models/isar/exchange_cache/pair.dart' as _i21;
|
import 'package:stackwallet/models/isar/exchange_cache/currency.dart' as _i14;
|
||||||
|
import 'package:stackwallet/models/isar/exchange_cache/pair.dart' as _i22;
|
||||||
import 'package:stackwallet/services/exchange/change_now/change_now_api.dart'
|
import 'package:stackwallet/services/exchange/change_now/change_now_api.dart'
|
||||||
as _i11;
|
as _i12;
|
||||||
import 'package:stackwallet/services/exchange/exchange_response.dart' as _i2;
|
import 'package:stackwallet/services/exchange/exchange_response.dart' as _i2;
|
||||||
import 'package:stackwallet/services/trade_notes_service.dart' as _i10;
|
import 'package:stackwallet/services/trade_notes_service.dart' as _i11;
|
||||||
import 'package:stackwallet/services/trade_service.dart' as _i8;
|
import 'package:stackwallet/services/trade_service.dart' as _i9;
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i5;
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i5;
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i4;
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i4;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i3;
|
import 'package:stackwallet/utilities/prefs.dart' as _i3;
|
||||||
|
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i6;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -335,56 +337,111 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#enableSystemBrightness),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#enableSystemBrightness,
|
||||||
|
enableSystemBrightness,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i6.ThemeType get theme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#theme),
|
||||||
|
returnValue: _i6.ThemeType.light,
|
||||||
|
) as _i6.ThemeType);
|
||||||
|
@override
|
||||||
|
set theme(_i6.ThemeType? theme) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#theme,
|
||||||
|
theme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i6.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
|
returnValue: _i6.ThemeType.light,
|
||||||
|
) as _i6.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessLightTheme(_i6.ThemeType? systemBrightnessLightTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessLightTheme,
|
||||||
|
systemBrightnessLightTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i6.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
|
returnValue: _i6.ThemeType.light,
|
||||||
|
) as _i6.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessDarkTheme(_i6.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessDarkTheme,
|
||||||
|
systemBrightnessDarkTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> init() => (super.noSuchMethod(
|
_i7.Future<void> init() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#init,
|
#init,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
_i7.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#incrementCurrentNotificationIndex,
|
#incrementCurrentNotificationIndex,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
_i7.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#isExternalCallsSet,
|
#isExternalCallsSet,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i7.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i7.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
_i7.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#saveUserID,
|
#saveUserID,
|
||||||
[userId],
|
[userId],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
_i7.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#saveSignupEpoch,
|
#saveSignupEpoch,
|
||||||
[signupEpoch],
|
[signupEpoch],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -392,7 +449,7 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -420,29 +477,29 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
||||||
/// A class which mocks [TradesService].
|
/// A class which mocks [TradesService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTradesService extends _i1.Mock implements _i8.TradesService {
|
class MockTradesService extends _i1.Mock implements _i9.TradesService {
|
||||||
MockTradesService() {
|
MockTradesService() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<_i9.Trade> get trades => (super.noSuchMethod(
|
List<_i10.Trade> get trades => (super.noSuchMethod(
|
||||||
Invocation.getter(#trades),
|
Invocation.getter(#trades),
|
||||||
returnValue: <_i9.Trade>[],
|
returnValue: <_i10.Trade>[],
|
||||||
) as List<_i9.Trade>);
|
) as List<_i10.Trade>);
|
||||||
@override
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i9.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method(
|
_i10.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method(
|
||||||
#get,
|
#get,
|
||||||
[tradeId],
|
[tradeId],
|
||||||
)) as _i9.Trade?);
|
)) as _i10.Trade?);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> add({
|
_i7.Future<void> add({
|
||||||
required _i9.Trade? trade,
|
required _i10.Trade? trade,
|
||||||
required bool? shouldNotifyListeners,
|
required bool? shouldNotifyListeners,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -454,12 +511,12 @@ class MockTradesService extends _i1.Mock implements _i8.TradesService {
|
||||||
#shouldNotifyListeners: shouldNotifyListeners,
|
#shouldNotifyListeners: shouldNotifyListeners,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> edit({
|
_i7.Future<void> edit({
|
||||||
required _i9.Trade? trade,
|
required _i10.Trade? trade,
|
||||||
required bool? shouldNotifyListeners,
|
required bool? shouldNotifyListeners,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -471,12 +528,12 @@ class MockTradesService extends _i1.Mock implements _i8.TradesService {
|
||||||
#shouldNotifyListeners: shouldNotifyListeners,
|
#shouldNotifyListeners: shouldNotifyListeners,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> delete({
|
_i7.Future<void> delete({
|
||||||
required _i9.Trade? trade,
|
required _i10.Trade? trade,
|
||||||
required bool? shouldNotifyListeners,
|
required bool? shouldNotifyListeners,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -488,11 +545,11 @@ class MockTradesService extends _i1.Mock implements _i8.TradesService {
|
||||||
#shouldNotifyListeners: shouldNotifyListeners,
|
#shouldNotifyListeners: shouldNotifyListeners,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> deleteByUuid({
|
_i7.Future<void> deleteByUuid({
|
||||||
required String? uuid,
|
required String? uuid,
|
||||||
required bool? shouldNotifyListeners,
|
required bool? shouldNotifyListeners,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -505,11 +562,11 @@ class MockTradesService extends _i1.Mock implements _i8.TradesService {
|
||||||
#shouldNotifyListeners: shouldNotifyListeners,
|
#shouldNotifyListeners: shouldNotifyListeners,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -517,7 +574,7 @@ class MockTradesService extends _i1.Mock implements _i8.TradesService {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -545,7 +602,7 @@ class MockTradesService extends _i1.Mock implements _i8.TradesService {
|
||||||
/// A class which mocks [TradeNotesService].
|
/// A class which mocks [TradeNotesService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTradeNotesService extends _i1.Mock implements _i10.TradeNotesService {
|
class MockTradeNotesService extends _i1.Mock implements _i11.TradeNotesService {
|
||||||
MockTradeNotesService() {
|
MockTradeNotesService() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -570,7 +627,7 @@ class MockTradeNotesService extends _i1.Mock implements _i10.TradeNotesService {
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> set({
|
_i7.Future<void> set({
|
||||||
required String? tradeId,
|
required String? tradeId,
|
||||||
required String? note,
|
required String? note,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -583,21 +640,21 @@ class MockTradeNotesService extends _i1.Mock implements _i10.TradeNotesService {
|
||||||
#note: note,
|
#note: note,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> delete({required String? tradeId}) => (super.noSuchMethod(
|
_i7.Future<void> delete({required String? tradeId}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#delete,
|
#delete,
|
||||||
[],
|
[],
|
||||||
{#tradeId: tradeId},
|
{#tradeId: tradeId},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i7.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i7.Future<void>);
|
||||||
@override
|
@override
|
||||||
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -605,7 +662,7 @@ class MockTradeNotesService extends _i1.Mock implements _i10.TradeNotesService {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -633,13 +690,13 @@ class MockTradeNotesService extends _i1.Mock implements _i10.TradeNotesService {
|
||||||
/// A class which mocks [ChangeNowAPI].
|
/// A class which mocks [ChangeNowAPI].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
|
||||||
MockChangeNowAPI() {
|
MockChangeNowAPI() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i12.Client? _client) => super.noSuchMethod(
|
set client(_i13.Client? _client) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#client,
|
#client,
|
||||||
_client,
|
_client,
|
||||||
|
@ -647,7 +704,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>> getAvailableCurrencies({
|
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>> getAvailableCurrencies({
|
||||||
bool? fixedRate,
|
bool? fixedRate,
|
||||||
bool? active,
|
bool? active,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -661,8 +718,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>.value(
|
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>.value(
|
||||||
_FakeExchangeResponse_0<List<_i13.Currency>>(
|
_FakeExchangeResponse_0<List<_i14.Currency>>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getAvailableCurrencies,
|
#getAvailableCurrencies,
|
||||||
|
@ -673,9 +730,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>);
|
) as _i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>> getPairedCurrencies({
|
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>> getPairedCurrencies({
|
||||||
required String? ticker,
|
required String? ticker,
|
||||||
bool? fixedRate,
|
bool? fixedRate,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -689,8 +746,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>.value(
|
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>.value(
|
||||||
_FakeExchangeResponse_0<List<_i13.Currency>>(
|
_FakeExchangeResponse_0<List<_i14.Currency>>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getPairedCurrencies,
|
#getPairedCurrencies,
|
||||||
|
@ -701,9 +758,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>);
|
) as _i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i14.Decimal>> getMinimalExchangeAmount({
|
_i7.Future<_i2.ExchangeResponse<_i15.Decimal>> getMinimalExchangeAmount({
|
||||||
required String? fromTicker,
|
required String? fromTicker,
|
||||||
required String? toTicker,
|
required String? toTicker,
|
||||||
String? apiKey,
|
String? apiKey,
|
||||||
|
@ -718,8 +775,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
#apiKey: apiKey,
|
#apiKey: apiKey,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i2.ExchangeResponse<_i14.Decimal>>.value(
|
returnValue: _i7.Future<_i2.ExchangeResponse<_i15.Decimal>>.value(
|
||||||
_FakeExchangeResponse_0<_i14.Decimal>(
|
_FakeExchangeResponse_0<_i15.Decimal>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getMinimalExchangeAmount,
|
#getMinimalExchangeAmount,
|
||||||
|
@ -731,9 +788,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<_i14.Decimal>>);
|
) as _i7.Future<_i2.ExchangeResponse<_i15.Decimal>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i15.Range>> getRange({
|
_i7.Future<_i2.ExchangeResponse<_i16.Range>> getRange({
|
||||||
required String? fromTicker,
|
required String? fromTicker,
|
||||||
required String? toTicker,
|
required String? toTicker,
|
||||||
required bool? isFixedRate,
|
required bool? isFixedRate,
|
||||||
|
@ -750,8 +807,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
#apiKey: apiKey,
|
#apiKey: apiKey,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i2.ExchangeResponse<_i15.Range>>.value(
|
returnValue: _i7.Future<_i2.ExchangeResponse<_i16.Range>>.value(
|
||||||
_FakeExchangeResponse_0<_i15.Range>(
|
_FakeExchangeResponse_0<_i16.Range>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getRange,
|
#getRange,
|
||||||
|
@ -764,12 +821,12 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<_i15.Range>>);
|
) as _i7.Future<_i2.ExchangeResponse<_i16.Range>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i16.Estimate>> getEstimatedExchangeAmount({
|
_i7.Future<_i2.ExchangeResponse<_i17.Estimate>> getEstimatedExchangeAmount({
|
||||||
required String? fromTicker,
|
required String? fromTicker,
|
||||||
required String? toTicker,
|
required String? toTicker,
|
||||||
required _i14.Decimal? fromAmount,
|
required _i15.Decimal? fromAmount,
|
||||||
String? apiKey,
|
String? apiKey,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -783,8 +840,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
#apiKey: apiKey,
|
#apiKey: apiKey,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>.value(
|
returnValue: _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>.value(
|
||||||
_FakeExchangeResponse_0<_i16.Estimate>(
|
_FakeExchangeResponse_0<_i17.Estimate>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getEstimatedExchangeAmount,
|
#getEstimatedExchangeAmount,
|
||||||
|
@ -797,13 +854,13 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>);
|
) as _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i16.Estimate>>
|
_i7.Future<_i2.ExchangeResponse<_i17.Estimate>>
|
||||||
getEstimatedExchangeAmountFixedRate({
|
getEstimatedExchangeAmountFixedRate({
|
||||||
required String? fromTicker,
|
required String? fromTicker,
|
||||||
required String? toTicker,
|
required String? toTicker,
|
||||||
required _i14.Decimal? fromAmount,
|
required _i15.Decimal? fromAmount,
|
||||||
required bool? reversed,
|
required bool? reversed,
|
||||||
bool? useRateId = true,
|
bool? useRateId = true,
|
||||||
String? apiKey,
|
String? apiKey,
|
||||||
|
@ -821,8 +878,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
#apiKey: apiKey,
|
#apiKey: apiKey,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>.value(
|
returnValue: _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>.value(
|
||||||
_FakeExchangeResponse_0<_i16.Estimate>(
|
_FakeExchangeResponse_0<_i17.Estimate>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getEstimatedExchangeAmountFixedRate,
|
#getEstimatedExchangeAmountFixedRate,
|
||||||
|
@ -837,17 +894,17 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>);
|
) as _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i17.CNExchangeEstimate>>
|
_i7.Future<_i2.ExchangeResponse<_i18.CNExchangeEstimate>>
|
||||||
getEstimatedExchangeAmountV2({
|
getEstimatedExchangeAmountV2({
|
||||||
required String? fromTicker,
|
required String? fromTicker,
|
||||||
required String? toTicker,
|
required String? toTicker,
|
||||||
required _i17.CNEstimateType? fromOrTo,
|
required _i18.CNEstimateType? fromOrTo,
|
||||||
required _i14.Decimal? amount,
|
required _i15.Decimal? amount,
|
||||||
String? fromNetwork,
|
String? fromNetwork,
|
||||||
String? toNetwork,
|
String? toNetwork,
|
||||||
_i17.CNFlowType? flow = _i17.CNFlowType.standard,
|
_i18.CNFlowType? flow = _i18.CNFlowType.standard,
|
||||||
String? apiKey,
|
String? apiKey,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -866,8 +923,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<_i2.ExchangeResponse<_i17.CNExchangeEstimate>>.value(
|
_i7.Future<_i2.ExchangeResponse<_i18.CNExchangeEstimate>>.value(
|
||||||
_FakeExchangeResponse_0<_i17.CNExchangeEstimate>(
|
_FakeExchangeResponse_0<_i18.CNExchangeEstimate>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getEstimatedExchangeAmountV2,
|
#getEstimatedExchangeAmountV2,
|
||||||
|
@ -884,18 +941,18 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<_i17.CNExchangeEstimate>>);
|
) as _i7.Future<_i2.ExchangeResponse<_i18.CNExchangeEstimate>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<List<_i18.FixedRateMarket>>>
|
_i7.Future<_i2.ExchangeResponse<List<_i19.FixedRateMarket>>>
|
||||||
getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod(
|
getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getAvailableFixedRateMarkets,
|
#getAvailableFixedRateMarkets,
|
||||||
[],
|
[],
|
||||||
{#apiKey: apiKey},
|
{#apiKey: apiKey},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i7.Future<
|
||||||
_i2.ExchangeResponse<List<_i18.FixedRateMarket>>>.value(
|
_i2.ExchangeResponse<List<_i19.FixedRateMarket>>>.value(
|
||||||
_FakeExchangeResponse_0<List<_i18.FixedRateMarket>>(
|
_FakeExchangeResponse_0<List<_i19.FixedRateMarket>>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getAvailableFixedRateMarkets,
|
#getAvailableFixedRateMarkets,
|
||||||
|
@ -903,14 +960,14 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
{#apiKey: apiKey},
|
{#apiKey: apiKey},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<List<_i18.FixedRateMarket>>>);
|
) as _i7.Future<_i2.ExchangeResponse<List<_i19.FixedRateMarket>>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>
|
_i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>
|
||||||
createStandardExchangeTransaction({
|
createStandardExchangeTransaction({
|
||||||
required String? fromTicker,
|
required String? fromTicker,
|
||||||
required String? toTicker,
|
required String? toTicker,
|
||||||
required String? receivingAddress,
|
required String? receivingAddress,
|
||||||
required _i14.Decimal? amount,
|
required _i15.Decimal? amount,
|
||||||
String? extraId = r'',
|
String? extraId = r'',
|
||||||
String? userId = r'',
|
String? userId = r'',
|
||||||
String? contactEmail = r'',
|
String? contactEmail = r'',
|
||||||
|
@ -935,9 +992,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
#apiKey: apiKey,
|
#apiKey: apiKey,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i7.Future<
|
||||||
_i2.ExchangeResponse<_i19.ExchangeTransaction>>.value(
|
_i2.ExchangeResponse<_i20.ExchangeTransaction>>.value(
|
||||||
_FakeExchangeResponse_0<_i19.ExchangeTransaction>(
|
_FakeExchangeResponse_0<_i20.ExchangeTransaction>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#createStandardExchangeTransaction,
|
#createStandardExchangeTransaction,
|
||||||
|
@ -956,14 +1013,14 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>);
|
) as _i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>
|
_i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>
|
||||||
createFixedRateExchangeTransaction({
|
createFixedRateExchangeTransaction({
|
||||||
required String? fromTicker,
|
required String? fromTicker,
|
||||||
required String? toTicker,
|
required String? toTicker,
|
||||||
required String? receivingAddress,
|
required String? receivingAddress,
|
||||||
required _i14.Decimal? amount,
|
required _i15.Decimal? amount,
|
||||||
required String? rateId,
|
required String? rateId,
|
||||||
required bool? reversed,
|
required bool? reversed,
|
||||||
String? extraId = r'',
|
String? extraId = r'',
|
||||||
|
@ -992,9 +1049,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
#apiKey: apiKey,
|
#apiKey: apiKey,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i7.Future<
|
||||||
_i2.ExchangeResponse<_i19.ExchangeTransaction>>.value(
|
_i2.ExchangeResponse<_i20.ExchangeTransaction>>.value(
|
||||||
_FakeExchangeResponse_0<_i19.ExchangeTransaction>(
|
_FakeExchangeResponse_0<_i20.ExchangeTransaction>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#createFixedRateExchangeTransaction,
|
#createFixedRateExchangeTransaction,
|
||||||
|
@ -1015,9 +1072,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>);
|
) as _i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<_i20.ExchangeTransactionStatus>>
|
_i7.Future<_i2.ExchangeResponse<_i21.ExchangeTransactionStatus>>
|
||||||
getTransactionStatus({
|
getTransactionStatus({
|
||||||
required String? id,
|
required String? id,
|
||||||
String? apiKey,
|
String? apiKey,
|
||||||
|
@ -1031,9 +1088,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
#apiKey: apiKey,
|
#apiKey: apiKey,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i7.Future<
|
||||||
_i2.ExchangeResponse<_i20.ExchangeTransactionStatus>>.value(
|
_i2.ExchangeResponse<_i21.ExchangeTransactionStatus>>.value(
|
||||||
_FakeExchangeResponse_0<_i20.ExchangeTransactionStatus>(
|
_FakeExchangeResponse_0<_i21.ExchangeTransactionStatus>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getTransactionStatus,
|
#getTransactionStatus,
|
||||||
|
@ -1044,10 +1101,10 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6
|
) as _i7
|
||||||
.Future<_i2.ExchangeResponse<_i20.ExchangeTransactionStatus>>);
|
.Future<_i2.ExchangeResponse<_i21.ExchangeTransactionStatus>>);
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i2.ExchangeResponse<List<_i21.Pair>>>
|
_i7.Future<_i2.ExchangeResponse<List<_i22.Pair>>>
|
||||||
getAvailableFloatingRatePairs({bool? includePartners = false}) =>
|
getAvailableFloatingRatePairs({bool? includePartners = false}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -1056,8 +1113,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
{#includePartners: includePartners},
|
{#includePartners: includePartners},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<_i2.ExchangeResponse<List<_i21.Pair>>>.value(
|
_i7.Future<_i2.ExchangeResponse<List<_i22.Pair>>>.value(
|
||||||
_FakeExchangeResponse_0<List<_i21.Pair>>(
|
_FakeExchangeResponse_0<List<_i22.Pair>>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getAvailableFloatingRatePairs,
|
#getAvailableFloatingRatePairs,
|
||||||
|
@ -1065,5 +1122,5 @@ class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
|
||||||
{#includePartners: includePartners},
|
{#includePartners: includePartners},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i2.ExchangeResponse<List<_i21.Pair>>>);
|
) as _i7.Future<_i2.ExchangeResponse<List<_i22.Pair>>>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -646,6 +646,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -433,6 +433,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -433,6 +433,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -433,6 +433,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -431,6 +431,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -646,6 +646,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -487,6 +487,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -423,6 +423,11 @@ class MockManager extends _i1.Mock implements _i11.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -423,6 +423,11 @@ class MockManager extends _i1.Mock implements _i11.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -431,6 +431,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -688,6 +688,11 @@ class MockManager extends _i1.Mock implements _i15.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -431,6 +431,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -210,6 +210,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -209,6 +209,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -250,6 +250,11 @@ class MockManager extends _i1.Mock implements _i8.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -210,6 +210,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -2411,6 +2411,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -9,7 +9,7 @@ import 'dart:ui' as _i13;
|
||||||
import 'package:flutter/foundation.dart' as _i4;
|
import 'package:flutter/foundation.dart' as _i4;
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
|
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/models/node_model.dart' as _i16;
|
import 'package:stackwallet/models/node_model.dart' as _i17;
|
||||||
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
||||||
import 'package:stackwallet/services/node_service.dart' as _i3;
|
import 'package:stackwallet/services/node_service.dart' as _i3;
|
||||||
import 'package:stackwallet/services/wallets.dart' as _i8;
|
import 'package:stackwallet/services/wallets.dart' as _i8;
|
||||||
|
@ -20,6 +20,7 @@ import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i14;
|
||||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||||
as _i7;
|
as _i7;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i12;
|
import 'package:stackwallet/utilities/prefs.dart' as _i12;
|
||||||
|
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i16;
|
||||||
import 'package:tuple/tuple.dart' as _i10;
|
import 'package:tuple/tuple.dart' as _i10;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
@ -574,6 +575,61 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#enableSystemBrightness),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#enableSystemBrightness,
|
||||||
|
enableSystemBrightness,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i16.ThemeType get theme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#theme),
|
||||||
|
returnValue: _i16.ThemeType.light,
|
||||||
|
) as _i16.ThemeType);
|
||||||
|
@override
|
||||||
|
set theme(_i16.ThemeType? theme) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#theme,
|
||||||
|
theme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i16.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
|
returnValue: _i16.ThemeType.light,
|
||||||
|
) as _i16.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessLightTheme(_i16.ThemeType? systemBrightnessLightTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessLightTheme,
|
||||||
|
systemBrightnessLightTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i16.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
|
returnValue: _i16.ThemeType.light,
|
||||||
|
) as _i16.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessDarkTheme(_i16.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessDarkTheme,
|
||||||
|
systemBrightnessDarkTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
@ -673,15 +729,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
||||||
),
|
),
|
||||||
) as _i7.SecureStorageInterface);
|
) as _i7.SecureStorageInterface);
|
||||||
@override
|
@override
|
||||||
List<_i16.NodeModel> get primaryNodes => (super.noSuchMethod(
|
List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||||
Invocation.getter(#primaryNodes),
|
Invocation.getter(#primaryNodes),
|
||||||
returnValue: <_i16.NodeModel>[],
|
returnValue: <_i17.NodeModel>[],
|
||||||
) as List<_i16.NodeModel>);
|
) as List<_i17.NodeModel>);
|
||||||
@override
|
@override
|
||||||
List<_i16.NodeModel> get nodes => (super.noSuchMethod(
|
List<_i17.NodeModel> get nodes => (super.noSuchMethod(
|
||||||
Invocation.getter(#nodes),
|
Invocation.getter(#nodes),
|
||||||
returnValue: <_i16.NodeModel>[],
|
returnValue: <_i17.NodeModel>[],
|
||||||
) as List<_i16.NodeModel>);
|
) as List<_i17.NodeModel>);
|
||||||
@override
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
|
@ -699,7 +755,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
||||||
@override
|
@override
|
||||||
_i11.Future<void> setPrimaryNodeFor({
|
_i11.Future<void> setPrimaryNodeFor({
|
||||||
required _i9.Coin? coin,
|
required _i9.Coin? coin,
|
||||||
required _i16.NodeModel? node,
|
required _i17.NodeModel? node,
|
||||||
bool? shouldNotifyListeners = false,
|
bool? shouldNotifyListeners = false,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -716,40 +772,40 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
||||||
returnValueForMissingStub: _i11.Future<void>.value(),
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
||||||
) as _i11.Future<void>);
|
) as _i11.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i16.NodeModel? getPrimaryNodeFor({required _i9.Coin? coin}) =>
|
_i17.NodeModel? getPrimaryNodeFor({required _i9.Coin? coin}) =>
|
||||||
(super.noSuchMethod(Invocation.method(
|
(super.noSuchMethod(Invocation.method(
|
||||||
#getPrimaryNodeFor,
|
#getPrimaryNodeFor,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
)) as _i16.NodeModel?);
|
)) as _i17.NodeModel?);
|
||||||
@override
|
@override
|
||||||
List<_i16.NodeModel> getNodesFor(_i9.Coin? coin) => (super.noSuchMethod(
|
List<_i17.NodeModel> getNodesFor(_i9.Coin? coin) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getNodesFor,
|
#getNodesFor,
|
||||||
[coin],
|
[coin],
|
||||||
),
|
),
|
||||||
returnValue: <_i16.NodeModel>[],
|
returnValue: <_i17.NodeModel>[],
|
||||||
) as List<_i16.NodeModel>);
|
) as List<_i17.NodeModel>);
|
||||||
@override
|
@override
|
||||||
_i16.NodeModel? getNodeById({required String? id}) =>
|
_i17.NodeModel? getNodeById({required String? id}) =>
|
||||||
(super.noSuchMethod(Invocation.method(
|
(super.noSuchMethod(Invocation.method(
|
||||||
#getNodeById,
|
#getNodeById,
|
||||||
[],
|
[],
|
||||||
{#id: id},
|
{#id: id},
|
||||||
)) as _i16.NodeModel?);
|
)) as _i17.NodeModel?);
|
||||||
@override
|
@override
|
||||||
List<_i16.NodeModel> failoverNodesFor({required _i9.Coin? coin}) =>
|
List<_i17.NodeModel> failoverNodesFor({required _i9.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#failoverNodesFor,
|
#failoverNodesFor,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: <_i16.NodeModel>[],
|
returnValue: <_i17.NodeModel>[],
|
||||||
) as List<_i16.NodeModel>);
|
) as List<_i17.NodeModel>);
|
||||||
@override
|
@override
|
||||||
_i11.Future<void> add(
|
_i11.Future<void> add(
|
||||||
_i16.NodeModel? node,
|
_i17.NodeModel? node,
|
||||||
String? password,
|
String? password,
|
||||||
bool? shouldNotifyListeners,
|
bool? shouldNotifyListeners,
|
||||||
) =>
|
) =>
|
||||||
|
@ -801,7 +857,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
||||||
) as _i11.Future<void>);
|
) as _i11.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i11.Future<void> edit(
|
_i11.Future<void> edit(
|
||||||
_i16.NodeModel? editedNode,
|
_i17.NodeModel? editedNode,
|
||||||
String? password,
|
String? password,
|
||||||
bool? shouldNotifyListeners,
|
bool? shouldNotifyListeners,
|
||||||
) =>
|
) =>
|
||||||
|
|
|
@ -2136,6 +2136,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -22,8 +22,8 @@ import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i22;
|
||||||
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
||||||
import 'package:stackwallet/services/locale_service.dart' as _i24;
|
import 'package:stackwallet/services/locale_service.dart' as _i24;
|
||||||
import 'package:stackwallet/services/node_service.dart' as _i3;
|
import 'package:stackwallet/services/node_service.dart' as _i3;
|
||||||
import 'package:stackwallet/services/notes_service.dart' as _i28;
|
import 'package:stackwallet/services/notes_service.dart' as _i29;
|
||||||
import 'package:stackwallet/services/price_service.dart' as _i27;
|
import 'package:stackwallet/services/price_service.dart' as _i28;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i10;
|
as _i10;
|
||||||
import 'package:stackwallet/services/wallets.dart' as _i16;
|
import 'package:stackwallet/services/wallets.dart' as _i16;
|
||||||
|
@ -32,6 +32,7 @@ import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i26;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17;
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i25;
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i25;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i19;
|
import 'package:stackwallet/utilities/prefs.dart' as _i19;
|
||||||
|
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i27;
|
||||||
import 'package:tuple/tuple.dart' as _i15;
|
import 'package:tuple/tuple.dart' as _i15;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
@ -555,6 +556,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
@ -2339,6 +2345,61 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get enableSystemBrightness => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#enableSystemBrightness),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#enableSystemBrightness,
|
||||||
|
enableSystemBrightness,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i27.ThemeType get theme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#theme),
|
||||||
|
returnValue: _i27.ThemeType.light,
|
||||||
|
) as _i27.ThemeType);
|
||||||
|
@override
|
||||||
|
set theme(_i27.ThemeType? theme) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#theme,
|
||||||
|
theme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i27.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
|
returnValue: _i27.ThemeType.light,
|
||||||
|
) as _i27.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessLightTheme(_i27.ThemeType? systemBrightnessLightTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessLightTheme,
|
||||||
|
systemBrightnessLightTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i27.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
|
returnValue: _i27.ThemeType.light,
|
||||||
|
) as _i27.ThemeType);
|
||||||
|
@override
|
||||||
|
set systemBrightnessDarkTheme(_i27.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
|
super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#systemBrightnessDarkTheme,
|
||||||
|
systemBrightnessDarkTheme,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
@ -2424,7 +2485,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
|
||||||
/// A class which mocks [PriceService].
|
/// A class which mocks [PriceService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockPriceService extends _i1.Mock implements _i27.PriceService {
|
class MockPriceService extends _i1.Mock implements _i28.PriceService {
|
||||||
MockPriceService() {
|
MockPriceService() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -2532,7 +2593,7 @@ class MockPriceService extends _i1.Mock implements _i27.PriceService {
|
||||||
/// A class which mocks [NotesService].
|
/// A class which mocks [NotesService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockNotesService extends _i1.Mock implements _i28.NotesService {
|
class MockNotesService extends _i1.Mock implements _i29.NotesService {
|
||||||
MockNotesService() {
|
MockNotesService() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2348,6 +2348,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
|
@ -2348,6 +2348,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
|
bool get hasWhirlpoolSupport => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#hasWhirlpoolSupport),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||||
Invocation.getter(#rescanOnOpenVersion),
|
Invocation.getter(#rescanOnOpenVersion),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
|
|
Loading…
Reference in a new issue