Reformat the whole codebase with 100 line width (#3403)

This commit is contained in:
Omar Hatem
2026-07-15 01:20:33 +03:00
committed by GitHub
parent 1241b28bec
commit 16ddc0837a
801 changed files with 17517 additions and 17091 deletions
-1
View File
@@ -48,7 +48,6 @@ abstract class AppStoreBase with Store {
SettingsStore settingsStore;
ThemeStore themeStore;
@observable
+2 -3
View File
@@ -30,8 +30,7 @@ abstract class OrderFilterStoreBase with Store {
required List<OrderListItem> orders,
required WalletBase wallet,
}) {
final walletOrders =
orders.where((item) => item.order.walletId == wallet.id).toList();
final walletOrders = orders.where((item) => item.order.walletId == wallet.id).toList();
final cakePayOrders = walletOrders.where((item) {
final order = item.order;
@@ -43,4 +42,4 @@ abstract class OrderFilterStoreBase with Store {
if (!displayCakePay) return <OrderListItem>[];
return cakePayOrders;
}
}
}
@@ -8,8 +8,7 @@ import 'package:mobx/mobx.dart';
part 'payjoin_transactions_store.g.dart';
class PayjoinTransactionsStore = PayjoinTransactionsStoreBase
with _$PayjoinTransactionsStore;
class PayjoinTransactionsStore = PayjoinTransactionsStoreBase with _$PayjoinTransactionsStore;
abstract class PayjoinTransactionsStoreBase with Store {
PayjoinTransactionsStoreBase({
+27 -25
View File
@@ -71,20 +71,20 @@ abstract class TradeFilterStoreBase with Store {
@computed
int get enabledProvidersCount => [
displayChangeNow,
displaySideShift,
displaySimpleSwap,
displayTrocador,
displayExolix,
displayChainflip,
displayThorChain,
displayLetsExchange,
displayStealthEx,
displayXOSwap,
displaySwapTrade,
displaySwapXyz,
displayNearIntents
].where((item) => item).length;
displayChangeNow,
displaySideShift,
displaySimpleSwap,
displayTrocador,
displayExolix,
displayChainflip,
displayThorChain,
displayLetsExchange,
displayStealthEx,
displayXOSwap,
displaySwapTrade,
displaySwapXyz,
displayNearIntents
].where((item) => item).length;
@computed
bool get displayAllTrades =>
@@ -189,12 +189,12 @@ abstract class TradeFilterStoreBase with Store {
}
List<TradeListItem> filtered({required List<TradeListItem> trades, required WalletBase wallet}) {
final _trades = trades
.where((item) {
final isSameChain = item.trade.chainId != null ? item.trade.chainId == wallet.chainId : true; // returning default as true here so it falls back to the default checks if there's no chainId
return item.trade.walletId == wallet.id && isTradeInAccount(item, wallet) && isSameChain;
})
.toList();
final _trades = trades.where((item) {
final isSameChain = item.trade.chainId != null
? item.trade.chainId == wallet.chainId
: true; // returning default as true here so it falls back to the default checks if there's no chainId
return item.trade.walletId == wallet.id && isTradeInAccount(item, wallet) && isSameChain;
}).toList();
final needToFilter = !displayAllTrades;
return needToFilter
@@ -217,12 +217,14 @@ abstract class TradeFilterStoreBase with Store {
item.trade.provider == ExchangeProviderDescription.thorChain) ||
(displayLetsExchange &&
item.trade.provider == ExchangeProviderDescription.letsExchange) ||
(displayStealthEx && item.trade.provider == ExchangeProviderDescription.stealthEx) ||
(displayStealthEx &&
item.trade.provider == ExchangeProviderDescription.stealthEx) ||
(displayXOSwap && item.trade.provider == ExchangeProviderDescription.xoSwap) ||
(displaySwapTrade && item.trade.provider == ExchangeProviderDescription.swapTrade) ||
(displaySwapXyz &&
item.trade.provider == ExchangeProviderDescription.swapsXyz) ||
(displayNearIntents && item.trade.provider == ExchangeProviderDescription.nearIntents))
(displaySwapTrade &&
item.trade.provider == ExchangeProviderDescription.swapTrade) ||
(displaySwapXyz && item.trade.provider == ExchangeProviderDescription.swapsXyz) ||
(displayNearIntents &&
item.trade.provider == ExchangeProviderDescription.nearIntents))
.toList()
: _trades;
}
+1
View File
@@ -0,0 +1 @@
-1
View File
@@ -5,7 +5,6 @@ part 'seed_settings_store.g.dart';
class SeedSettingsStore = SeedSettingsStoreBase with _$SeedSettingsStore;
abstract class SeedSettingsStoreBase with Store {
@observable
String? passphrase;
}
+72 -88
View File
@@ -247,7 +247,6 @@ abstract class SettingsStoreBase with Store {
priority[WalletType.ethereum] = initialEthereumTransactionPriority;
}
if (initialPolygonTransactionPriority != null) {
priority[WalletType.polygon] = initialPolygonTransactionPriority;
}
@@ -302,7 +301,8 @@ abstract class SettingsStoreBase with Store {
reaction((_) => shouldShowRepWarning,
(bool val) => sharedPreferences.setBool(PreferencesKey.shouldShowRepWarning, val));
reaction((_)=>mwebAdDismissed, (val)=>sharedPreferences.setBool(PreferencesKey.mwebAdDismissed, val));
reaction((_) => mwebAdDismissed,
(val) => sharedPreferences.setBool(PreferencesKey.mwebAdDismissed, val));
priority.observe((change) {
final String? key;
@@ -570,42 +570,40 @@ abstract class SettingsStoreBase with Store {
reaction(
(_) => lookupsZcashNames,
(bool looksUpZcashNames) => _sharedPreferences.setBool(
PreferencesKey.lookupsZcashNames, looksUpZcashNames));
(bool looksUpZcashNames) =>
_sharedPreferences.setBool(PreferencesKey.lookupsZcashNames, looksUpZcashNames));
reaction(
(_) => lookupsZcashAddress,
(bool lookupsZcashAddress) => _sharedPreferences.setBool(
PreferencesKey.lookupsZcashAddress, lookupsZcashAddress));
(_) => lookupsZcashAddress,
(bool lookupsZcashAddress) =>
_sharedPreferences.setBool(PreferencesKey.lookupsZcashAddress, lookupsZcashAddress));
reaction(
(_) => lookupsWellKnown,
(bool looksUpWellKnown) =>
_sharedPreferences.setBool(PreferencesKey.lookupsWellKnown, looksUpWellKnown));
reaction(
(_) => lookupsFio,
(bool lookupsFio) =>
_sharedPreferences.setBool(PreferencesKey.lookupsFio, lookupsFio));
reaction((_) => lookupsFio,
(bool lookupsFio) => _sharedPreferences.setBool(PreferencesKey.lookupsFio, lookupsFio));
reaction(
(_) => lookupsNostr,
(bool lookupsNostr) =>
(_) => lookupsNostr,
(bool lookupsNostr) =>
_sharedPreferences.setBool(PreferencesKey.lookupsNostr, lookupsNostr));
reaction(
(_) => lookupsThorChain,
(bool lookupsThorChain) =>
(_) => lookupsThorChain,
(bool lookupsThorChain) =>
_sharedPreferences.setBool(PreferencesKey.lookupsThorChain, lookupsThorChain));
reaction(
(_) => lookupsBip353,
(bool lookupsBip353) =>
(_) => lookupsBip353,
(bool lookupsBip353) =>
_sharedPreferences.setBool(PreferencesKey.lookupsBip353, lookupsBip353));
reaction(
(_) => lookupsLNUrl,
(bool lookupsLNUrl) =>
(_) => lookupsLNUrl,
(bool lookupsLNUrl) =>
_sharedPreferences.setBool(PreferencesKey.lookupsLNUrl, lookupsLNUrl));
reaction((_) => usePayjoin,
@@ -726,8 +724,8 @@ abstract class SettingsStoreBase with Store {
reaction(
(_) => showZcashMissingFundsCard,
(bool showZcashMissingFundsCard) =>
_sharedPreferences.setBool(PreferencesKey.showZcashMissingFundsCard, showZcashMissingFundsCard));
(bool showZcashMissingFundsCard) => _sharedPreferences.setBool(
PreferencesKey.showZcashMissingFundsCard, showZcashMissingFundsCard));
reaction((_) => mwebEnabled,
(bool mwebEnabled) => _sharedPreferences.setBool(PreferencesKey.mwebEnabled, mwebEnabled));
@@ -765,8 +763,8 @@ abstract class SettingsStoreBase with Store {
reaction(
(_) => balanceHideCounter,
(int balanceHideCounter) => _sharedPreferences.setInt(PreferencesKey.balanceHideCounter, balanceHideCounter)
);
(int balanceHideCounter) =>
_sharedPreferences.setInt(PreferencesKey.balanceHideCounter, balanceHideCounter));
this.nodes.observe((change) {
if (change.newValue != null && change.key != null) {
@@ -1147,7 +1145,8 @@ abstract class SettingsStoreBase with Store {
return priority[walletType];
}
void setPriority(WalletType walletType, TransactionPriority priority, {int? chainId}) => this.priority[walletType] = priority;
void setPriority(WalletType walletType, TransactionPriority priority, {int? chainId}) =>
this.priority[walletType] = priority;
bool isBitcoinBuyEnabled;
@@ -1158,8 +1157,7 @@ abstract class SettingsStoreBase with Store {
_sharedPreferences.setBool(PreferencesKey.shouldShowReceiveWarning, value);
static Future<SettingsStore> load(
{
required bool isBitcoinBuyEnabled,
{required bool isBitcoinBuyEnabled,
FiatCurrency initialFiatCurrency = FiatCurrency.usd,
BalanceDisplayMode initialBalanceDisplayMode = BalanceDisplayMode.availableBalance}) async {
final sharedPreferences = await getIt.getAsync<SharedPreferences>();
@@ -1281,10 +1279,14 @@ abstract class SettingsStoreBase with Store {
sharedPreferences.getBool(PreferencesKey.shouldShowMarketPlaceInDashboard) ?? true;
final showAddressBookPopupEnabled =
sharedPreferences.getBool(PreferencesKey.showAddressBookPopupEnabled) ?? true;
final forceDecentralizedExchanges = await sharedPreferences.getBool(PreferencesKey.forceDecentralizedExchanges) ?? false;
final decentralizedExchangesPromptDismissed = await sharedPreferences.getBool(PreferencesKey.decentralizedExchangesPromptDismissed) ?? false;
final forceDecentralizedExchanges =
await sharedPreferences.getBool(PreferencesKey.forceDecentralizedExchanges) ?? false;
final decentralizedExchangesPromptDismissed =
await sharedPreferences.getBool(PreferencesKey.decentralizedExchangesPromptDismissed) ??
false;
final syncStatusDisplayMode = SyncStatusDisplayModeExtension.fromString(
sharedPreferences.getString(PreferencesKey.syncStatusDisplayMode) ?? SyncStatusDisplayMode.blocksRemaining.name);
sharedPreferences.getString(PreferencesKey.syncStatusDisplayMode) ??
SyncStatusDisplayMode.blocksRemaining.name);
final exchangeStatus = ExchangeApiMode.deserialize(
raw: sharedPreferences.getInt(PreferencesKey.exchangeStatusKey) ??
ExchangeApiMode.enabled.raw);
@@ -1323,7 +1325,8 @@ abstract class SettingsStoreBase with Store {
final lookupsOpenAlias = sharedPreferences.getBool(PreferencesKey.lookupsOpenAlias) ?? true;
final lookupsENS = sharedPreferences.getBool(PreferencesKey.lookupsENS) ?? true;
final lookupsZcashNames = sharedPreferences.getBool(PreferencesKey.lookupsZcashNames) ?? true;
final lookupsZcashAddress = sharedPreferences.getBool(PreferencesKey.lookupsZcashAddress) ?? true;
final lookupsZcashAddress =
sharedPreferences.getBool(PreferencesKey.lookupsZcashAddress) ?? true;
final lookupsWellKnown = sharedPreferences.getBool(PreferencesKey.lookupsWellKnown) ?? true;
final lookupsFio = sharedPreferences.getBool(PreferencesKey.lookupsFio) ?? true;
final lookupsNostr = sharedPreferences.getBool(PreferencesKey.lookupsNostr) ?? true;
@@ -1337,7 +1340,8 @@ abstract class SettingsStoreBase with Store {
sharedPreferences.getBool(PreferencesKey.silentPaymentsCardDisplay) ?? true;
final mwebAlwaysScan = sharedPreferences.getBool(PreferencesKey.mwebAlwaysScan) ?? false;
final mwebCardDisplay = sharedPreferences.getBool(PreferencesKey.mwebCardDisplay) ?? true;
final showZcashMissingFundsCard = sharedPreferences.getBool(PreferencesKey.showZcashMissingFundsCard) ?? true;
final showZcashMissingFundsCard =
sharedPreferences.getBool(PreferencesKey.showZcashMissingFundsCard) ?? true;
final mwebEnabled = sharedPreferences.getBool(PreferencesKey.mwebEnabled) ?? false;
final hasEnabledMwebBefore =
sharedPreferences.getBool(PreferencesKey.hasEnabledMwebBefore) ?? false;
@@ -1376,7 +1380,6 @@ abstract class SettingsStoreBase with Store {
final decredNodeId = sharedPreferences.getInt(PreferencesKey.currentDecredNodeIdKey);
final dogecoinNodeId = sharedPreferences.getInt(PreferencesKey.currentDogecoinNodeIdKey);
final nodeSource = await Node.getAll();
final powNodeSource = await Node.getAllPow();
@@ -1389,52 +1392,36 @@ abstract class SettingsStoreBase with Store {
final litecoinElectrumServer =
nodeSource.firstWhereOrNull((e) => e.id == litecoinElectrumServerId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == cakeWalletLitecoinElectrumUri);
final ethereumNode =
nodeSource.firstWhereOrNull((e) => e.id == ethereumNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == ethereumDefaultNodeUri);
final polygonNode =
nodeSource.firstWhereOrNull((e) => e.id == polygonNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == polygonDefaultNodeUri);
final baseNode =
nodeSource.firstWhereOrNull((e) => e.id == baseNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == baseDefaultNodeUri);
final arbitrumNode =
nodeSource.firstWhereOrNull((e) => e.id == arbitrumNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == arbitrumDefaultNodeUri);
final ethereumNode = nodeSource.firstWhereOrNull((e) => e.id == ethereumNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == ethereumDefaultNodeUri);
final polygonNode = nodeSource.firstWhereOrNull((e) => e.id == polygonNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == polygonDefaultNodeUri);
final baseNode = nodeSource.firstWhereOrNull((e) => e.id == baseNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == baseDefaultNodeUri);
final arbitrumNode = nodeSource.firstWhereOrNull((e) => e.id == arbitrumNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == arbitrumDefaultNodeUri);
final bitcoinCashElectrumServer =
nodeSource.firstWhereOrNull((e) => e.id == bitcoinCashElectrumServerId) ??
nodeSource.firstWhereOrNull(
(e) => e.uriRaw == cakeWalletBitcoinCashDefaultNodeUri);
final nanoNode =
nodeSource.firstWhereOrNull((e) => e.id == nanoNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == nanoDefaultNodeUri);
final decredNode =
nodeSource.firstWhereOrNull((e) => e.id == decredNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == decredDefaultUri);
final nanoPowNode =
powNodeSource.firstWhereOrNull((e) => e.id == nanoPowNodeId) ??
powNodeSource.firstWhereOrNull(
(e) => e.uriRaw == nanoDefaultPowNodeUri);
final solanaNode =
nodeSource.firstWhereOrNull((e) => e.id == solanaNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == solanaDefaultNodeUri);
final tronNode =
nodeSource.firstWhereOrNull((e) => e.id == tronNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == tronDefaultNodeUri);
final wowneroNode =
nodeSource.firstWhereOrNull((e) => e.id == wowneroNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == wowneroDefaultNodeUri);
final zanoNode =
nodeSource.firstWhereOrNull((e) => e.id == zanoNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == zanoDefaultNodeUri);
final dogecoinNode =
nodeSource.firstWhereOrNull((e) => e.id == dogecoinNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == dogecoinDefaultNodeUri);
final zcashNode =
nodeSource.firstWhereOrNull((e) => e.id == zcashNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == cakeWalletBitcoinCashDefaultNodeUri);
final nanoNode = nodeSource.firstWhereOrNull((e) => e.id == nanoNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == nanoDefaultNodeUri);
final decredNode = nodeSource.firstWhereOrNull((e) => e.id == decredNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == decredDefaultUri);
final nanoPowNode = powNodeSource.firstWhereOrNull((e) => e.id == nanoPowNodeId) ??
powNodeSource.firstWhereOrNull((e) => e.uriRaw == nanoDefaultPowNodeUri);
final solanaNode = nodeSource.firstWhereOrNull((e) => e.id == solanaNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == solanaDefaultNodeUri);
final tronNode = nodeSource.firstWhereOrNull((e) => e.id == tronNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == tronDefaultNodeUri);
final wowneroNode = nodeSource.firstWhereOrNull((e) => e.id == wowneroNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == wowneroDefaultNodeUri);
final zanoNode = nodeSource.firstWhereOrNull((e) => e.id == zanoNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == zanoDefaultNodeUri);
final dogecoinNode = nodeSource.firstWhereOrNull((e) => e.id == dogecoinNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == dogecoinDefaultNodeUri);
final zcashNode = nodeSource.firstWhereOrNull((e) => e.id == zcashNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == zcashDefaultNodeUri);
final bscNode =
nodeSource.firstWhereOrNull((e) => e.id == bscNodeId) ??
final bscNode = nodeSource.firstWhereOrNull((e) => e.id == bscNodeId) ??
nodeSource.firstWhereOrNull((e) => e.uriRaw == bscDefaultNodeUri);
final packageInfo = await PackageInfo.fromPlatform();
@@ -1654,7 +1641,8 @@ abstract class SettingsStoreBase with Store {
final mwebAdDismissed =
await sharedPreferences.getBool(PreferencesKey.mwebAdDismissed) ?? false;
final balanceHideCounter = await sharedPreferences.getInt(PreferencesKey.balanceHideCounter) ?? 0;
final balanceHideCounter =
await sharedPreferences.getInt(PreferencesKey.balanceHideCounter) ?? 0;
return SettingsStore(
secureStorage: secureStorage,
@@ -1899,7 +1887,8 @@ abstract class SettingsStoreBase with Store {
sharedPreferences.getBool(PreferencesKey.showAddressBookPopupEnabled) ??
showAddressBookPopupEnabled;
syncStatusDisplayMode = SyncStatusDisplayModeExtension.fromString(
sharedPreferences.getString(PreferencesKey.syncStatusDisplayMode) ?? SyncStatusDisplayMode.blocksRemaining.name);
sharedPreferences.getString(PreferencesKey.syncStatusDisplayMode) ??
SyncStatusDisplayMode.blocksRemaining.name);
exchangeStatus = ExchangeApiMode.deserialize(
raw: sharedPreferences.getInt(PreferencesKey.exchangeStatusKey) ??
ExchangeApiMode.enabled.raw);
@@ -1950,15 +1939,15 @@ abstract class SettingsStoreBase with Store {
sharedPreferences.getBool(PreferencesKey.lookupsUnstoppableDomains) ?? true;
lookupsOpenAlias = sharedPreferences.getBool(PreferencesKey.lookupsOpenAlias) ?? true;
lookupsENS = sharedPreferences.getBool(PreferencesKey.lookupsENS) ?? true;
lookupsZcashNames =
sharedPreferences.getBool(PreferencesKey.lookupsZcashNames) ?? true;
lookupsZcashNames = sharedPreferences.getBool(PreferencesKey.lookupsZcashNames) ?? true;
lookupsWellKnown = sharedPreferences.getBool(PreferencesKey.lookupsWellKnown) ?? true;
customBitcoinFeeRate = sharedPreferences.getInt(PreferencesKey.customBitcoinFeeRate) ?? 1;
silentPaymentsCardDisplay =
sharedPreferences.getBool(PreferencesKey.silentPaymentsCardDisplay) ?? true;
mwebAlwaysScan = sharedPreferences.getBool(PreferencesKey.mwebAlwaysScan) ?? false;
mwebCardDisplay = sharedPreferences.getBool(PreferencesKey.mwebCardDisplay) ?? true;
showZcashMissingFundsCard = sharedPreferences.getBool(PreferencesKey.showZcashMissingFundsCard) ?? true;
showZcashMissingFundsCard =
sharedPreferences.getBool(PreferencesKey.showZcashMissingFundsCard) ?? true;
mwebEnabled = sharedPreferences.getBool(PreferencesKey.mwebEnabled) ?? false;
hasEnabledMwebBefore = sharedPreferences.getBool(PreferencesKey.hasEnabledMwebBefore) ?? false;
final nodeId = sharedPreferences.getInt(PreferencesKey.currentNodeIdKey);
@@ -2001,7 +1990,6 @@ abstract class SettingsStoreBase with Store {
final decredNode = await Node.get(decredNodeId ?? -1);
final dogecoinNode = await Node.get(dogecoinNodeId ?? -1);
if (moneroNode != null) {
nodes[WalletType.monero] = moneroNode;
}
@@ -2173,15 +2161,12 @@ abstract class SettingsStoreBase with Store {
}
Future<void> _saveCurrentNode(Node node, WalletType walletType) async {
switch (walletType) {
case WalletType.bitcoin:
await _sharedPreferences.setInt(
PreferencesKey.currentBitcoinElectrumSererIdKey, node.id);
await _sharedPreferences.setInt(PreferencesKey.currentBitcoinElectrumSererIdKey, node.id);
break;
case WalletType.litecoin:
await _sharedPreferences.setInt(
PreferencesKey.currentLitecoinElectrumSererIdKey, node.id);
await _sharedPreferences.setInt(PreferencesKey.currentLitecoinElectrumSererIdKey, node.id);
break;
case WalletType.monero:
await _sharedPreferences.setInt(PreferencesKey.currentNodeIdKey, node.id);
@@ -2200,8 +2185,7 @@ abstract class SettingsStoreBase with Store {
nodes[node.type] = node;
break;
case WalletType.bitcoinCash:
await _sharedPreferences.setInt(
PreferencesKey.currentBitcoinCashNodeIdKey, node.id);
await _sharedPreferences.setInt(PreferencesKey.currentBitcoinCashNodeIdKey, node.id);
break;
case WalletType.nano:
await _sharedPreferences.setInt(PreferencesKey.currentNanoNodeIdKey, node.id);
+2 -4
View File
@@ -8,8 +8,7 @@ part 'send_template_store.g.dart';
class SendTemplateStore = SendTemplateBase with _$SendTemplateStore;
abstract class SendTemplateBase with Store {
SendTemplateBase({required this.templateSource})
: templates = ObservableList<Template>() {
SendTemplateBase({required this.templateSource}) : templates = ObservableList<Template>() {
update();
}
@@ -19,8 +18,7 @@ abstract class SendTemplateBase with Store {
Box<Template> templateSource;
@action
void update() =>
templates.replaceRange(0, templates.length, templateSource.values.toList());
void update() => templates.replaceRange(0, templates.length, templateSource.values.toList());
@action
Future<void> addTemplate(
+1 -1
View File
@@ -10,4 +10,4 @@ abstract class WalletListStoreBase with Store {
@observable
ObservableList<WalletDescription> wallets;
}
}