getValueById method

TVal? getValueById(
  1. TKey? key, {
  2. 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);
}