// import 'package:path/path.dart' as p; // import 'package:path_provider/path_provider.dart'; import 'package:objectbox/objectbox.dart'; class AppStoreBase { /// The Store of this app. late final Store store; // AppStoreBase._create(this.store) { // // Add any additional setup code, e.g. build queries. // // // new box instance // } // // /// Create an instance of ObjectBox to use throughout the app. // static Future create() async { // final docsDir = await getApplicationDocumentsDirectory(); // // Future openStore() {...} is defined in the generated objectbox.g.dart // final store = await openStore(directory: p.join(docsDir.path, "obx")); // return AppStoreBase._create(store); // } }