subscribeToChannel method

Future<void> subscribeToChannel(
  1. String value
)

Subscribes the device to a channel of push notifications.

Implementation

Future<void> subscribeToChannel(String value) async {
  final List<dynamic> channel = <String>[value];
  setAddAllUnique('channels', channel);
  await save();
}