goToPinPage<T extends Object?> function

Future<T?> goToPinPage<T extends Object?>(
  1. BuildContext context,
  2. String conversationId,
  3. NIMConversationType type,
  4. String title,
)

跳转到Pin 消息页面

Implementation

Future<T?> goToPinPage<T extends Object?>(BuildContext context,
    String conversationId, NIMConversationType type, String title) {
  if (IMKitRouter.instance.enableGoRouter) {
    return context.pushNamed(RouterConstants.PATH_CHAT_PIN_PAGE, extra: {
      'conversationId': conversationId,
      'conversationType': type,
      'chatTitle': title
    });
  }
  return Navigator.pushNamed(context, RouterConstants.PATH_CHAT_PIN_PAGE,
      arguments: {
        'conversationId': conversationId,
        'conversationType': type,
        'chatTitle': title
      });
}