getFavicon method
Get favicon
Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.
This endpoint does not follow HTTP redirects.
Implementation
Future<Uint8List> getFavicon({required String url}) async {
const String apiPath = '/avatars/favicon';
final Map<String, dynamic> params = {
'url': url,
'project': client.config['project'],
};
final res = await client.call(HttpMethod.get,
path: apiPath, params: params, responseType: ResponseType.bytes);
return res.data;
}