parse method

Future<String> parse(
  1. String slug
)

Implementation

Future<String> parse(String slug) async {
  final response = await _dio.get('/');
  final document = html.parse(response.data.toString());

  final anchors = document.querySelectorAll('title');
  return anchors[0].text;
}