goToTeamMemberList<T extends Object?> function
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,
})
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
});
}