Form.dart doc typo fixes (#9302)
Came across "can ve" while experimenting with Forms using VSCode and Dart Code. Glanced over the rest of the docs for typos while I was at it.
diff --git a/packages/flutter/lib/src/widgets/form.dart b/packages/flutter/lib/src/widgets/form.dart
index a04c40f..0bb1b81 100644
--- a/packages/flutter/lib/src/widgets/form.dart
+++ b/packages/flutter/lib/src/widgets/form.dart
@@ -64,7 +64,7 @@
/// State assocated with a [Form] widget.
///
-/// A [FormState] object can ve used to [save], [reset], and [validate] every
+/// A [FormState] object can be used to [save], [reset], and [validate] every
/// [FormField] that is a descendant of the associated [Form].
///
/// Typically obtained via [Form.of].
@@ -117,7 +117,7 @@
}
/// Validates every [FormField] that is a descendant of this [Form], and
- /// returns true iff there are no errors.
+ /// returns true if there are no errors.
bool validate() {
_fieldDidChange();
return _validate();
@@ -221,7 +221,7 @@
/// An optional value to initialize the form field to, or null otherwise.
final T initialValue;
- /// If true, this form fields will validate and update its error text
+ /// If true, this form field will validate and update its error text
/// immediately after every change. Otherwise, you must call
/// [FormFieldState.validate] to validate. If part of a [Form] that
/// autovalidates, this value will be ignored.