setMyPushTriggerOption method

Future<void> setMyPushTriggerOption(
  1. GroupChannelPushTriggerOption option
)

Sets current user's push trigger option on this channel.

Implementation

Future<void> setMyPushTriggerOption(
  GroupChannelPushTriggerOption option,
) async {
  final res = await _sdk.api.send<GroupChannelPushTriggerOption>(
    GroupChannelPushTriggerOptionSetRequest(
      channelUrl: channelUrl,
      option: option,
    ),
  );
  myPushTriggerOption = res;
}