TestReturnError constructor

const TestReturnError({
  1. required TdError error,
})

Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously

Implementation

const TestReturnError({
  required this.error,
});