Event constructor

Event(
  1. String type,
  2. [bool bubbles = false]
)

Creates an Event of specified type.

Implementation

Event(String type, [bool bubbles = false])
    : _type = type,
      _bubbles = bubbles;