setDouble method

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

存储双精度浮点数

Implementation

Future<bool> setDouble(String key, double value) async {
  final prefs = await _sharedPreferences;
  return prefs.setDouble(key, value);
}