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

Creates an Event of specified type.

Source

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