MBMessageTriggers class

This class represents the triggers of a message.

Constructors

MBMessageTriggers({required MBMessageTriggersMethod method, required List<MBTrigger> triggers})
Initialized triggers for a message with the data passed.
MBMessageTriggers.fromDictionary(Map<String, dynamic> dictionary)
Initializes message triggers with the data of the dictionary returned by the APIs.
factory
MBMessageTriggers.fromJsonDictionary(Map<String, dynamic> dictionary)
Creates and initializes the trigger with a saved JSON dictionary.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
method MBMessageTriggersMethod
The method to check the messages.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggers List<MBTrigger>
The list of triggers.
getter/setter pair

Methods

isValid(bool fromAppStartup) Future<bool>
If the trigger is valid, based on the triggers method and all the triggers. @param fromAppStartup If the check has been triggered at startup. @returns If the trigger is valid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJsonDictionary() Map<String, dynamic>
Converts the trigger object to a JSON map.
toString() String
A string representation of this object.
inherited
updateTriggers(MBMessageTriggers newTriggers) → void
Updates all the triggers with the new triggers, this function is called by the manager after new messages are received to update values of triggers if necessary.

Operators

operator ==(Object other) bool
The equality operator.
inherited