DartnessParam class

The param data from the route method required to handle the class annotated with Controller internally by the Dartness framework.

Constructors

DartnessParam({required String name, required bool isQuery, required bool isPath, required bool isBody, required bool isNamed, required bool isPositional, required bool isOptional, required Type type, dynamic defaultValue, Function? fromJson})

Properties

defaultValue → dynamic
The default value of the param.
final
fromJson Function?
The function to convert the param from json.
final
hashCode int
The hash code for this object.
no setterinherited
isBody bool
Whether the param is a body param.
final
isNamed bool
Whether the param is a named param.
final
isOptional bool
Whether the param is optional.
final
isPath bool
Whether the param is a path param.
final
isPositional bool
Whether the param is a positional param.
final
isQuery bool
Whether the param is a query param.
final
name String
The name of the param.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
The type of the param.
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