param method
Hook
param({
- required String key,
- dynamic defaultValue,
- Validator? validator,
- String description = '',
- bool optional = false,
inherited
Set hook param
Implementation
Hook param({
required String key,
dynamic defaultValue,
Validator? validator,
String description = '',
bool optional = false,
}) {
_params[key] = Param(
defaultValue: defaultValue,
validator: validator,
description: description,
value: null,
optional: optional,
);
_argsOrder.add(key);
return this;
}