Chat / Flutter
Chat Flutter v3
Chat Flutter
Chat
Flutter
Version 3
Home
/
Chat
/
Flutter
/
User

Retrieve a list of operators

You can follow the simple implementation below to retrieve a list of operators who monitor and control the activities in a group channel.

You can create an OperatorListQuery instance and use the loadNext() method to retrieve a list of operators of a specific group channel.

try {
    final query = OperatorListQuery(
            channelUrl: groupChannel.channelUrl,
            channelType: groupChannel.channelType,
        )
        ..limit = 10;

    final result = await query.loadNext();
    // A list of operators is successfully retrieved.
} catch (e) {
    // Handle error.
}

List of properties

This table only contains properties shown in the code above. To see the comprehensive list of all available methods and properties, see OperatorListQuery.

Property nameTypeDescription

channelUrl

String

Specifies the URL of the channel to retrieve a list of operators from.

channelType

ChannelType

Specifies the type of the channel.

limit

int

Specifies the number of results to retrieve per page.