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