-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1395ec8
commit dbefa73
Showing
5 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'package:dito_sdk/notification/notification_entity.dart'; | ||
import 'package:event_bus/event_bus.dart'; | ||
|
||
class MessageClickedEvent { | ||
DataPayload data; | ||
|
||
MessageClickedEvent(this.data); | ||
} | ||
|
||
class NotificationEvents { | ||
EventBus eventBus = EventBus(); | ||
|
||
static final NotificationEvents _instance = NotificationEvents._internal(); | ||
|
||
factory NotificationEvents() { | ||
return _instance; | ||
} | ||
|
||
EventBus get stream => eventBus; | ||
|
||
NotificationEvents._internal(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ environment: | |
dev_dependencies: | ||
melos: ^6.0.0 | ||
dependencies: | ||
event_bus: ^2.0.0 | ||
event_bus: 2.0.0 |