protocols method
Protocols returns a list of all registered protocol ID strings. Note that the Router may be able to handle protocol IDs not included in this list if handlers were added with match functions using AddHandlerWithFunc.
Implementation
@override
Future<List<ProtocolID>> protocols() async {
return await _handlerLock.synchronized(() async {
return _handlers.map((h) => h.addName).toList();
});
}