supports method

bool supports(
  1. String capabilityName
)

Checks of the given capability is supported

Implementation

bool supports(String capabilityName) =>
    serverCapabilities.firstWhereOrNull((c) => c.name == capabilityName) !=
    null;