Binding class abstract

The Binding interface, analogous to Gin's "Binding". This interface defines the contract for binding and validating request data.

Implementers

Constructors

Binding()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the binding.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(EngineContext context, dynamic instance) Future<void>
Binds data from the request context to the given instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(EngineContext context, Map<String, String> data, {bool bail = false, Map<String, String>? messages}) Future<void>
Validates the data from the request context.

Operators

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