center method

void center(
  1. Participant participant
)

Centers the participant, which means focusing the participant and unfocusing every participant in focused.

Implementation

void center(Participant participant) {
  paneled.remove(participant);
  locals.remove(participant);
  remotes.remove(participant);
  focused.remove(participant);

  for (Participant r in List.from(focused, growable: false)) {
    _putVideoFrom(r, focused);
  }

  focused.add(participant);
  _ensureCorrectGrouping();
}