MlValidationResult class

The result of an ML-powered validation.

Constructors

MlValidationResult({required bool isValid, String? errorMessage, String? suggestion, double confidence = 1.0, bool isAvailable = true})
const
MlValidationResult.unavailable()
Creates a result indicating the model wasn't available.
const

Properties

confidence → double
Model confidence score (0.0–1.0).
final
errorMessage → String?
Error message if invalid, null if valid.
final
hashCode → int
The hash code for this object.
no setterinherited
isAvailable → bool
Whether the ML model was available to run.
final
isValid → bool
Whether the input passed validation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
suggestion → String?
Suggested correction, if the model detected a fixable issue.
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