onTerminated method
Handle terminated state, allows to display reason of call end during short time
Implementation
void onTerminated(int statusCode, String reason) {
_response = reason.isNotEmpty ? reason : statusCode.toString();
_state = CallState.terminated;
notifyListeners();
}