Add docs to FormFieldValidator (#30645)

To describe what its return value represents
This commit is contained in:
Todd Volkert
2019-04-07 21:00:53 -07:00
committed by GitHub
parent b3aa852a7a
commit 535523dbe0

View File

@@ -229,6 +229,9 @@ class _FormScope extends InheritedWidget {
/// Signature for validating a form field.
///
/// Returns an error string to display if the input is invalid, or null
/// otherwise.
///
/// Used by [FormField.validator].
typedef FormFieldValidator<T> = String Function(T value);