stack_wallet/lib/services/mixins/wallet_db.dart

11 lines
219 B
Dart
Raw Normal View History

2023-03-01 21:52:13 +00:00
import 'package:stackwallet/db/isar/main_db.dart';
2023-01-12 18:46:01 +00:00
mixin WalletDB {
MainDB? _db;
MainDB get db => _db!;
2023-01-12 18:46:01 +00:00
void initWalletDB({MainDB? mockableOverride}) async {
_db = mockableOverride ?? MainDB.instance;
2023-01-12 18:46:01 +00:00
}
}