equals method Null safety

bool equals(
  1. WebElement other
)

Are these two elements the same underlying element in the DOM.

Implementation

bool equals(WebElement other) =>
    other is WebElement && other.driver == driver && other.id == id;