SecurityPolicyViolationEventInit constructor
SecurityPolicyViolationEventInit({})
Implementation
factory SecurityPolicyViolationEventInit(
{required String documentURI,
String? referrer,
String? blockedURI,
String? violatedDirective,
String? effectiveDirective,
String? originalPolicy,
String? sourceFile,
String? sample,
SecurityPolicyViolationEventDisposition? disposition,
int? statusCode,
int? lineNumber,
int? columnNumber}) =>
SecurityPolicyViolationEventInit._(
documentURI: documentURI,
referrer: referrer ?? '',
blockedURI: blockedURI ?? '',
violatedDirective: violatedDirective ?? undefined,
effectiveDirective: effectiveDirective ?? undefined,
originalPolicy: originalPolicy ?? undefined,
sourceFile: sourceFile ?? '',
sample: sample ?? '',
disposition: disposition?.value ?? undefined,
statusCode: statusCode ?? undefined,
lineNumber: lineNumber ?? 0,
columnNumber: columnNumber ?? 0);