By.name constructor Null safety

const By.name(
  1. String name
)

Returns an element whose NAME attribute matches the search value.

Implementation

const By.name(String name) : this('name', name);