ValidationRuleRegistry class
Constructors
Properties
-
entries
→ Map<
String, ValidationRuleFactory> -
Provides direct access to the internal map of entries.
no setterinherited
-
entryNames
→ Iterable<
String> -
An iterable of all entry names in the registry.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
names
→ Iterable<
String> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearEntries(
) → void -
Clears all entries from the registry.
inherited
-
contains(
String name) → bool -
containsEntry(
String name) → bool -
Checks if an entry with the given
nameexists in the registry.inherited -
duplicateDiagnostics(
String name) → String -
Generates diagnostic information for duplicate entries with the given
name.inherited -
entryOrigin(
String name) → StackTrace? -
Retrieves the stack trace of the original registration for the given
name.inherited -
getEntry(
String name) → ValidationRuleFactory? -
Retrieves the entry associated with the given
name.inherited -
normalizeName(
String name) → String -
Normalizes the given
nameby trimming and converting it to lowercase.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDuplicate(
String name, ValidationRuleFactory existing, bool overrideExisting) → bool -
Handles duplicate entries with the given
nameandexistingvalue.inherited -
register(
ValidationRuleFactory factory) → void -
registerEntry(
String name, ValidationRuleFactory value, {bool overrideExisting = true}) → bool -
Registers an entry with the given
nameandvalue.inherited -
resolve(
String name) → ValidationRuleFactory? -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterEntry(
String name) → bool -
Unregisters the entry with the given
name.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited