setDouble static method

Future setDouble({
  1. required String key,
  2. required double value,
})

Implementation

static Future setDouble({required String key, required double value}) async {
  final SharedPreferences sharedPreferences =
      await SharedPreferences.getInstance();
  await sharedPreferences.setDouble(key, value);
}