createSuggestion abstract method

Future<Suggestion> createSuggestion(
  1. CreateSuggestionModel suggestion
)

Creates a suggestion.

Uses a CreateSuggestionModel type parameter, which does not have an id field. A Suggestion type contains the id generated by the database.

Implementation

Future<Suggestion> createSuggestion(CreateSuggestionModel suggestion);