FeedbackScreen class

Inheritance

Constructors

FeedbackScreen({Key? key, required String screenShotPath, required String feedbackFooterText, required String reportType, String? fromEmail = '', required VoidCallback onFeedbackSubmissionStarted, required dynamic onFeedbackSubmitted(bool result), required bool isEmailEditable, required String userId})
FeedbackScreen as StatefulWidget for creating thr feedback screen UI.
const

Properties

feedbackFooterText String
feedbackFooterText is a text shown at the bottom of the FeedbackScreen which explains user how you will use the feedback.
final
fromEmail String?
fromEmail is a optional parameter which is used to set default email address before navigating to the FeedbackScreen. Usually the email can be obtained by FirebaseAuth
final
hashCode int
The hash code for this object.
no setterinherited
isEmailEditable bool
isEmailEditable is a parameter used to allow user to edit his email after entering to the FeedbackScreen
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onFeedbackSubmissionStarted VoidCallback
onFeedbackSubmissionStarted is used to do some activity when the Send Feedback button is clicked. You can show some message, dialogs or any other thing.
final
onFeedbackSubmitted → dynamic Function(bool result)
onFeedbackSubmitted is used to do something after the feedback is submitted or any error occurs while submitting the feedback. It returns a bool value. true if submission is successful and false is submission is unsuccessful.
final
reportType String
reportType is a parameter which describes how the report was generated. It is either 'System initiated report' or 'User initiated report'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenShotPath String
screenShotPath set the path where the screenshot image is saved. Generally, automatically saved by FeedbackScreen class if it is used.
final
userId String
userId is a parameter to set the user id of the current user who is providing the feedback. This is useful for identifying the user. This value is usually retrieved from the currently authenticated user.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FeedbackScreenState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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