notification_action.dart 454 B

12345678910111213141516171819
  1. enum ActionType {
  2. openView,
  3. }
  4. /// A [NotificationAction] is used to communicate with the
  5. /// [NotificationActionBloc] to perform actions based on an event
  6. /// triggered by pressing a notification, such as opening a specific
  7. /// view and jumping to a specific block.
  8. ///
  9. class NotificationAction {
  10. const NotificationAction({
  11. this.type = ActionType.openView,
  12. required this.objectId,
  13. });
  14. final ActionType type;
  15. final String objectId;
  16. }