WorldState constructor

const WorldState({
  1. String? name,
  2. GameState gameState = GameState.play,
  3. GameTable table = const GameTable(),
  4. String tableName = '',
  5. GameInfo info = const GameInfo(),
  6. FileMetadata metadata = const FileMetadata(),
  7. Map<String, Set<Channel>> teamMembers = const {},
  8. List<ChatMessage> messages = const [],
  9. Channel id = kAuthorityChannel,
  10. List<GameDialog> dialogs = const [],
  11. Map<String, Uint8List> images = const {},
  12. ServerState serverState = const ServerState(),
  13. AuthenticatedRequested? authRequest,
  14. required SetonixData data,
})

Implementation

const WorldState({
  this.name,
  this.gameState = GameState.play,
  this.table = const GameTable(),
  this.tableName = '',
  this.info = const GameInfo(),
  this.metadata = const FileMetadata(),
  this.teamMembers = const {},
  this.messages = const [],
  this.id = kAuthorityChannel,
  this.dialogs = const [],
  this.images = const {},
  this.serverState = const ServerState(),
  this.authRequest,
  required this.data,
});