Distribution_Exemplar constructor Null safety

Distribution_Exemplar(
  1. {double? value,
  2. Timestamp? timestamp,
  3. Iterable<Any>? attachments}
)

Implementation

factory Distribution_Exemplar({
  $core.double? value,
  $4.Timestamp? timestamp,
  $core.Iterable<$5.Any>? attachments,
}) {
  final _result = create();
  if (value != null) {
    _result.value = value;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (attachments != null) {
    _result.attachments.addAll(attachments);
  }
  return _result;
}