isFile property

bool get isFile

Whether the part was a file rather than an ordinary field.

Implementation

bool get isFile => filename != null;