watchChannel method

Future<ChannelState> watchChannel(
  1. String channelType, {
  2. String? channelId,
  3. Map<String, Object?>? channelData,
})

watches the provided channel Creates first if not yet created

Implementation

Future<ChannelState> watchChannel(
  String channelType, {
  String? channelId,
  Map<String, Object?>? channelData,
}) =>
    queryChannel(
      channelType,
      channelId: channelId,
      watch: true,
      channelData: channelData,
    );