getDouble method

Future<double?> getDouble(
  1. String key
)

读取双精度浮点数

Implementation

Future<double?> getDouble(String key) async {
  final prefs = await _sharedPreferences;
  return prefs.getDouble(key);
}