SectionBloc class
Constructors
- SectionBloc({required GroupClient groupClient, required String sectionId, required SectionType type})
Properties
- client → SectionClient
-
finalinherited
-
controller
↔ ListController<
Post> -
getter/setter pair
-
feedStream
→ Stream<
List< Post> > -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
-
isLoadingmore
↔ ValueController<
bool> -
getter/setter pair
- isRefreshing ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionId → String
-
no setter
- type → SectionType
-
final
Methods
-
addAllPostFeed(
List< Post> posts) → void -
clearAllPostFeed(
List< String> feedGroups) → void -
Clear all PostFeed for the given
feedGroups
. -
clearPostFeed(
String feedGroup) → void -
Clear PostFeed for a given
feedGroup
. -
dispose(
) → void -
inherited
-
fetchSectionPost(
) → Future - Fetch post from server
-
getPostFeed(
String sectionId) → List< Post> ? -
getPostListStream(
String feedGroup) → Stream< List< ?Post> > -
initBloc(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAddPost(
{required String feedGroup, Map< String, String> ? data, required String verb, required String object, String? userId}) → Future<Post?> - Add an Post to the feed in a reactive way
-
onPostAction(
PostAction action) → void - {@template onAddPost}
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited