Skip to content

Commit dbd8c54

Browse files
committed
Fixed a typo.
1 parent c8cf6eb commit dbd8c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ Breaking changes:
2828
[FormFieldValidator]() object. To compose multiple `FormFieldValidator`s together, use
2929
`FormBuilderValidators.compose()` which takes a list of `FormFieldValidator` objects.
3030
* Due to its limited use, `FormBuilderCountryPicker` was removed from the package. Its functionality could be achieved with use of `FormBuilderSearchableDropdown` which is more extensible.
31-
* `FormBuilderCustomField` functionality is now achievable using `FormBuilderField` class which is the base class from which all fields are built in v4. Follow [these instrictions](#building-your-own-custom-field) to construct your own custom form field using `FormBuilderField`
31+
* `FormBuilderCustomField` functionality is now achieved using `FormBuilderField` class which is the base class from which all fields are built in v4. Follow [these instructions](#building-your-own-custom-field) to construct your own custom form field using `FormBuilderField`.
3232

3333
### Example
3434
```dart
35-
final GlobalKey<FormBuilderState> _formKey = GlobalKey<FormBuilderState>();
35+
final _formKey = GlobalKey<FormBuilderState>();
3636
```
3737
**Note:** Avoid defining the GlobalKey inside your build method because this will create a new GlobalKey on every build cycle bringing about some erratic behavior.
3838

0 commit comments

Comments
 (0)