FieldModel constructor

FieldModel({
  1. required String fId,
  2. required String type,
  3. required String text,
  4. dynamic defaultValue,
  5. List<Option>? options,
  6. bool? isRequired,
  7. bool? isVisible,
  8. Dependency? dependencies,
  9. dynamic currentAnswer,
})

Implementation

FieldModel({
  required this.fId,
  required this.type,
  required this.text,
  this.defaultValue,
  this.options,
  bool? isRequired,
  bool? isVisible,
  this.dependencies,
  this.currentAnswer,
})  : isRequired = isRequired ?? false,
      isVisible = isVisible ?? true;