Open alevinetx opened 2 years ago
version: 0.3.2-null-safety
In CacheProvider, all setX methods have an optional parameter for defaultValue.
CacheProvider
setX
defaultValue
Future<void> setInt(String key, int? value, {int? defaultValue}); Future<void> setString(String key, String? value, {String? defaultValue}); Future<void> setDouble(String key, double? value, {double? defaultValue}); Future<void> setBool(String key, bool? value, {bool? defaultValue});
Is this intentional, instead of placing them on getX? If so, what's the intended purpose? I don't see it being used in the provided example.
getX
Thank you !
version: 0.3.2-null-safety
In
CacheProvider
, allsetX
methods have an optional parameter fordefaultValue
.Is this intentional, instead of placing them on
getX
? If so, what's the intended purpose? I don't see it being used in the provided example.Thank you !