ValidationError constructor

const ValidationError({
  1. required String message,
})

Creates a new ValidationError instance.

The message should describe what validation rule was violated.

Implementation

const ValidationError({required super.message});