getTitle function

String getTitle(
  1. String html
)

Implementation

String getTitle(String html) {
  final match = _titleRe.firstMatch(html);
  if (match == null) throw GarthException("Couldn't find title");
  return match.group(1)!;
}