PostUtilities class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
areLikelyDuplicates (Post a , Post b , {int timeThresholdMs = 120000 })
→ bool
Determines if two posts appear to be duplicates based on owner, media, caption, and timing.
deduplicatePosts (Iterable <Post > posts , {int timeThresholdMs = 120000 })
→ List <Post >
Filters a list of posts, removing likely duplicate posts while preserving order.
If a duplicate is found, the one with more engagement (likes/comments) is preserved.
deduplicatePostsMap (Map <String , Post > postsMap , {int timeThresholdMs = 120000 })
→ Map <String , Post >
Deduplicates a Map<String, Post>