isValid property
bool
get
isValid
Returns true when the file has a non-empty filename.
This is commonly used to distinguish real uploads from empty placeholders.
Example:
if (file.isValid) {
print('Uploaded file is usable');
}
Implementation
bool get isValid => filename.isNotEmpty;