FileValidationResult class

Result of validating a single MWM file against its metadata.

Constructors

FileValidationResult({required String regionName, required bool exists, required bool hasMetadata, String? expectedPath, int? actualSize, int? expectedSize, bool? sizeMatches})
const

Properties

actualSize → int?
Actual file size on disk (if file exists).
final
exists → bool
Whether the file exists on disk.
final
expectedPath → String?
Expected file path from metadata.
final
expectedSize → int?
Expected file size from metadata.
final
hashCode → int
The hash code for this object.
no setterinherited
hasMetadata → bool
Whether metadata exists in storage.
final
isOrphaned → bool
True if metadata exists but file is missing (orphaned).
no setter
isSizeMismatch → bool
True if file exists but size doesn't match (possibly corrupted).
no setter
isValid → bool
True if the file is valid (exists and size matches).
no setter
regionName → String
Region name being validated.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeMatches → bool?
Whether actual size matches expected (null if file doesn't exist).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited