toggleHand method

Future<void> toggleHand(
  1. CallService service
)

Raises/lowers a hand of the authorized MyUser.

Implementation

Future<void> toggleHand(CallService service) {
  Log.debug('toggleHand()', '$runtimeType');

  // Toggle the hands of all the devices of the authenticated [MyUser].
  for (MapEntry<CallMemberId, CallMember> m in members.entries.where(
    (e) => e.key.userId == _me.userId,
  )) {
    m.value.isHandRaised.toggle();
  }
  return _toggleHand(service);
}