Commit 55e51e79 authored by Kyle Bradshaw's avatar Kyle Bradshaw Committed by Adam Barth

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.
parent 9350f287
......@@ -64,7 +64,7 @@ class Form extends StatefulWidget {
/// 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 @@ class FormState extends State<Form> {
}
/// 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 @@ class FormField<T> extends StatefulWidget {
/// 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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment