From ab3b8f797ff5598c2608c042496cb54a07445900 Mon Sep 17 00:00:00 2001 From: "Tung Bui (Leo)" <85242618+tungbq@users.noreply.github.com> Date: Mon, 15 May 2023 13:35:49 +0700 Subject: [PATCH] Fix invalidate parameter word error --- lib/src/form_builder_field.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/form_builder_field.dart b/lib/src/form_builder_field.dart index 8501718ea..4b2987b63 100644 --- a/lib/src/form_builder_field.dart +++ b/lib/src/form_builder_field.dart @@ -253,7 +253,7 @@ class FormBuilderFieldState, T> /// Invalidate field with a [errorText] /// - /// Focus field if [shoudlFocus] is `true`. + /// Focus field if [shouldFocus] is `true`. /// By default `true` /// /// Auto scroll when focus invalid if [shouldAutoScrollWhenFocus] is `true`. @@ -265,7 +265,7 @@ class FormBuilderFieldState, T> /// not because [shouldAutoScrollWhenFocus] is `true`. void invalidate( String errorText, { - bool shoudlFocus = true, + bool shouldFocus = true, bool shouldAutoScrollWhenFocus = false, }) { setState(() => _customErrorText = errorText); @@ -273,7 +273,7 @@ class FormBuilderFieldState, T> validate( clearCustomError: false, autoScrollWhenFocusOnInvalid: shouldAutoScrollWhenFocus, - focusOnInvalid: shoudlFocus, + focusOnInvalid: shouldFocus, ); }