shouldShowRemoteCancelToast static method
bool
shouldShowRemoteCancelToast({
- required NECallTerminalCode reasonCode,
- required NECallRole callRole,
Implementation
static bool shouldShowRemoteCancelToast({
required NECallTerminalCode reasonCode,
required NECallRole callRole,
}) {
if (reasonCode == NECallTerminalCode.calleeCancel) {
return true;
}
return reasonCode == NECallTerminalCode.callerCancel &&
callRole == NECallRole.called;
}