Creates an Event of specified type.
type
Event(String type, [bool bubbles = false]) : _type = type, _bubbles = bubbles;