canUseDispatchEvent property

bool get canUseDispatchEvent

Implementation

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