goToTeamMemberList<T extends Object?> function

Future<T?> goToTeamMemberList<T extends Object?>(
  1. BuildContext context,
  2. String teamId, {
  3. bool showOwnerAndManager = true,
  4. bool isGroupTeam = false,
  5. bool isMultiSelectModel = false,
  6. bool singleSelect = false,
  7. bool showAIMember = true,
  8. bool showRole = true,
  9. int? maxSelectMemberCount,
  10. bool showRemoveButton = true,
})

Implementation

Future<T?> goToTeamMemberList<T extends Object?>(
    BuildContext context, String teamId,
    {bool showOwnerAndManager = true,
    bool isGroupTeam = false,
    bool isMultiSelectModel = false,
    bool singleSelect = false,
    bool showAIMember = true,
    bool showRole = true,
    int? maxSelectMemberCount,
    bool showRemoveButton = true}) {
  if (IMKitRouter.instance.enableGoRouter) {
    return context.pushNamed(RouterConstants.PATH_TEAM_MEMBER_PAGE, extra: {
      'teamId': teamId,
      'showOwnerAndManager': showOwnerAndManager,
      'isGroupTeam': isGroupTeam,
      'isMultiSelectModel': isMultiSelectModel,
      'singleSelect': singleSelect,
      'showAIMember': showAIMember,
      'showRemoveButton': showRemoveButton,
      'maxSelectMemberCount': maxSelectMemberCount,
      'showRole': showRole
    });
  }
  return Navigator.pushNamed(context, RouterConstants.PATH_TEAM_MEMBER_PAGE,
      arguments: {
        'teamId': teamId,
        'showOwnerAndManager': showOwnerAndManager,
        'isGroupTeam': isGroupTeam,
        'isMultiSelectModel': isMultiSelectModel,
        'singleSelect': singleSelect,
        'showAIMember': showAIMember,
        'showRemoveButton': showRemoveButton,
        'maxSelectMemberCount': maxSelectMemberCount,
        'showRole': showRole
      });
}