PostUtilities class

Constructors

PostUtilities()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
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>