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.
ServerConfig([this.host='127.0.0.1', this.port=27017]);
Properties
final String hostUrl #
String get hostUrl => "$host:${port.toString()}";