clear method

void clear()

Clear all stream information and reset to default values.

This method resets all notifiers to their initial state.

Implementation

void clear() {
  camera.value = false;
  microphone.value = false;
  stateNotifier.value = ZegoPlayerState.NoPlay;
  viewIDNotifier.value = -1;
  viewNotifier.value = null;
  viewSizeNotifier.value = const Size(360, 640);
}