MBAppOpeningTrigger class

An app opening trigger that becomes true once the user has opened the app n times.

Inheritance

Constructors

MBAppOpeningTrigger({required String id, required int times})
Initializes an app opening trigger with the data provided.
MBAppOpeningTrigger.fromDictionary(Map<String, dynamic> dictionary)
Initializes an app opening trigger with the data of the dictionary returned by the APIs.
factory
MBAppOpeningTrigger.fromJsonDictionary(Map<String, dynamic> dictionary)
factory

Properties

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
times int
The number of times the user needs to open the app.
final
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.s
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