OpenTokValue constructor

const OpenTokValue({
  1. ConnectionState state = open_tok.ConnectionState.loggedOut,
  2. bool audioEnabled = true,
  3. bool videoEnabled = true,
  4. String? errorDescription,
})

Constructs a OpenTokValue with the given values.

open_tok.ConnectionState is open_tok.ConnectionState.loggedOut by default. audioEnabled & videoEnabled are default to true.

Implementation

const OpenTokValue({
  this.state = open_tok.ConnectionState.loggedOut,
  this.audioEnabled = true,
  this.videoEnabled = true,
  this.errorDescription,
});