Error constructor

Error({
  1. required String error,
  2. String? code,
  3. Map<String, Object> details = const {},
})

Returns a new Error instance.

Implementation

Error({
  required this.error,
  this.code,
  this.details = const {},
});