PeerEvents<ErrorType extends String> constructor

PeerEvents<ErrorType extends String>({
  1. void open(
    1. String id
    )?,
  2. void connection(
    1. DataConnection dataConnection
    )?,
  3. void call(
    1. MediaConnection mediaConnection
    )?,
  4. void close()?,
  5. void disconnected(
    1. String currentId
    )?,
  6. void error(
    1. PeerError<String> error
    )?,
})

Implementation

PeerEvents({
  this.open,
  this.connection,
  this.call,
  this.close,
  this.disconnected,
  this.error,
}) : super(error: error);