setDouble function

  1. @Deprecated('Use setValue instead')
Future<bool> setDouble(
  1. String key,
  2. double value
)

add a Double in SharedPref

Implementation

@Deprecated('Use setValue instead')
Future<bool> setDouble(String key, double value) async {
  return await getSharedPref().then((pref) async {
    return await pref.setDouble(key, value);
  });
}