isText property

bool get isText

Returns true if is text/*.

Implementation

bool get isText => type == 'text';