getElement method Null safety

WebElement getElement(
  1. String elementId,
  2. [SearchContext? context,
  3. dynamic locator,
  4. int? index]
)

Implementation

WebElement getElement(
  String elementId, [
  SearchContext? context,
  locator,
  int? index,
]) =>
    WebElement(
      this,
      _client,
      _handler,
      elementId,
      context,
      locator,
      index,
    );