ResponseGenerator class
Used to create and fetch FeedbackResponse's based on a FeedbackConfig.
Constructors
- ResponseGenerator({required FeedbackConfig feedbackConfig})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createFailedResponse<
E> ({required bool isPlural}) → FeedbackResponse< E> -
Creates a failed 'create'
FeedbackResponse. -
createSuccessResponse<
E> ({required bool isPlural, required E result}) → FeedbackResponse< E> -
Creates a successful 'create'
FeedbackResponsewith aresult. -
deleteFailedResponse<
E> ({required bool isPlural}) → FeedbackResponse< E> -
Creates a failed delete
FeedbackResponse. -
deleteSuccessResponse(
{required bool isPlural}) → FeedbackResponse< void> -
Creates a successful update
FeedbackResponse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchFailedResponse<
E> ({required bool isPlural}) → FeedbackResponse< E> -
Creates a failed search
FeedbackResponse. -
searchSuccessResponse<
E> ({required bool isPlural, required E result}) → FeedbackResponse< E> -
Creates a successful search
FeedbackResponse. -
toString(
) → String -
A string representation of this object.
inherited
-
updateFailedResponse<
E> ({required bool isPlural}) → FeedbackResponse< E> -
Creates a failed update
FeedbackResponse. -
updateSuccessResponse<
E> ({required bool isPlural, required E result}) → FeedbackResponse< E> -
Creates a successful update
FeedbackResponse.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited