onRequestServedFromCache property

Stream<RequestId> get onRequestServedFromCache

Fired if request ended up loading from cache.

Implementation

Stream<RequestId> get onRequestServedFromCache => _client.onEvent
    .where((event) => event.name == 'Network.requestServedFromCache')
    .map((event) =>
        RequestId.fromJson(event.parameters['requestId'] as String));