model property
Implementation
@override
ReservationState get model {
final isValid = !currentForm.hasErrors && currentForm.errors.isEmpty;
if (!isValid) {
debugPrintStack(
label:
'[${path ?? 'ReservationStateForm'}]\nāā Avoid calling `model` on invalid form. Possible exceptions for non-nullable fields which should be guarded by `required` validator.');
}
return ReservationState(
uid: _uidValue,
createdAt: _createdAtValue,
updatedAt: _updatedAtValue,
filePaths: _filePathsValue);
}