SwampConfig class final

Mixed-in types
Annotations

Constructors

SwampConfig({String description = "", int maxPlayers = 1024, bool noDarkRooms = false})
const
SwampConfig.withEnvironment(Map<String, dynamic> data, {String? description, int? maxPlayers, bool? noDarkRooms})
Creates a SwampConfig merging default values, environment variables, and provided parameters.
factory

Properties

copyWith SwampConfigCopyWith<SwampConfig, SwampConfig, SwampConfig>
no setterinherited
description String
A description of the server.
final
flags int
no setter
hashCode int
The hash code for this object.
no setterinherited
maxPlayers int
The maximum number of players allowed in a room.
final
noDarkRooms bool
Whether dark rooms are disabled on this server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

descriptionEnvironment → const String
Environment variable for the server description.
maxPlayersEnvironment → const String
Environment variable for the maximum number of players.
noDarkRoomsEnvironment → const String
Environment variable to disable dark rooms.