TParameter constructor

TParameter({
  1. required String name,
  2. required String inn,
  3. required TProperty? schema,
  4. required bool required,
  5. required TPropertyType? type,
  6. required bool allowEmptyValue,
  7. required dynamic example,
  8. required String? format,
})

Constructor for TParameter.

Ensures that inn is one of "query", "header", or "path".

Implementation

TParameter({
  required this.name,
  required this.inn,
  required this.schema,
  required this.required,
  required this.type,
  required this.allowEmptyValue,
  required this.example,
  required this.format,
}) : assert(
        inn == "query" || inn == "header" || inn == "path",
        'The "in" field must be either "query", "header", or "path"',
      );