Event constructor

Event({
  1. String? type,
  2. Iterable<EventAttribute>? attributes,
})

Implementation

factory Event({
  $core.String? type,
  $core.Iterable<EventAttribute>? attributes,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (attributes != null) {
    _result.attributes.addAll(attributes);
  }
  return _result;
}