isUser property

bool get isUser

Returns true if the message was sent by the user.

Implementation

bool get isUser => role == MessageRole.user;