attributes property

(Map<String, String> Function()?) attributes
getter/setter pair

message attributes of local user, which will be appended to the message body.

if set, attributes will be sent along with the message body.

 message.attributes = {'k':'v'};
 message.itemBuilder = (
   BuildContext context,
   ZegoInRoomMessage message,
   Map<String, dynamic> extraInfo,
 ) {
  final attributes = message.attributes;
  return YouCustomMessageItem();
 }

Implementation

Map<String, String> Function()? attributes;