isUiPart property

bool get isUiPart

Whether this part is a UI part.

Implementation

bool get isUiPart =>
    this is DataPart &&
    (this as DataPart).mimeType == UiPartConstants.uiMimeType;