Last active
January 10, 2022 09:20
-
-
Save blaugold/9dce51aead574610937c748206ae20d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// For this example, we'll put the database into a global variable. | |
late final AsyncDatabase database; | |
Future<void> openDatabase() async { | |
// The database name will be used as the part of the file name | |
// of the database. | |
database = await Database.openAsync('notes-app'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment