model property
Implementation
@override
GenericItem<T> get model {
final isValid = !currentForm.hasErrors && currentForm.errors.isEmpty;
if (!isValid) {
debugPrintStack(
label:
'[${path ?? 'GenericItemForm<T>'}]\nāā Avoid calling `model` on invalid form. Possible exceptions for non-nullable fields which should be guarded by `required` validator.');
}
return GenericItem<T>(data: _dataValue);
}