DatabaseConfig class Null safety

Annotations

Constructors

DatabaseConfig({required String host, required int port, required String databaseName, required String username, String? password})
DatabaseConfig.fromEnvironment({DatabaseConfig? defaults})
load database configuration from the DBCONFIG environment variables. this environment variable must be a json.
factory
DatabaseConfig.fromJson(Map<String, dynamic> json)
factory

Properties

databaseName String
@JsonKey(defaultValue: 'authpass'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
host String
@JsonKey(defaultValue: 'localhost'), final
password String?
@JsonKey(defaultValue: 'blubb'), final
port int
@JsonKey(defaultValue: 5432), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
username String
@JsonKey(defaultValue: 'authpass'), final

Methods

copyWith({String? host, int? port, String? databaseName}) DatabaseConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

defaults DatabaseConfig
final