EventSchemaValidator class

Validator that registers and validates event schemas

Constructors

EventSchemaValidator()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEnabled → bool
Check if validation is enabled
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear all registered schemas (for testing)
disable() → void
Disable schema validation
enable() → void
Enable schema validation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerSchema<T extends ModuleEvent>(EventSchema schema) → void
Register a schema for a typed event
registerSignalSchema(String signalName, EventSchema schema) → void
Register a schema for a signal
toString() → String
A string representation of this object.
inherited
validateEvent<T extends ModuleEvent>(T event) → ValidationResult
Validate an event
validateSignal(String signalName, dynamic data) → ValidationResult
Validate signal data

Operators

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