AuthError.validation constructor
Creates a validation error with field-specific details.
The errors map should contain field names as keys and error messages
as values.
Example:
final error = AuthError.validation({
'email': 'Invalid email format',
'password': 'Too short',
});
Implementation
factory AuthError.validation(Map<String, dynamic> errors) {
return AuthError(
code: 'VALIDATION_ERROR',
message: 'Validation failed',
details: errors,
);
}