moreListItem method
void
moreListItem(
- String role
)
Implementation
void moreListItem(String role) {
if (setting.enxRequiredList.isNotEmpty) {
for (var element in setting.enxRequiredList) {
if (element == EnxRequiredEventsOption.muteRoom) {
if (role == 'moderator') {
moreList.add(MoreModel.name(
'Mute Room',
MenuOption.muteRoom,
'assets/image/moderator_unmute.png',
'assets/image/moderator_mute.png',
false,
true));
}
}else if(element==EnxRequiredEventsOption.recording){
if (role == 'moderator') {
moreList.add(MoreModel.name(
'Recording On',
MenuOption.recording,
'assets/image/recording.png',
'assets/image/recording_on.png',
false,
true));
}
}else if(element==EnxRequiredEventsOption.switchAT){
if(!kIsWeb){
moreList.add(MoreModel.name(
'Switch Layout',
MenuOption.switchAT,
'assets/image/gridview.png',
'assets/image/gridview_on.png',
false,
true));
}
}else if(element==EnxRequiredEventsOption.lobby){
if (role == 'moderator') {
moreList.add(MoreModel.name('Lobby', MenuOption.lobby,
'assets/image/lobby.png', 'assets/image/lobby_selected.png', false,false));
}
} if (element == EnxRequiredEventsOption.roomSetting) {
if (role == 'moderator') {
moreList.add(MoreModel.name(
'Room Setting',
MenuOption.roomSetting,
'assets/image/settings.png',
'assets/image/settings.png',
false,
false));
}
}else if(element==EnxRequiredEventsOption.requestFloor){
if (role == 'moderator') {
moreList.add(MoreModel.name('Request List', MenuOption.requestFloor,
'assets/image/lobby.png', 'assets/image/lobby_selected.png', false,false));
}
}
else if(element==EnxRequiredEventsOption.polling){
moreList.add(MoreModel.name('Polling', MenuOption.polling,
'assets/image/polling_black.png', 'assets/image/polling_color.png', false,false));
}else if(element==EnxRequiredEventsOption.qna){
moreList.add(MoreModel.name('Q&A', MenuOption.qna,
'assets/image/qna.png', 'assets/image/qna_selected.png', false,false));
}
}
}else{
if (role == 'moderator') {
moreList.add(MoreModel.name(
'Mute Room',
MenuOption.muteRoom,
'assets/image/moderator_unmute.png',
'assets/image/moderator_mute.png',
false,
true));
moreList.add(MoreModel.name(
'Recording On',
MenuOption.recording,
'assets/image/recording.png',
'assets/image/recording_on.png',
false,
true));
//moderatorsList.add(item);
}
if(!kIsWeb){
moreList.add(MoreModel.name(
'Switch Layout',
MenuOption.switchAT,
'assets/image/gridview.png',
'assets/image/gridview_on.png',
false,
true));
}
if (role == 'moderator') {
moreList.add(MoreModel.name(
'Room Setting',
MenuOption.roomSetting,
'assets/image/settings.png',
'assets/image/settings.png',
false,
false));
}
if (role == 'moderator') {
moreList.add(MoreModel.name('Lobby', MenuOption.lobby,
'assets/image/lobby.png', 'assets/image/lobby_selected.png', false,false));
}
if (role == 'moderator') {
moreList.add(MoreModel.name('Request List', MenuOption.requestFloor,
'assets/image/lobby.png', 'assets/image/lobby_selected.png', false,false));
}
moreList.add(MoreModel.name('Polling', MenuOption.polling,
'assets/image/polling_black.png', 'assets/image/polling_color.png', false,false));
moreList.add(MoreModel.name('Q&A', MenuOption.qna,
'assets/image/qna.png', 'assets/image/qna_selected.png', false,false));
}
// moreList.add(MoreModel.name('Start fsAnnotation', MenuOption.annotationShare,
// 'assets/image/gridview.png', 'assets/image/gridview_on.png', false,false));
// moreList.add(MoreModel.name('Start Annotationvc', MenuOption.annotationShare,
// 'assets/image/gridview.png', 'assets/image/gridview_on.png', false,false));
}