ExtendedBuildContext extension

on

Methods

clearFocus() → void

Available on BuildContext, provided by the ExtendedBuildContext extension

Clear current context focus. This is the cleanest, official way.
validateForm({VoidCallback? onSuccess, bool scrollToFirstInvalid = false}) → void

Available on BuildContext, provided by the ExtendedBuildContext extension

Validate the enclosing Form. If scrollToFirstInvalid is true and validation fails, scrolls to the first invalid field.