setHeadersCallback method
Sets a callback that will be called before each request to add headers
headersCallback
- A function that returns a map of headers to add to each request
Implementation
void setHeadersCallback(Future<Map<String, String>> Function() headersCallback) {
PlexNetworking.instance.addHeaders = headersCallback;
}