Error constructor

const Error({
  1. required String code,
  2. required String message,
  3. required ErrorType type,
})

Implementation

const Error({required this.code, required this.message, required this.type});