ServerParam constructor

ServerParam({
  1. required String name,
  2. required ServerType type,
  3. bool isRequired = false,
  4. bool isNamed = false,
  5. String? defaultValue,
  6. bool hasDefaultValue = false,
  7. ServerImports? importPath,
  8. ServerParamAnnotations? annotations,
  9. AnnotationArgument? argument,
})

Implementation

ServerParam({
  required this.name,
  required this.type,
  this.isRequired = false,
  this.isNamed = false,
  this.defaultValue,
  this.hasDefaultValue = false,
  this.importPath,
  ServerParamAnnotations? annotations,
  AnnotationArgument? argument,
}) : _argument = argument,
     annotations = annotations ?? ServerParamAnnotations.none();