FlutterSupportChat class
Flutter package to implement a fire store chat between customer and product support
supporterEmails
is a required list of emails.
This Emails are able to view all Cases.
currentEmail
is a required email.
Cases are visible based on this email, comments are made for this email.
firestoreInstance
is required for using firestore
newCaseText
is a required String.
New Cases will have this message by default.
createCaseText
is a optional String.
This text is shown on the button to create a new Case
writeMessageText
is a optional String.
This text is shown on the textfield for new comments
closeCaseText
is a optional String.
This text is when a case should be closed
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlutterSupportChat
Constructors
-
FlutterSupportChat({Key? key, required List<
String> supporterEmails, required String currentEmail, required FirebaseFirestore firestoreInstance, required String newCaseText, String createCaseText = 'Create Support Case', String writeMessageText = 'Write a message...', String closeCaseText = "Do you really want to close this case?"}) -
const
Properties
- closeCaseText → String
-
closeCaseText
is a optional String. This text is when a case should be closedfinal - createCaseText → String
-
createCaseText
is a optional String. This text is shown on the button to create a new Casefinal - currentEmail → String
-
currentEmail
is a required email. Cases are visible based on this email, comments are made for this email.final - firestoreInstance → FirebaseFirestore
-
firestoreInstance
is required for using firestorefinal - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- newCaseText → String
-
newCaseText
is a required String. New Cases will have this message by default.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supporterEmails
→ List<
String> -
supporterEmails
is a required list of emails. This Emails are able to view all Cases.final - writeMessageText → String
-
writeMessageText
is a optional String. This text is shown on the textfield for new commentsfinal
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _FlutterSupportChatState -
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}) → 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