Config constructor Null safety

Config(
  1. {String name = 'Dartion Server',
  2. required IDatabase db,
  3. required int port,
  4. String statics = 'public',
  5. AuthService? auth,
  6. Storage? storage,
  7. String? host}
)

Class constructor to create the server. Has some default configurations but it is advised to create a new instance using the factory so you can implement the configuration set up in your config.yaml file

Implementation

Config({
  this.name = 'Dartion Server',
  required this.db,
  required this.port,
  this.statics = 'public',
  this.auth,
  this.storage,
  this.host,
});