getPath method
Reads a value from a nested map using path (e.g., "a.b.c").
Returns null if the path does not resolve to a value.
When parseIndices is true (default), bracketed indices are supported
(e.g., items[0].id).
Implementation
Object? getPath(
String path, {
String delimiter = '.',
bool parseIndices = true,
}) {
final segments = _splitPathSegments(
path,
delimiter,
parseIndices: parseIndices,
);
if (segments.isEmpty) return null;
return _getPathSegments(this, segments);
}