canUseDispatchEvent property

bool canUseDispatchEvent

Implementation

static bool get canUseDispatchEvent => JS(
    'bool',
    '(typeof document.body.dispatchEvent == "function")'
        '&& document.body.dispatchEvent.length > 0');