EndorseField class

The annotation to enhance a Dart class property with Endorse metadata.

EndorseField is not required and only necessary if additional annotations are required on the field. Otherwise, Dart class properties of a EndorseEntity are automatically applied to fields.

name: sets an explict name from the object if different than the class field name. ignore: will ignore this field completely; it will not be included in the validation.

Constructors

EndorseField({List<ValidationBase> validate = const <ValidationBase>[], List<ValidationBase> itemValidate = const <ValidationBase>[], bool ignore = false, Case useCase = Case.none, String name = ''})
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
ignore bool
final
itemValidate List<ValidationBase>
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
useCase Case
final
validate List<ValidationBase>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited