Result constructor

Result({
  1. List<int>? data,
  2. String? log,
  3. Iterable<Event>? events,
})

Implementation

factory Result({
  $core.List<$core.int>? data,
  $core.String? log,
  $core.Iterable<$0.Event>? events,
}) {
  final _result = create();
  if (data != null) {
    _result.data = data;
  }
  if (log != null) {
    _result.log = log;
  }
  if (events != null) {
    _result.events.addAll(events);
  }
  return _result;
}