get method

T? get(
  1. String path
)

Returns the value for the given path.

Implementation

T? get(String path) {
  if (_store.isEmpty) {
    return null;
  }

  final segments = path.split(delimiter);
  return _getNode(
    _store,
    segments.isEmpty ? segments : segments.sublist(0, segments.length - 1),
    0,
  )?[_values]?[segments.last];
}