You can create a Post class as below:
Read moreHow do I add authorization header in GET request?
To send a GET request with a Bearer Token authorization header, you need to make an HTTP GET request and provide your Bearer Token with the Authorization: Bearer {token} HTTP header .
Read moreHow do I use Post API in flutter?
This recipe uses the following steps:
Read moreHow do I send a request in flutter?
Fetch and display the data with Flutter.
Read moreHow do you send information in a post request?
In the request:
Read moreHow do you send parameters in POST request flutter?
“flutter http post request with parameters” Code Answer’s
Read moreHow do you get API response in flutter?
Please follow below steps for HTTP API calling in flutter
Read more