StreamWithAnnotation constructor

StreamWithAnnotation({
  1. String? stream,
  2. Iterable<StreamAnnotation>? applicationAnnotations,
  3. Iterable<StreamWithAnnotation_NodeAnnotation>? nodeAnnotations,
})

Implementation

factory StreamWithAnnotation({
  $core.String? stream,
  $core.Iterable<StreamAnnotation>? applicationAnnotations,
  $core.Iterable<StreamWithAnnotation_NodeAnnotation>? nodeAnnotations,
}) {
  final $result = create();
  if (stream != null) {
    $result.stream = stream;
  }
  if (applicationAnnotations != null) {
    $result.applicationAnnotations.addAll(applicationAnnotations);
  }
  if (nodeAnnotations != null) {
    $result.nodeAnnotations.addAll(nodeAnnotations);
  }
  return $result;
}