ValidationResult class
Result of an image validation operation.
Contains information about whether the validation passed or failed, along with optional error messages and file metadata.
Constructors
- ValidationResult.invalid(String? errorMessage)
- Creates a failed validation result.
- ValidationResult.valid(File? file, {required ImageTypeEnum? fileType})
- Creates a successful validation result.
Properties
- errorMessage → String?
-
Error message if validation failed, null if validation passed.
final
- file → File?
-
The original file that was validated, null if validation failed.
final
- fileType → ImageTypeEnum?
-
The detected image type, null if validation failed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Whether the validation passed successfully.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited