fromConfig static method
Retrieves a single ConnectionParams from configuration parameters from 'connection' section. If 'connections' section is present instead, then is returns only the first connection element.
config
ConnectionParams, containing a section named 'connection(s)'. Return the generated ConnectionParams object.
See manyFromConfig
Implementation
static ConnectionParams? fromConfig(ConfigParams config) {
var connections = ConnectionParams.manyFromConfig(config);
return connections.isNotEmpty ? connections[0] : null;
}