ContentValidationResult class

Result of a content validation

Constructors

ContentValidationResult({required bool isValid, required String originalContent, String? cleanedContent, String? errorMessage})
Creates a new ContentValidationResult with the given parameters
ContentValidationResult.cleaned(String originalContent, String cleanedContent)
Creates a new ContentValidationResult for cleaned content
factory
ContentValidationResult.invalid(String content, {String? errorMessage})
Creates a new ContentValidationResult for invalid content
factory
ContentValidationResult.valid(String content)
Creates a new ContentValidationResult for valid content
factory

Properties

cleanedContent → String?
The cleaned content, if any
final
errorMessage → String?
The error message, if any
final
hashCode → int
The hash code for this object.
no setterinherited
isValid → bool
Whether the content is valid
final
originalContent → String
The original content
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