equals method Null safety

Future<bool> equals(
  1. WebElement other
)

Implementation

Future<bool> equals(WebElement other) async =>
    other.driver == driver && other.id == id;