openOrCreateDatabase method

Future<SQLiteDatabase> openOrCreateDatabase (String path, { String password })

Equivalent to openDatabase(path, flags: CREATE_IF_NECESSARY).

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#openOrCreateDatabase(java.io.File,%20android.database.sqlite.SQLiteDatabase.CursorFactory)

Implementation

static Future<SQLiteDatabase> openOrCreateDatabase(final String path,
    {String password}) {
  return openDatabase(path, password: password, flags: CREATE_IF_NECESSARY);
}