UserEvent constructor Null safety

UserEvent()