Easy registration and notification of events in Dart