subscribeOnPushTokenEvents method

  1. @override
Stream<String> subscribeOnPushTokenEvents()
override

Stream for receiving push tokens

Implementation

@override
Stream<String> subscribeOnPushTokenEvents() {
  return _pushTokenEventChannel.receiveBroadcastStream().map((token) {
    return token as String;
  });
}