addDeviceIntent method

  1. @override
SubscriptionIntent addDeviceIntent(
  1. DeviceChannel channel
)
override

Implementation

@override
SubscriptionIntent addDeviceIntent(DeviceChannel channel) {
  final channelName = channel.toChannelString();
  final intent = SubscriptionIntent(
    kind: IntentKind.device,
    channel: channel,
    channelName: channelName,
  );
  _intents[channelName] = intent;
  return intent;
}