Failure constructor
const
Failure([
- String message = 'An unexpected error occurred.'
Creates a Failure with an optional message. Defaults to a generic error message.
Implementation
const Failure([this.message = 'An unexpected error occurred.']);