setDatabaseName static method

Future<bool> setDatabaseName({
  1. required String databaseName,
  2. required SharedPreferences sharedPreferenceInstance,
})

Set database name into the shared preferences

Implementation

static Future<bool> setDatabaseName(
      {required String databaseName,
      required SharedPreferences sharedPreferenceInstance}) async {
    return sharedPreferenceInstance.setString('databaseName', databaseName);
  }