SecurityPolicyViolationEventInit constructor

SecurityPolicyViolationEventInit({
  1. required String documentURI,
  2. String? referrer,
  3. String? blockedURI,
  4. String? violatedDirective,
  5. String? effectiveDirective,
  6. String? originalPolicy,
  7. String? sourceFile,
  8. String? sample,
  9. SecurityPolicyViolationEventDisposition? disposition,
  10. int? statusCode,
  11. int? lineNumber,
  12. int? columnNumber,
})

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);