Bind class Null safety

Binds elements of an HTTP request to a ResourceController's operation method arguments and properties.

See individual constructors and ResourceController for more details.

Constructors

Bind.body({List<String>? accept, List<String>? ignore, List<String>? reject, List<String>? require})
Binds an HTTP request body to an ResourceController property or operation method argument.
const
Bind.header(String? name)
Binds an HTTP request header to an ResourceController property or operation method argument.
const
Bind.path(String? name)
Binds a route variable from RequestPath.variables to an ResourceController operation method argument.
const
Bind.query(String? name)
Binds an HTTP query parameter to an ResourceController property or operation method argument.
const

Properties

accept List<String>?
final
bindingType BindingType
final
hashCode int
The hash code for this object.
read-onlyinherited
ignore List<String>?
final
name String?
final
reject List<String>?
final
require List<String>?
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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