getValueById method
TVal?
getValueById(
- TKey? key, {
- TVal? defaultValue,
Gets the value based on the key
Implementation
TVal? getValueById(TKey? key, {TVal? defaultValue}) {
if (key == null) {
return null;
}
return dataBox.get(key, defaultValue: defaultValue);
}