putDouble static method

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

添加double类型数据 keyvalue

Implementation

static Future<void> putDouble(String key, double value) async {
  _println('putDouble', key, value);
  SharedPreferences prefs = await SharedPreferences.getInstance();
  prefs.setDouble(key, value);
}