Skip to content

Commit

Permalink
Support null safety on 2.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Mar 10, 2021
1 parent f7990e8 commit 84ae76e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.0-beta.1-nullsafety.0

Support null safety on 2.0.0-beta

## 2.0.0-beta.1

**Bug fix:**
Expand Down
6 changes: 4 additions & 2 deletions lib/src/util/event_emitter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ class EventEmitter {
/**
* Mapping of events to a list of event handlers
*/
Map<String, List<EventHandler>> _events = new HashMap<String, List<EventHandler>>();
Map<String, List<EventHandler>> _events =
new HashMap<String, List<EventHandler>>();

/**
* Mapping of events to a list of one-time event handlers
*/
Map<String, List<EventHandler>> _eventsOnce = new HashMap<String, List<EventHandler>>();
Map<String, List<EventHandler>> _eventsOnce =
new HashMap<String, List<EventHandler>>();

/**
* Constructor
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: socket_io_common
description: Socket.io common parser library.
version: 2.0.0-beta-nullsafety.0
version: 2.0.0-beta.1-nullsafety.0
homepage: https://www.zkoss.org
repository: https://github.com/rikulo/socket_io_common
issue_tracker: https://github.com/rikulo/socket_io_common/issues
Expand Down

0 comments on commit 84ae76e

Please sign in to comment.