AuthError constructor

AuthError({
  1. required String code,
  2. required String message,
  3. Map<String, dynamic>? details,
})

Creates a new AuthError instance.

The code should be a machine-readable identifier. The message should be user-friendly description. The details parameter is optional and can contain additional context.

Implementation

AuthError({
  required this.code,
  required this.message,
  this.details,
});