getMusic static method

Future<List<Song>> getMusic({
  1. int page = 1,
})

Implementation

static Future<List<Song>> getMusic({int page = 1}) async {
  String url = "https://ncs.io/music?page=$page";
  var document = await Chaleno().load(url);
  var songsElement = document?.querySelectorAll('div.col-lg-2.item');
  List<Song> songs = JustParser.parseDashboard(dashboard: songsElement);
  return songs;
}