FFValidateFormAction constructor

FFValidateFormAction({
  1. @Deprecated('This field is deprecated.') String? legacyFormKey,
  2. @Deprecated('This field is deprecated.') FFNodeKeyReference? legacyFormKeyRef,
  3. bool? terminateIfValidationFails,
  4. FFNodeKeyPath? formNodeKeyPath,
})

Implementation

factory FFValidateFormAction({
  @$core.Deprecated('This field is deprecated.') $core.String? legacyFormKey,
  @$core.Deprecated('This field is deprecated.')
  FFNodeKeyReference? legacyFormKeyRef,
  $core.bool? terminateIfValidationFails,
  FFNodeKeyPath? formNodeKeyPath,
}) {
  final result = create();
  if (legacyFormKey != null) result.legacyFormKey = legacyFormKey;
  if (legacyFormKeyRef != null) result.legacyFormKeyRef = legacyFormKeyRef;
  if (terminateIfValidationFails != null)
    result.terminateIfValidationFails = terminateIfValidationFails;
  if (formNodeKeyPath != null) result.formNodeKeyPath = formNodeKeyPath;
  return result;
}