MBInactiveUserTrigger class

An inactive user trigger that becomes true when a user has been inactive for n days.

Inheritance

Constructors

MBInactiveUserTrigger({required String id, required int days})
Initializes an inactive user trigger with the data provided.
MBInactiveUserTrigger.fromDictionary(Map<String, dynamic> dictionary)
Initializes an inactive user trigger with the data of the dictionary returned by the APIs.
factory
MBInactiveUserTrigger.fromJsonDictionary(Map<String, dynamic> dictionary)
factory

Properties

days int
The number of days the user needs to stay inactive.
final
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
triggerType MBTriggerType
The type of trigger.
finalinherited

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
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.
inherited

Operators

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