ActivityState class

An observable state object that manages the current state of an activity.

Maintains the current activity data, comments, and poll information for comprehensive activity management and real-time updates.

Annotations
  • @freezed

Constructors

ActivityState({ActivityData? activity, List<CommentData> comments = const [], PaginationData? commentsPagination})
const

Properties

activity ActivityData?
The current activity data.
final
canLoadMoreComments bool
Indicates whether there are more comments available to load.
no setter
comments List<CommentData>
The comments associated with this activity.
final
commentsPagination PaginationData?
Pagination information for comments.
final
copyWith → $ActivityStateCopyWith<ActivityState>
Create a copy of ActivityState with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
poll PollData?
The poll associated with this activity, if any.
no setter
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