openChatPage method

Future<Future> openChatPage(
  1. BuildContext context,
  2. ChatEntity chatEntity
)

Pushes the chat page for chatEntity onto the navigator.

Implementation

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