By.xpath constructor Null safety

const By.xpath(
  1. String xpath
)

Returns an element matching an XPath expression.

Implementation

const By.xpath(String xpath) : this('xpath', xpath);