src/Constraints/IsChecked.php
public function matches($crawler): bool
    {
        $crawler = $this->crawler($crawler);

        return ! is_null($this->field($crawler)->attr('checked'));
    }
public function matches($crawler): bool
    {
        $crawler = $this->crawler($crawler);

        return ! is_null($this->field($crawler)->attr('checked'));
    }
public function matches ( $ crawler ) : bool { $ crawler = $ this -> crawler ( $ crawler ) ; return ! is_null ( $ this -> field ( $ crawler ) -> attr ( 'checked' ) ) ; }
Determine if the checkbox is checked.

@param  \Symfony\Component\DomCrawler\Crawler|string  $crawler
@return bool
Determine if the checkbox is checked .