updateSuccessResponse<E> method
FeedbackResponse<E>
updateSuccessResponse<E>({
- required dynamic isPlural,
- required E result,
Creates a successful update FeedbackResponse
.
Define isPlural
to show the proper type of message.
Implementation
FeedbackResponse<E> updateSuccessResponse<E>({
required isPlural,
required E result,
}) =>
FeedbackResponse.success(
title: _feedbackConfig.updateSuccessTitle,
message: isPlural
? _feedbackConfig.updateSuccessPluralMessage
: _feedbackConfig.updateSuccessSingularMessage,
result: result,
);