By.id constructor Null safety
- String id
Returns an element whose ID attribute matches the search value.
Implementation
const By.id(String id) : this('id', id);
Returns an element whose ID attribute matches the search value.
const By.id(String id) : this('id', id);