removeDatabaseName static method

Future<void> removeDatabaseName({
  1. Future<SharedPreferences>? sharedPreferenceInstance,
})

Implementation

static Future<void> removeDatabaseName(
    {Future<SharedPreferences>? sharedPreferenceInstance}) async {
  SharedPreferences prefs =
      await (sharedPreferenceInstance ?? SharedPreferences.getInstance());
  await prefs.remove('databaseName');
}