updateSuccessResponse<E> method

FeedbackResponse<E> updateSuccessResponse<E>({
  1. required dynamic isPlural,
  2. 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,
    );