ZugChat constructor
ZugChat(
- ZugClient client, {
- Color foregroundColor = Colors.white,
- Color backgroundColor = Colors.black,
- Color borderColor = Colors.greenAccent,
- double borderWidth = 2,
- Color cmdTxtColor = Colors.greenAccent,
- Color cmdBkgColor = Colors.brown,
- bool chatCommandOnTop = false,
- bool autoScroll = true,
- bool usingAreas = true,
- bool usingRooms = false,
- bool usingServer = true,
- String areaName = "Area",
- String roomName = "Room",
- String serverName = "Server",
- MessageScope defScope = MessageScope.room,
- double? widthFactor,
- double? heightFactor,
- double? width,
- double? height,
- 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);
}