savedDoubleValue static method

Future<bool> savedDoubleValue(
  1. String key,
  2. double value
)

saveIntValue Save int value to SharedPreferences

  • Param value The value to save
  • Param key The key to save the value

Implementation

static Future<bool> savedDoubleValue(String key, double value) async {
  final preferences = await SharedPreferences.getInstance();
  return preferences.setDouble(key, value);
}