messageViewOrNull property

MessageView? get messageViewOrNull

Returns MessageView if this data is MessageView, otherwise null.

Implementation

MessageView? get messageViewOrNull => isMessageView ? messageView : null;