TestRequiredMessage constructor

TestRequiredMessage({
  1. TestRequired? optionalMessage,
  2. Iterable<TestRequired>? repeatedMessage,
  3. TestRequired? requiredMessage,
})

Implementation

factory TestRequiredMessage({
  TestRequired? optionalMessage,
  $core.Iterable<TestRequired>? repeatedMessage,
  TestRequired? requiredMessage,
}) {
  final _result = create();
  if (optionalMessage != null) {
    _result.optionalMessage = optionalMessage;
  }
  if (repeatedMessage != null) {
    _result.repeatedMessage.addAll(repeatedMessage);
  }
  if (requiredMessage != null) {
    _result.requiredMessage = requiredMessage;
  }
  return _result;
}