RelevaNotificationAction class
Structured representation of a push notification tap action.
Passed to the onNotificationTapped callback with all navigation-related
fields already parsed from the raw FCM data payload.
Constructors
-
RelevaNotificationAction({String? target, String? screen, String? url, Map<
String, dynamic> parameters = const {}}) -
RelevaNotificationAction.fromData(Map<
String, dynamic> data) -
Parse a raw FCM data payload into a structured action.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
parameters
→ Map<
String, dynamic> -
Parsed key-value parameters for screen navigation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screen → String?
-
App-defined screen name (e.g., '/product'). Set when target is 'screen'.
This is a free-form value configured by the app developer in the Releva dashboard.
final
- target → String?
-
Navigation target type: 'screen', 'url', 'inbox', or null (main screen).
final
- url → String?
-
URL to open. Set when target is 'url'.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override