getSubscription method

Future<PushSubscription?> getSubscription()

Returns a promise that resolves to a PushSubscription details of the retrieved push subscription.

Implementation

Future<PushSubscription?> getSubscription() =>
    promiseToFuture<Object?, PushSubscription?>(
        _callMethod(_delegate, 'getSubscription', []),
        (Object? j) => (j == null) ? null : PushSubscription._(j));