updateFailedResponse<E> method
FeedbackResponse<E>
updateFailedResponse<E>({
- required dynamic isPlural,
Creates a failed update FeedbackResponse
.
Define isPlural
to show the proper type of message.
Implementation
FeedbackResponse<E> updateFailedResponse<E>({
required isPlural,
}) =>
FeedbackResponse.error(
title: _feedbackConfig.updateFailedTitle,
message: isPlural
? _feedbackConfig.updateFailedPluralMessage
: _feedbackConfig.updateFailedSingularMessage,
);