CustomErrorRule class

A custom error rule.

Constructors

CustomErrorRule({Input<bool>? isErrorType, 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.
const
CustomErrorRule.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isErrorType → Input<bool>?
Mark this message as possible payload in error response. Otherwise, objects of this type will be filtered when they appear in error payload.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selector → Input<String>?
Selects messages to which this rule applies. Refer to selector for syntax details.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited