make new Dart Analyzer happy
some internal refactoring for EventDispatcher