isText property

bool get isText

Returns true if the byte content is recognized as plain text or textual data.

Example MIME types: text/plain, text/html.

Implementation

bool get isText => mime?.startsWith("text") ?? false;