ViewPref class

Constructors

ViewPref.getInstance()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
logMap ↔ Map<String, Map<String, dynamic>>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionLogMap ↔ Map<String, bool>
getter/setter pair

Methods

createLogMap(String key) → Future<void>
isClickThresholdCrossed(Map<String, dynamic> viewJson) → bool
isTimestampUpdated(String key, int newUpdatedTimestamp) → Future<bool>
isViewFrequencyCrossed(Map<String, dynamic> viewJson) → bool
loadData() → Future<List<Map<String, dynamic>>>
logClicks(Map<String, dynamic> viewJson) → Future<void>
logViews(Map<String, dynamic> viewJson) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveData(List<Map<String, dynamic>> dataList) → void
toString() → String
A string representation of this object.
inherited

Operators

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