SubmittableJsonFieldState extension
The submission gate: whether a state passes under a SchemaValidationMode.
- on
Methods
-
isSubmittable(
SchemaValidationMode mode) → bool -
Available on JsonFieldState<
Whether submission gates (the dialogs' OK buttons) accept this state underSchema> , provided by the SubmittableJsonFieldState extensionmode: validated and free of blocking errors. Under SchemaValidationMode.strict every error blocks (equivalent to JsonFieldState.isValid); under SchemaValidationMode.lenient a validator-rejected schema does not. Under SchemaValidationMode.none validation is skipped, so a validated state is clean by construction — the lenient rule returns the same result.