SuggestionsDataSource class abstract
Constructors
Properties
Methods
-
addNotifyToUpdateUser(
String suggestionId) → Future< void> - Subscribes the user to the status changes of the suggestion.
-
createComment(
CreateCommentModel comment) → Future< Comment> - Creates a comment.
-
createSuggestion(
CreateSuggestionModel suggestion) → Future< Suggestion> - Creates a suggestion.
-
deleteCommentById(
String commentId) → Future< void> -
deleteNotifyToUpdateUser(
String suggestionId) → Future< void> - Unsubscribes the user from the status changes of the suggestion.
-
deleteSuggestionById(
String suggestionId) → Future< void> -
downvote(
String suggestionId) → Future< void> - Takes away a vote from the suggestion, lowering its priority.
-
getAllComments(
String suggestionId) → Future< List< Comment> > -
getAllSuggestions(
) → Future< List< Suggestion> > -
getSuggestionById(
String suggestionId) → Future< Suggestion> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateSuggestion(
Suggestion suggestion) → Future< Suggestion> -
upvote(
String suggestionId) → Future< void> - Adds a vote to the suggestion, raising its priority.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited