ServerParam constructor
ServerParam({
- required String name,
- required ServerType type,
- bool isRequired = false,
- bool isNamed = false,
- String? defaultValue,
- bool hasDefaultValue = false,
- ServerImports? importPath,
- ServerParamAnnotations? annotations,
- 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();