equals method Null safety

Future<bool> equals(
  1. WebElement other
)

Implementation

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