getDouble static method

double getDouble(
  1. String key, {
  2. double defValue = 0.0,
})

get double. 获取sp中key的double值

Implementation

static double getDouble(String key, {double defValue = 0.0}) =>
    _prefs.getDouble(key) ?? defValue;