data library

Functions

getBool(String key) Future<bool>
getBool return boolean value from data
getDouble(String key) Future<double>
getDouble return double value from data
getInt(String key) Future<int>
getInt return int value from data
getMap(String key) Future<Map<String, dynamic>>
getMap return map from data
getString(String key) Future<String>
getString return string value from data
getStringList(String key) Future<List<String>>
getStringList return string list from data
mockInit(Map<String, dynamic> values) → void
mockInit Initializes the value for testing
setBool(String key, bool value) Future<void>
setBool set boolean value to data, If value is null, this is equivalent to calling remove() on the key.
setDouble(String key, double value) Future<void>
setDouble set double value to data, If value is null, this is equivalent to calling remove() on the key.
setInt(String key, int value) Future<void>
setInt set int value to data, If value is null, this is equivalent to calling remove() on the key.
setMap(String key, Map<String, dynamic> map) Future<void>
setMap set string map to data, If value is null, this is equivalent to calling remove() on the key.
setString(String key, String value) Future<void>
setString set string value to data, If value is null, this is equivalent to calling remove() on the key.
setStringList(String key, List<String> value) Future<void>
setStringList set string list to data, If value is null, this is equivalent to calling remove() on the key.

Exceptions / Errors

DataException