ReactionsManager class
Class to manage reactions.
This is only used internally within GenericFeedBloc
.
- Annotations
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
paginatedParams
→ Map<
String, NextParams?> -
A map of paginated results
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
String lookupValue, List< Reaction> temp) → void - Add given reactions to the correct controller.
-
addError(
String lookupValue, Object e, StackTrace stk) → void - Add error to the correct controller.
-
clearAllReactions(
List< String> lookupValues) → void -
clearReactions(
String lookupValue) → void - Clear reactions for a given lookupValue.
-
close(
) → void - Close all stream controllers.
-
getReactions(
String lookupValue, [Reaction? reaction]) → List< Reaction> - Convert the Stream of reactions to a List of reactions.
-
getStream(
String lookupValue, [String? kind]) → Stream< List< ?Reaction> > - Retrieve Stream of reactions with activityId and filter it if necessary
-
hasValue(
String lookupValue) → bool - Check if controller is not empty.
-
init(
String lookupValue) → void - Init controller for given lookupValue.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unshiftById(
String lookupValue, Reaction reaction, [ShiftType type = ShiftType.increment]) → void - Lookup latest Reactions by Id and inserts the given reaction to the beginning of the list.
-
update(
String lookupValue, List< Reaction> reactions) → void - Update controller value with given reactions.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited