ObbyClient constructor

ObbyClient({
  1. required String nick,
  2. String? username,
  3. String? realname,
  4. String? password,
  5. SaslCredentialsInput? sasl,
  6. int? retention,
  7. List<String>? altNicks,
  8. String? libraryPath,
})

Open a connection's engine.

Only nick is required; the engine defaults everything else.

Implementation

factory ObbyClient({
  required String nick,
  String? username,
  String? realname,
  String? password,
  SaslCredentialsInput? sasl,
  int? retention,
  List<String>? altNicks,
  String? libraryPath,
}) {
  return ObbyClient.fromConfig({
    'nick': nick,
    if (username != null) 'username': username,
    if (realname != null) 'realname': realname,
    if (password != null) 'password': password,
    if (sasl != null) 'sasl': sasl,
    if (retention != null) 'retention': retention,
    if (altNicks != null) 'alt_nicks': altNicks,
  }, libraryPath: libraryPath);
}