StreamData constructor

StreamData({
  1. Stream? stream,
  2. UserPresence? sender,
  3. String? data,
  4. bool? reliable,
})

Implementation

factory StreamData({
  Stream? stream,
  UserPresence? sender,
  $core.String? data,
  $core.bool? reliable,
}) {
  final _result = create();
  if (stream != null) {
    _result.stream = stream;
  }
  if (sender != null) {
    _result.sender = sender;
  }
  if (data != null) {
    _result.data = data;
  }
  if (reliable != null) {
    _result.reliable = reliable;
  }
  return _result;
}