isResource property

bool get isResource

Whether this part is a resource.

Implementation

bool get isResource => toJson().containsKey('resource');