onListRoots method

  1. @override
void onListRoots(
  1. Future<List<Root>> handler()
)
override

Register a custom handler for server-initiated roots/list requests. By default the client responds with the locally configured roots list — supply this to override. Either way the client answers only when it declared roots in its ClientCapabilities.

Implementation

@override
void onListRoots(Future<List<Root>> Function() handler) =>
    inner.onListRoots(handler);