validate method

bool validate(
  1. String html
)

Validates that this selector can find elements in the given HTML

Implementation

bool validate(String html) {
  final results = extract(html);
  return results.isNotEmpty;
}