MinimumDaysCondition class

The minimum days condition.

Inheritance

Constructors

MinimumDaysCondition({required int minDays, required int remindDays})
Creates a new minimum days condition instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
isMet bool
Whether this condition is met.
no setteroverride
minDays int
Minimum days before being able to show the dialog.
final
minimumDate DateTime
The minimum date required to meet this condition.
getter/setter pair
remindDays int
Days to add to the base date when the user clicks on "Maybe later".
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valuesAsString String
Gets the condition values in a readable string.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEventOccurred(RateMyAppEventType eventType) bool
Triggered when an even occurs in the plugin lifecycle. Return true to save the shared preferences, false otherwise.
override
readFromPreferences(SharedPreferences preferences, String preferencesPrefix) → void
Reads the condition values from the specified shared preferences.
override
reset() → void
Resets the condition values.
override
saveToPreferences(SharedPreferences preferences, String preferencesPrefix) Future<void>
Saves the condition values to the specified shared preferences.
override
toString() String
A string representation of this object.
inherited

Operators

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