isText property

bool get isText

Whether or not this is a TextContent.

Implementation

bool get isText => _value['type'] == TextContent.expectedType;