factory UIEventInit({Window? view, int? detail}) => UIEventInit._(view: view ?? undefined, detail: detail ?? 0);