lazily instantiate the db the first time it is accessed only have a single app-wide reference to the database Static final DatabaseHelper instance = DatabaseHelper._privateConstructor() Static final _databaseName = "MyDatabase.db" Import 'package:path_provider/path_provider.dart' show getApplicationDocumentsDirectory Import 'package:path/path.dart' show join
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |