@@ -5,13 +5,13 @@ class UnityEvent<T> {
55 final int unityId;
66
77 /// The value wrapped by this event
8- final T value;
8+ final T ? value;
99
1010 /// Build a Unity Event, that relates a mapId with a given value.
1111 ///
1212 /// The `unityId` is the id of the map that triggered the event.
1313 /// `value` may be `null` in events that don't transport any meaningful data.
14- UnityEvent (this .unityId, this .value);
14+ UnityEvent (this .unityId, [ this .value] );
1515}
1616
1717class UnitySceneLoadedEvent extends UnityEvent <SceneLoaded ?> {
@@ -20,15 +20,15 @@ class UnitySceneLoadedEvent extends UnityEvent<SceneLoaded?> {
2020}
2121
2222class UnityLoadedEvent extends UnityEvent <void > {
23- UnityLoadedEvent (int unityId, void value ) : super (unityId, value );
23+ UnityLoadedEvent (int unityId) : super (unityId);
2424}
2525
2626class UnityUnLoadedEvent extends UnityEvent <void > {
27- UnityUnLoadedEvent (int unityId, void value ) : super (unityId, value );
27+ UnityUnLoadedEvent (int unityId) : super (unityId);
2828}
2929
3030class UnityCreatedEvent extends UnityEvent <void > {
31- UnityCreatedEvent (int unityId, void value ) : super (unityId, value );
31+ UnityCreatedEvent (int unityId) : super (unityId);
3232}
3333
3434class UnityMessageEvent extends UnityEvent <dynamic > {
0 commit comments