FlutterSupportChat class
Flutter package to implement a fire store chat between customer and product support
supporterID
is a required list of Ids.
Ids can be Email or FirebaseUsersIds
This Ids are able to view all Cases.
currentID
is a required ID.
Id can be Email or FirebaseUsersId
Cases are visible based on this ID, comments are made for this id.
firestoreInstance
is required for using firestore
onNewCaseText
is a required String.
New Cases will have this message by default.
Message is send by the first supporterID
createCaseButtonText
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> supporterID, required String currentID, required FirebaseFirestore firestoreInstance, required String onNewCaseText, String createCaseButtonText = 'Create Support Case', String writeMessageText = 'Write a message...', String closeCaseText = "Do you really want to close this case?", dynamic onNewCaseCreated()?, dynamic onNewMessageCreated()?, Color? senderColor, Color? recieverColor, String? locale}) -
const
Properties
- closeCaseText → String
-
closeCaseText
is a optional String. This text is when a case should be closedfinal - createCaseButtonText → String
-
createCaseButtonText
is a optional String. This text is shown on the button to create a new Casefinal - currentID → String
-
currentID
is a required ID. Id can be Email or FirebaseUsersId Cases are visible based on this ID, comments are made for this id.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
- locale → String?
-
final
- onNewCaseCreated → (dynamic Function()?)
-
onNewCaseCreated
is a optional Function. With this for example you can send a push notification to a supporterfinal - onNewCaseText → String
-
onNewCaseText
is a required String. New Cases will have this message by default. Message is send by the first supporterIDfinal - onNewMessageCreated → (dynamic Function()?)
-
onNewMessageCreated
is a optional Function. With this for example you can send a push notificationfinal - recieverColor → Color?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderColor → Color?
-
final
-
supporterID
→ List<
String> -
supporterID
is a required list of Ids. Ids can be Email or FirebaseUsersIds This Ids 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