FeedbackResponseInterface<T extends Object?, N extends Enum, F extends Enum> class abstract

Used to create your own FeedbackResponse in case feedbackLevel and feedbackType are not sufficient.

Implementers

Constructors

FeedbackResponseInterface({required N feedbackLevel, required F feedbackType, String? title, String? message, T? result})

Properties

feedbackLevel → N
Used to determine the feedback level/notification level towards the user.
final
feedbackType → F
Used to determine the feedback type/notification type towards the user.
final
hasError bool
Indicates whether the response has an error.
no setter
hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
Indicates whether the response is a successful.
no setter
message String?
Used to provide a message for the type of feedback.
final
result → T?
Used to provide a result.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Used to provide a title for the type of feedback.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resultAsType<E>() → E
Parses the response to any desired type of E.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited