onWorkerRegistrationUpdated property

Stream<List<ServiceWorkerRegistration>> get onWorkerRegistrationUpdated

Implementation

Stream<List<ServiceWorkerRegistration>> get onWorkerRegistrationUpdated =>
    _client.onEvent
        .where((event) =>
            event.name == 'ServiceWorker.workerRegistrationUpdated')
        .map((event) => (event.parameters['registrations'] as List)
            .map((e) =>
                ServiceWorkerRegistration.fromJson(e as Map<String, dynamic>))
            .toList());