goToRobotProfile<T extends Object?> function
Opens the robot profile page.
Implementation
Future<T?> goToRobotProfile<T extends Object?>(
BuildContext context,
V2NIMUserAIBot bot,
) {
if (IMKitRouter.instance.enableGoRouter) {
return context.pushNamed(
RouterConstants.PATH_MY_ROBOT_PROFILE_PAGE,
extra: {'bot': bot},
);
}
return Navigator.pushNamed(
context,
RouterConstants.PATH_MY_ROBOT_PROFILE_PAGE,
arguments: {'bot': bot},
);
}