FeedbackResponse<T extends Object?>.error constructor

FeedbackResponse<T extends Object?>.error({
  1. String? title,
  2. String? message,
  3. T? result,
  4. FeedbackLevel feedbackLevel = FeedbackLevel.error,
  5. FeedbackType feedbackType = FeedbackType.notification,
})

Used to create an error response with a dialog type of feedback.

Implementation

factory FeedbackResponse.error({
  String? title,
  String? message,
  T? result,
  FeedbackLevel feedbackLevel = FeedbackLevel.error,
  FeedbackType feedbackType = FeedbackType.notification,
}) =>
    FeedbackResponse(
      feedbackLevel: feedbackLevel,
      title: title,
      message: message,
      feedbackType: feedbackType,
      result: result,
    );