appStoreBase.dart 764 B

12345678910111213141516171819202122232425
  1. // import 'package:path/path.dart' as p;
  2. // import 'package:path_provider/path_provider.dart';
  3. import 'package:objectbox/objectbox.dart';
  4. class AppStoreBase {
  5. /// The Store of this app.
  6. late final Store store;
  7. // AppStoreBase._create(this.store) {
  8. // // Add any additional setup code, e.g. build queries.
  9. //
  10. // // new box instance
  11. // }
  12. //
  13. // /// Create an instance of ObjectBox to use throughout the app.
  14. // static Future<AppStoreBase> create() async {
  15. // final docsDir = await getApplicationDocumentsDirectory();
  16. // // Future<Store> openStore() {...} is defined in the generated objectbox.g.dart
  17. // final store = await openStore(directory: p.join(docsDir.path, "obx"));
  18. // return AppStoreBase._create(store);
  19. // }
  20. }