Dart Documentationmongo_dartServerConfig

ServerConfig class

class ServerConfig{
 String host;
 int port;
 String userName;
 String password;
 ServerConfig([this.host='127.0.0.1', this.port=27017]);
 String get hostUrl => "$host:${port.toString()}";
}

Constructors

new ServerConfig([String host = '127.0.0.1', int port = 27017]) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ServerConfig([this.host='127.0.0.1', this.port=27017]);

Properties

String host #

String host

final String hostUrl #

String get hostUrl => "$host:${port.toString()}";

String password #

String password

int port #

int port

String userName #

String userName