errors property
final
Map of field-level validation errors from the backend.
Keys are field names (e.g., 'email', 'vrn', 'litres') and values are error messages or error details. Empty map if no field-specific errors are available.
Example structure:
{
'email': 'Invalid email format',
'phoneNumber': 'Phone number must be 10 digits',
'litres': ['Must be positive', 'Cannot exceed 10000'],
}
Implementation
final Map<String, dynamic> errors;