supports method Null safety

bool supports(
  1. String capability
)

Checks if the given capability is supported, e.g. final supportsPipelining = smtpClient.serverInfo.supports(PIPELINING);.

Implementation

bool supports(String capability) => capabilities.contains(capability);