getSubscription method Null safety

Future<PushSubscription> getSubscription ()

Implementation

Future<PushSubscription> getSubscription() =>
    promiseToFuture<PushSubscription>(
        JS("creates:PushSubscription;", "#.getSubscription()", this));