Error constructor

Error({
  1. required int code,
  2. required String message,
  3. String? details,
  4. DateTime? timestamp,
})

Returns a new Error instance.

Implementation

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