shouldShowRemoteCancelToast static method

bool shouldShowRemoteCancelToast({
  1. required NECallTerminalCode reasonCode,
  2. 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;
}