setResponseStatusCode method
Returns the statusCode
of the response, if one was received.
If a response was received, this should be an integer. If an error occurred, and a response was not received, this should not be called.
Method might throw Exception.
Implementation
Future<RequestTracker> setResponseStatusCode(int statusCode) async {
try {
final args = {"id": id, "statusCode": statusCode};
await channel.invokeMethod<void>('setRequestTrackerStatusCode', args);
return this;
} on PlatformException catch (e) {
throw Exception(e.details);
}
}