error method

Implementation

ErrorMessageResponse error(String text) {
  return ErrorMessageResponse(id: id, text: text);
}