Changed the name of event to prevent conflicts with the dart core.