/ SDKs / Flutter
SDKs
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Flutter
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Retrieve a list of operators

Copy link

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

Copy link

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.