RemotePeer constructor

RemotePeer({
  1. required String peerId,
  2. String? metadata,
  3. String? role,
})

Implementation

RemotePeer({
  required this.peerId,
  String? metadata,
  String? role,
}) {
  metadata = metadata ?? '{}';
  this.metadata = metadata;
  _role = role;
}