startsWith method

bool startsWith(
  1. JsonPath otherPath
)

Whether this path starts with another JsonPath instance.

Implementation

bool startsWith(JsonPath otherPath) {
  return path.startsWith(otherPath.path);
}