InAppDeliveryStats class

Mutable counters used to evaluate InAppDeliveryPolicy decisions.

Constructors

InAppDeliveryStats({DateTime? lastShown, Map<String, int>? perDayCounts})
Creates a stats bucket, optionally seeded from persisted values.

Properties

hashCode int
The hash code for this object.
no setterinherited
lastShown DateTime?
Last time any message covered by these stats was shown.
getter/setter pair
perDayCounts Map<String, int>
Per-day delivery counts keyed by calendar day.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

countForDay(DateTime day) int
Returns the count recorded for the calendar day containing day.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(DateTime now) → void
Registers a successful display event.
toString() String
A string representation of this object.
inherited

Operators

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