isValid property

bool get isValid

True if the file is valid (exists and size matches).

Implementation

bool get isValid => exists && (sizeMatches ?? false);