LoggerResponse constructor

LoggerResponse({
  1. Log? log,
  2. Iterable<Log>? logs,
  3. LoggerConfig? config,
  4. Sum? sum,
})

Implementation

factory LoggerResponse({
  Log? log,
  $core.Iterable<Log>? logs,
  LoggerConfig? config,
  Sum? sum,
}) {
  final _result = create();
  if (log != null) {
    _result.log = log;
  }
  if (logs != null) {
    _result.logs.addAll(logs);
  }
  if (config != null) {
    _result.config = config;
  }
  if (sum != null) {
    _result.sum = sum;
  }
  return _result;
}