MessageEventInit constructor

MessageEventInit({
  1. dynamic data,
  2. String? origin,
  3. String? lastEventId,
  4. dynamic source,
  5. Iterable<MessagePort>? ports,
})

Implementation

factory MessageEventInit(
        {dynamic data,
        String? origin,
        String? lastEventId,
        dynamic source,
        Iterable<MessagePort>? ports}) =>
    MessageEventInit._(
        data: data ?? undefined,
        origin: origin ?? '',
        lastEventId: lastEventId ?? '',
        source: source ?? undefined,
        ports: ports ?? const []);