define method

T define(
  1. String value
)

defines the parameter for this path's Param._param

Implementation

T define(String value) {
  final param = _param;

  assert(param != null && param.isNotEmpty, 'param cannot be null or empty');
  _params[param!] = value;

  return this as T;
}