isBlock property

bool get isBlock

Determines if this Paragraph is a block type one

Implementation

bool get isBlock => type == ParagraphType.block && blockAttributes != null;