CometChatJoinProtectedGroup constructor

CometChatJoinProtectedGroup({
  1. Key? key,
  2. required Group group,
  3. String? title,
  4. String? description,
  5. String? passwordPlaceholderText,
  6. dynamic onJoinTap({
    1. Group group,
    2. String password,
    })?,
  7. Widget? closeIcon,
  8. Widget? joinIcon,
  9. JoinProtectedGroupStyle? joinProtectedGroupStyle,
  10. OnError? onError,
  11. CometChatTheme? theme,
  12. VoidCallback? onBack,
  13. 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);