goToP2pChat<T extends Object?> function

Future<T?> goToP2pChat<T extends Object?>(
  1. BuildContext context,
  2. String userId
)

Implementation

Future<T?> goToP2pChat<T extends Object?>(BuildContext context, String userId) {
  return Navigator.pushNamed(context, RouterConstants.PATH_CHAT_PAGE,
      arguments: {'sessionId': userId, 'sessionType': NIMSessionType.p2p});
}