ValidatorRegister class

Interface to register a subclass Validator to determine how to create it from a Map data

Constructors

ValidatorRegister({required Validator creator(), void mapping(Validator validator, String key, dynamic value)?})
Register new subclass Validator

Properties

creator Validator Function()
Function called to create object
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mapping ↔ (void Function(Validator validator, String key, dynamic value)?)
Mapping a key, value to property of object
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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