get method

dynamic get(
  1. String key
)

Access a value. In most cases it is more convenient to use a helper function such as getString or getInteger.

Returns null if there is no such key.

Implementation

dynamic get(String key) {
  assert(isComplete, 'call `fetch` first to get data');

  if (!_data.containsKey(key)) {
    return null;
  }

  return _data[key];
}