showUserName property

bool showUserName
final

Customizes whether to display the sender's username within the chat bubble.

Defaults to true.

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingBubbleSettings: ChatBubbleSettings(
      showUserName: true,
    ),
    outgoingBubbleSettings: ChatBubbleSettings(
      showUserName: true,
    ),
  );
}

Implementation

final bool showUserName;