MBTagChangeTrigger class
A tag change trigger that becomes true when a tag changes its value.
Constructors
- MBTagChangeTrigger({required String id, required String tag, required String value, required MBTagChangeOperator tagChangeOperator})
- Initializes a tag change trigger with the data provided.
-
MBTagChangeTrigger.fromDictionary(Map<
String, dynamic> dictionary) -
Initializes a tag change trigger with the data of the dictionary returned by the APIs.
factory
-
MBTagChangeTrigger.fromJsonDictionary(Map<
String, dynamic> dictionary) -
factory
Properties
- completionDate ↔ DateTime?
-
The date of completion of this trigger.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id of the trigger.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
The tag that needs to change.
final
- tagChangeOperator → MBTagChangeOperator
-
The operator, it describe if the value needs to be equal or different.
final
- triggerType → MBTriggerType
-
The type of trigger.
finalinherited
- value → String
-
The value of the tag.
final
Methods
-
isValid(
bool fromAppStartup) → Future< bool> -
If the trigger is valid or not.
@param fromAppStartup If the check has been triggered at the app startup
@returns If the trigger is valid or not.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
tagChanged(
String tag, String? value) → MBTriggerChangedStatus - Function called when a tag changes its value. @param tag The tag that has changed. @param value The new value of the tag. @returns The new trigger status (unchanged, valid, invalid).
-
toJsonDictionary(
) → Map< String, dynamic> -
Converts the trigger to a JSON dictionary.
@returns The JSON representation of the trigger.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updatedTrigger(
MBTrigger newTrigger) → MBTrigger -
Updates the trigger with the new info; by defaults no action is done.
@param newTrigger The new trigger from which info will be copied.
@returns The updated trigger.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited