parent property Null safety

WebElement? parent

Implementation

WebElement? get parent {
  final parentId = _parentId;
  if (parentId == null) {
    return null;
  }
  return WebElement(
    driver,
    _client,
    _handler,
    parentId,
  );
}