validated method
Get all validated data after successful validation.
Returns the complete validated data map that was produced by the validate method. This includes any modifications made by passedValidation.
Throws StateError if validation has not been performed yet.
Implementation
Map<String, dynamic> validated() {
if (_validatedData == null) {
throw StateError('Validation has not been performed yet.');
}
return _validatedData!;
}