extractSingle method

String? extractSingle(
  1. String html
)

Extracts a single value from the given HTML using this selector

Implementation

String? extractSingle(String html) {
  final results = extract(html);
  return results.isNotEmpty ? results.first : null;
}