isText property

bool get isText

Whether this part is a text part.

Implementation

bool get isText => toJson().containsKey('text');