fillField method
For test
Implementation
void fillField([CvFillOptions? options]) {
options ??= CvFillOptions();
if (this is CvListField) {
(this as CvListField).fillList(options);
} else if (this is CvModelMapField) {
(this as CvModelMapField).fillMap(options);
} else if (this is CvModelField) {
var modelValue = (this as CvModelField).create({});
_fillModel(modelValue, options);
v = modelValue as T;
} else if (this is CvFieldWithParent) {
(this as CvFieldWithParent).field.fillField(options);
} else if (options.valueStart != null) {
if (cvTypeGetBuilderOrNull(type) != null) {
throw UnsupportedError(
'$this should likely be a CvModelField<$type> rather than CvField<$type> right?',
);
}
v = options.generateValue(type) as T;
} else {
// Default to null
v = null;
}
}