finalResponse property
Response?
get
finalResponse
Returns the final response if this is a completion event.
Implementation
Response? get finalResponse {
if (this is ResponseCompletedEvent) {
return (this as ResponseCompletedEvent).response;
}
if (this is ResponseFailedEvent) {
return (this as ResponseFailedEvent).response;
}
if (this is ResponseIncompleteEvent) {
return (this as ResponseIncompleteEvent).response;
}
return null;
}