requestUrl function
Implementation
Future requestUrl(String postBody) async {
Uri url = Uri.parse("https://api.resend.com/emails");
final response = await http.post(
url,
headers: {
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": "Bearer ${Resend.instance.apiKey}",
},
body: postBody,
);
if (response.statusCode == 200) {
return true;
} else {
return false;
}
}