ProtectedApiOptions constructor
ProtectedApiOptions(
- String apiToken
Constructor initializes options with headers for protected API requests.
apiToken
- The authorization token for accessing protected endpoints.
Implementation
ProtectedApiOptions(String apiToken) {
super.options.headers = <String, dynamic>{
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': apiToken,
};
}