Add option to pass the path as string There could be a map key or a list index ```dart mapPath(map1, "[a][b][c][d][0][name]"); ```