Failure constructor

const Failure([
  1. String message = 'An unexpected error occurred.',
  2. String? code,
  3. GMap details = const {}
])

Creates a Failure with an optional message. Defaults to a generic error message.

Implementation

const Failure([
  this.message = 'An unexpected error occurred.',
  this.code,
  this.details = const {},
]);