onDatabaseVersionChangeError function
to specify during openDatabase
for OpenDatabaseOptions.onDowngrade
Downgrading will always fail
Implementation
Future<void> onDatabaseVersionChangeError(
Database db, int oldVersion, int newVersion) async {
throw ArgumentError("can't change version from $oldVersion to $newVersion");
}