MessageAnnotation constructor

MessageAnnotation({
  1. Iterable<AnnotatedMessagePart>? parts,
  2. bool? containEntities,
})

Implementation

factory MessageAnnotation({
  $core.Iterable<AnnotatedMessagePart>? parts,
  $core.bool? containEntities,
}) {
  final _result = create();
  if (parts != null) {
    _result.parts.addAll(parts);
  }
  if (containEntities != null) {
    _result.containEntities = containEntities;
  }
  return _result;
}