isText property

bool get isText

Whether or not this represents TextResourceContents.

Implementation

bool get isText => _value.containsKey('text');