ErrorResponse constructor

ErrorResponse({
  1. bool error = true,
  2. required List<String> messages,
  3. required String type,
  4. int statusCode = HttpStatus.internalServerError,
  5. Map<String, dynamic>? context,
  6. Iterable<String>? stackTrace,
})

Implementation

ErrorResponse({
  super.error = true,
  required super.messages,
  required this.type,
  super.statusCode = HttpStatus.internalServerError,
  this.context,
  this.stackTrace,
});