CometChatJoinProtectedGroup constructor
CometChatJoinProtectedGroup({
- Key? key,
- required Group group,
- String? title,
- String? description,
- String? passwordPlaceholderText,
- dynamic onJoinTap({})?,
- Widget? closeIcon,
- Widget? joinIcon,
- JoinProtectedGroupStyle? joinProtectedGroupStyle,
- OnError? onError,
- CometChatTheme? theme,
- VoidCallback? onBack,
- String? errorStateText,
Implementation
CometChatJoinProtectedGroup(
{super.key,
required Group group,
this.title,
this.description,
this.passwordPlaceholderText,
Function({Group group, String password})? onJoinTap,
this.closeIcon,
this.joinIcon,
this.joinProtectedGroupStyle,
OnError? onError,
this.theme,
this.onBack,
String? errorStateText})
: cometChatJoinProtectedGroupController =
CometChatJoinProtectedGroupController(
group: group,
onError: onError,
onJoinTap: onJoinTap,
background: joinProtectedGroupStyle?.background,
errorStateText: errorStateText,
errorTextStyle: joinProtectedGroupStyle?.errorTextStyle);