getDouble function
- @Deprecated('Use getDoubleAsync instead without using await')
- String key, {
- dynamic defaultValue = 0.0,
Returns a Double if exists in SharedPref
Implementation
@Deprecated('Use getDoubleAsync instead without using await')
Future<double> getDouble(String key, {defaultValue = 0.0}) async {
return await getSharedPref().then((pref) {
return pref.getDouble(key) ?? defaultValue;
});
}