openChat method

Future<void> openChat(
  1. BuildContext context, {
  2. required String url,
  3. required String userName,
  4. required String userEmail,
  5. required String userId,
  6. required String avatarUrl,
  7. String title = "Encerrar sessão",
  8. String content = "Você tem certeza de que deseja encerrar o chat?",
  9. String cancelButton = "Cancelar",
  10. String finalizeButton = "Finalizar",
})

Implementation

Future<void> openChat(
  BuildContext context, {
  required String url,
  required String userName,
  required String userEmail,
  required String userId,
  required String avatarUrl,
  String title = "Encerrar sessão",
  String content = "Você tem certeza de que deseja encerrar o chat?",
  String cancelButton = "Cancelar",
  String finalizeButton = "Finalizar",
}) async {
  await _showChatUsingOverlay(
    context,
    url,
    userName,
    userEmail,
    userId,
    avatarUrl,
    title: title,
    content: content,
    cancelButton: cancelButton,
    finalizeButton: finalizeButton,
  );
}