ExtendableMessageEventInit constructor

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

Implementation

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