Event constructor

Event(
  1. String type, [
  2. EventInit? eventInitDict
])

Implementation

factory Event(String type, [EventInit? eventInitDict]) =>
    Event._(type, eventInitDict ?? undefined);