stack_wallet/lib/services/mixins/wallet_db.dart

11 lines
210 B
Dart
Raw Normal View History

2023-01-16 21:04:03 +00:00
import 'package:stackwallet/db/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 isarInit({MainDB? mockableOverride}) async {
_db = mockableOverride ?? MainDB.instance;
2023-01-12 18:46:01 +00:00
}
}