StringEvent constructor

StringEvent({
  1. String? type,
  2. Iterable<Attribute>? attributes,
})

Implementation

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