BatchValidationResult class

The aggregated result of a JsonSentinel.validateBatch call.

failureCount and failureIndices are convenience accessors derived from results. All list fields are unmodifiable.

Constructors

BatchValidationResult.fromResults(List<JsonValidationResult> results)
Creates a BatchValidationResult from a list of per-item JsonValidationResult values.
factory

Properties

failureCount → int
The number of items that failed validation.
final
failureIndices → List<int>
Zero-based indices of the items that failed validation, in ascending order. Always unmodifiable.
final
hashCode → int
The hash code for this object.
no setterinherited
isValid → bool
Whether every item in the batch passed validation.
final
results → List<JsonValidationResult>
One JsonValidationResult per input item, in input order. Always unmodifiable.
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