searchFailedResponse<E> method
FeedbackResponse<E>
searchFailedResponse<E>({
- required dynamic isPlural,
Creates a failed search FeedbackResponse
.
Define isPlural
to show the proper type of message.
Implementation
FeedbackResponse<E> searchFailedResponse<E>({
required isPlural,
}) =>
FeedbackResponse.error(
title: _feedbackConfig.searchFailedTitle,
message: isPlural
? _feedbackConfig.searchFailedPluralMessage
: _feedbackConfig.searchFailedSingularMessage,
);