ControllerArg class

One parameter of a controller.

Constructors

ControllerArg(ArgKind kind, {DtoSchema<Object>? dto, PathType pathType = PathType.string, bool nullable = false, String param = '', Object? value, Type? type})
const

Properties

dto → DtoSchema<Object>?
the DTO, for ArgKind.dto
final
hashCode → int
The hash code for this object.
no setterinherited
kind → ArgKind
final
nullable → bool
int?: the param may be missing ({id?})
final
param → String
the name of the path param, also for ArgKind.bound
final
pathType → PathType
the type of a path param
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Type?
ArgKind.inject: the container type
final
value → Object?
ArgKind.inject: the instance from the container, made at start. null for a singleton: false class: then type is made each time.
final

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