unregister method

Future<bool> unregister()

Unregisters the service worker registration and returns a promise (see Promise). The service worker will finish any ongoing operations before it is unregistered.

Implementation

Future<bool> unregister() =>
    promiseToFuture(_callMethod(_delegate, 'unregister', []));