status property Null safety

FormzInputStatus status
inherited

The FormzInputStatus which can be one of the following:

  • FormzInputStatus.pure
    • if the input has not been modified.
  • FormzInputStatus.invalid
    • if the input has been modified and validation failed.
  • FormzInputStatus.valid
    • if the input has been modified and validation succeeded.

Implementation

FormzInputStatus get status => pure
    ? FormzInputStatus.pure
    : valid
        ? FormzInputStatus.valid
        : FormzInputStatus.invalid;