-
-
Save Rahiche/d6f896bcb005f0a9cff2a3d5bfbb8e92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static Database _database; | |
Future<Database> get database async { | |
if (_database != null) | |
return _database; | |
// if _database is null we instantiate it | |
_database = await initDB(); | |
return _database; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment