update method
Implementation
void update(Call? call) {
if (call?.callId != _callId) {
_callId = call?.callId;
_presented = false;
}
_presentable =
call != null &&
call.state != CallState.incoming &&
call.state != CallState.ended;
if (!_presentable) {
_set(CallPresentation.hidden);
} else if (!_presented) {
_presented = true;
_set(CallPresentation.expanded);
}
}