createFailedResponse<E> method

FeedbackResponse<E> createFailedResponse<E>({
  1. required dynamic isPlural,
})

Creates a failed 'create' FeedbackResponse.

Define isPlural to show the proper type of message.

Implementation

FeedbackResponse<E> createFailedResponse<E>({
  required isPlural,
}) =>
    FeedbackResponse.error(
      title: _feedbackConfig.createFailedTitle,
      message: isPlural
          ? _feedbackConfig.createFailedPluralMessage
          : _feedbackConfig.createFailedSingularMessage,
    );