GroupConfig class
GroupConfig
is a class used to configure group chat functionality.
These properties include flags to enable group creation and admin-only add/remove access, and a property to set the maximum number of members in a group.
@property enableGroupCreation A flag to enable group creation. @property maxMembersCount The maximum number of members in a group. @property adminOnlyAddRemoveAccess A flag to enable admin-only add/remove access.
- Available extensions
Constructors
- GroupConfig({required bool enableGroupCreation, required int maxMembersCount, bool adminOnlyAddRemoveAccess = true})
- Allows customization of group chat features, including enabling group creation, setting a maximum number of members, and specifying admin-only permissions for adding or removing members.
Properties
- adminOnlyAddRemoveAccess ↔ bool
-
Controls whether only group admins can add or remove members.
getter/setter pair
- enableGroupCreation ↔ bool
-
Determines whether users can create new groups.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxMembersCount ↔ int
-
Specifies the maximum number of members allowed in a group.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → Map? -
Available on GroupConfig?, provided by the GroupConfigParsing extension
Builds a map representation of theGroupConfig
instance. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited