searchSuccessResponse<E> method
FeedbackResponse<E>
searchSuccessResponse<E>({
- required dynamic isPlural,
- required E result,
Creates a successful search FeedbackResponse
.
Define isPlural
to show the proper type of message.
Implementation
FeedbackResponse<E> searchSuccessResponse<E>({
required isPlural,
required E result,
}) =>
FeedbackResponse.success(
title: _feedbackConfig.searchSuccessTitle,
message: isPlural
? _feedbackConfig.searchSuccessPluralMessage
: _feedbackConfig.searchSuccessSingularMessage,
result: result,
);