subscribe method

Returns a promise that resolves to a PushSubscription with details of a new push subscription.

Implementation

Future<PushSubscription> subscribe([PushSubscriptionOptions? options]) =>
    promiseToFuture<Object, PushSubscription>(
        _callMethod(_delegate, 'subscribe', [options]), PushSubscription._);