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 dynamic isPlural}) → FeedbackResponse< E> -
Creates a failed 'create'
FeedbackResponse
. -
createSuccessResponse<
E> ({required dynamic isPlural, required E result}) → FeedbackResponse< E> -
Creates a successful 'create'
FeedbackResponse
with aresult
. -
deleteFailedResponse<
E> ({required dynamic isPlural}) → FeedbackResponse< E> -
Creates a failed delete
FeedbackResponse
. -
deleteSuccessResponse(
{required dynamic 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 dynamic isPlural}) → FeedbackResponse< E> -
Creates a failed search
FeedbackResponse
. -
searchSuccessResponse<
E> ({required dynamic isPlural, required E result}) → FeedbackResponse< E> -
Creates a successful search
FeedbackResponse
. -
toString(
) → String -
A string representation of this object.
inherited
-
updateFailedResponse<
E> ({required dynamic isPlural}) → FeedbackResponse< E> -
Creates a failed update
FeedbackResponse
. -
updateSuccessResponse<
E> ({required dynamic isPlural, required E result}) → FeedbackResponse< E> -
Creates a successful update
FeedbackResponse
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited