stack_wallet/lib/services/mixins/wallet_db.dart

23 lines
515 B
Dart
Raw Normal View History

2023-05-26 21:21:16 +00:00
/*
* This file is part of Stack Wallet.
*
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
* Generated by Cypher Stack on 2023-05-26
*
*/
2023-03-01 21:52:13 +00:00
import 'package:stackwallet/db/isar/main_db.dart';
2023-01-12 18:46:01 +00:00
2024-01-11 23:36:13 +00:00
@Deprecated("Legacy support")
2023-01-12 18:46:01 +00:00
mixin WalletDB {
MainDB? _db;
MainDB get db => _db!;
2023-01-12 18:46:01 +00:00
2024-01-11 23:36:13 +00:00
@Deprecated("Legacy support")
void initWalletDB({MainDB? mockableOverride}) async {
_db = mockableOverride ?? MainDB.instance;
2023-01-12 18:46:01 +00:00
}
}