id property

  1. @override
String id
final

Unique identifier for the author which contains information about user name and user ID.

Example:

@override
Widget build(BuildContext context) {
 return SfChat(
   messages: [
     ChatMessage(
       author: ChatAuthor(id: '123-001'),
     ),
   ],
 );
}

Implementation

@override
final String id;