onResourceContentUpdated method

  1. @override
void onResourceContentUpdated(
  1. dynamic handler(
    1. String uri,
    2. ResourceContents content
    )
)
override

Register a handler for notifications/resources/updated that carries the new content: the handler gets the resource's URI and its contents. A notification without content (the usual case) does not reach it — use onResourceUpdated for those.

Implementation

@override
void onResourceContentUpdated(
  Function(String uri, ResourceContents content) handler,
) => inner.onResourceContentUpdated(handler);