openChatPage method

dynamic openChatPage(
  1. BuildContext context,
  2. ChatEntity chatEntity
)

Implementation

openChatPage(BuildContext context, ChatEntity chatEntity) async {
  return Navigator.push(
    context,
    MaterialPageRoute(
      builder: (context) => FirestoreChatPage(chatEntity),
    ),
  );
}