Skip to content

Commit 8cfd21a

Browse files
Merge branch 'main' into fix-1230-improve-focus-validation
2 parents 7019dcc + 5dbe5b5 commit 8cfd21a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/form_builder_field.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class FormBuilderFieldState<F extends FormBuilderField<T>, T>
256256

257257
/// Invalidate field with a [errorText]
258258
///
259-
/// Focus field if [shoudlFocus] is `true`.
259+
/// Focus field if [shouldFocus] is `true`.
260260
/// By default `true`
261261
///
262262
/// Auto scroll when focus invalid if [shouldAutoScrollWhenFocus] is `true`.
@@ -268,15 +268,15 @@ class FormBuilderFieldState<F extends FormBuilderField<T>, T>
268268
/// not because [shouldAutoScrollWhenFocus] is `true`.
269269
void invalidate(
270270
String errorText, {
271-
bool shoudlFocus = true,
271+
bool shouldFocus = true,
272272
bool shouldAutoScrollWhenFocus = false,
273273
}) {
274274
setState(() => _customErrorText = errorText);
275275

276276
validate(
277277
clearCustomError: false,
278278
autoScrollWhenFocusOnInvalid: shouldAutoScrollWhenFocus,
279-
focusOnInvalid: shoudlFocus,
279+
focusOnInvalid: shouldFocus,
280280
);
281281
}
282282

0 commit comments

Comments
 (0)