FlutterSupportChat constructor
const
FlutterSupportChat({
- Key? key,
- required List<
String> supporterIDs, - 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(
- SupportChat
- dynamic onNewMessageCreated(
- SupportChat
- bool collectDeviceData = true,
Implementation
const FlutterSupportChat({
Key? key,
required this.supporterIDs,
required this.currentID,
required this.firestoreInstance,
required this.onNewCaseText,
this.createCaseButtonText = 'Create Support Case',
this.writeMessageText = 'Write a message...',
this.closeCaseText = "Do you really want to close this case?",
this.onNewCaseCreated,
this.onNewMessageCreated,
this.collectDeviceData = true,
}) : super(key: key);