read<T> method

T? read<T>(
  1. String key
)

Read data from the Backpack with a key.

Implementation

T? read<T>(String key) {
  if (!_values.containsKey(key)) {
    return null;
  }
  return _values[key];
}