Unverified Commit 535523db authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Add docs to FormFieldValidator (#30645)

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