15 lines
282 B
Dart
15 lines
282 B
Dart
|
import 'package:diameter/objectbox.g.dart';
|
||
|
|
||
|
class ObjectBox {
|
||
|
late final Store store;
|
||
|
|
||
|
ObjectBox._create(this.store) {
|
||
|
// additiona setup logic
|
||
|
}
|
||
|
|
||
|
static Future<ObjectBox> create() async {
|
||
|
final store = await openStore();
|
||
|
return ObjectBox._create(store);
|
||
|
}
|
||
|
}
|