ZugChat constructor

ZugChat(
  1. ZugClient client, {
  2. Color foregroundColor = Colors.white,
  3. Color backgroundColor = Colors.black,
  4. Color borderColor = Colors.greenAccent,
  5. double borderWidth = 2,
  6. Color cmdTxtColor = Colors.greenAccent,
  7. Color cmdBkgColor = Colors.brown,
  8. bool chatCommandOnTop = false,
  9. bool autoScroll = true,
  10. bool usingAreas = true,
  11. bool usingRooms = false,
  12. bool usingServer = true,
  13. String areaName = "Area",
  14. String roomName = "Room",
  15. String serverName = "Server",
  16. MessageScope defScope = MessageScope.room,
  17. double? widthFactor,
  18. double? heightFactor,
  19. double? width,
  20. double? height,
  21. Key? key,
})

Implementation

ZugChat(this.client, {this.foregroundColor = Colors.white,
  this.backgroundColor = Colors.black,
  this.borderColor = Colors.greenAccent,
  this.borderWidth = 2,
  this.cmdTxtColor = Colors.greenAccent,
  this.cmdBkgColor = Colors.brown,
  this.chatCommandOnTop = false,
  this.autoScroll = true,
  this.usingAreas = true,
  this.usingRooms = false,
  this.usingServer = true,
  this.areaName = "Area",
  this.roomName = "Room",
  this.serverName = "Server",
  this.defScope = MessageScope.room,
  this.widthFactor,
  this.heightFactor,
  this.width,
  this.height,
  super.key}) {
  userColorMap.putIfAbsent("", () => foregroundColor);
}