setDouble method

Future<bool> setDouble(
  1. String key,
  2. double value, {
  3. Duration? expiration,
})

Implementation

Future<bool> setDouble(
  String key,
  double value, {
  Duration? expiration,
}) async {
  if (!await _setExpiration(key, expiration)) return false;
  return sp.setDouble(key, value);
}