showChatDialog<T> function

Future<T> showChatDialog<T>(
  1. BuildContext context, {
  2. required List<ChatDialogItem> items,
  3. String? subTitle,
  4. String? title,
  5. List<String>? hiddenList,
  6. Color barrierColor = Colors.black54,
  7. ChatDialogRectangleBorderType borderType = ChatDialogRectangleBorderType.circular,
})

Implementation

Future<T> showChatDialog<T>(
  BuildContext context, {
  required List<ChatDialogItem<dynamic>> items,
  String? subTitle,
  String? title,
  List<String>? hiddenList,
  Color barrierColor = Colors.black54,
  ChatDialogRectangleBorderType borderType =
      ChatDialogRectangleBorderType.circular,
}) async {
  return await showDialog(
    barrierColor: barrierColor,
    context: context,
    builder: (context) {
      return ChatDialog(
        title: title,
        subTitle: subTitle,
        hiddenList: hiddenList,
        items: items,
        borderType: borderType,
      );
    },
  );
}