putDouble static method

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

put double. 存储sp中key的double值

Implementation

static Future<bool>? putDouble(String key, double value) {
  if (_prefs == null) {
    return null;
  }
  return _prefs?.setDouble(key, value);
}