CustomErrorRule constructor

const CustomErrorRule({
  1. Input<bool>? isErrorType,
  2. Input<String>? selector,
})

Creates a new CustomErrorRule. isErrorType Mark this message as possible payload in error response. Otherwise, objects of this type will be filtered when they appear in error payload. selector Selects messages to which this rule applies. Refer to selector for syntax details.

Implementation

const CustomErrorRule({
  this.isErrorType,
  this.selector,
});