ChatRoomMessage constructor
ChatRoomMessage({
- String oId = '',
- int userOId = 0,
- String userName = '',
- String nickname = '',
- String avatarURL = '',
- MetalList sysMetal = const [],
- ChatSource? via,
- String content = '',
- String md = '',
- RedPacketMessage? redpacket,
- WeatherMsg? weather,
- MusicMsg? music,
- String time = '',
- String type = ChatRoomMessageType.msg,
Implementation
ChatRoomMessage({
this.oId = '',
this.userOId = 0,
this.userName = '',
this.nickname = '',
this.avatarURL = '',
this.sysMetal = const [],
ChatSource? via,
this.content = '',
this.md = '',
this.redpacket,
this.weather,
this.music,
this.time = '',
this.type = ChatRoomMessageType.msg,
}) {
this.via = via ?? ChatSource();
}