ArangoDBClient constructor

ArangoDBClient({
  1. String scheme = 'http',
  2. String host = 'localhost',
  3. int port = 8529,
  4. String db = '_system',
  5. required String user,
  6. required String pass,
  7. String realm = '',
})

Implementation

ArangoDBClient({
  this.scheme = 'http',
  this.host = 'localhost',
  this.port = 8529,
  this.db = '_system',
  required this.user,
  required this.pass,
  this.realm = '',
}) {
  ({
    'sheme': scheme,
    'db': db,
    'host': host,
    'port': port,
    'user': user,
    'pass': pass,
    'realm': realm,
  }).forEach((k, v) => ArgumentError.checkNotNull(v, k));

  dbUrl =
      Uri(scheme: scheme, host: host, port: port, pathSegments: ['_db', db]);

  _connect();
}