get method

Future<Perfume?> get(
  1. PerfumeRef ref
)

Implementation

Future<Perfume?> get(PerfumeRef ref) async {
  String url = "$baseUrl/perfume/${ref.id}";
  var request = await dio.request(url);
  BeautifulSoup bs = BeautifulSoup(request.data);
  return extractPerfume(bs, ref);
}