TestEvent constructor

TestEvent({
  1. String? name,
  2. String? payload,
  3. String? from,
  4. String? to,
})

Implementation

factory TestEvent({
  $core.String? name,
  $core.String? payload,
  $core.String? from,
  $core.String? to,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (payload != null) {
    $result.payload = payload;
  }
  if (from != null) {
    $result.from = from;
  }
  if (to != null) {
    $result.to = to;
  }
  return $result;
}