CustomEvent constructor

CustomEvent(
  1. String type, [
  2. CustomEventInit? eventInitDict
])

Implementation

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