param method

Hook param({
  1. required String key,
  2. dynamic defaultValue,
  3. Validator? validator,
  4. String description = '',
  5. 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;
}