Add docs to FormFieldValidator (#30645)
To describe what its return value represents
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user