/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
Version 4

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 next() method to retrieve a list of operators of a specific group channel.

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

  final operators = await query.next();
  // 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

channelType

ChannelType

Specifies the type of the channel.

channelUrl

String

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

limit

int

Specifies the number of results to retrieve per page.