Error constructor

const Error({
  1. required String message,
  2. required ErrorCode errorCode,
})

Creates an error with the given message and error code

Implementation

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