ErrorData constructor

const ErrorData({
  1. @Default(-1) int code,
  2. String? message,
  3. @Default(<ErrorDetails>[]) List<ErrorDetails> errors,
})

Default constructor

Implementation

const factory ErrorData({
  /// The error code
  @Default(-1) int code,

  /// The error message
  String? message,

  /// A list of details about this error
  @Default(<ErrorDetails>[]) List<ErrorDetails> errors,
}) = _ErrorData;