Merge pull request #5 from SimonIT/AutovalidateMode-null-safety

Null safety for autovalidateMode
This commit is contained in:
reidha 2021-11-28 21:12:52 +08:00 committed by GitHub
commit 3a86cf95e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ class CheckboxIconFormField extends FormField<bool> {
BuildContext? context,
FormFieldSetter<bool>? onSaved,
bool initialValue = false,
AutovalidateMode autovalidateMode,
AutovalidateMode? autovalidateMode,
bool enabled = true,
IconData trueIcon = Icons.check,
IconData falseIcon = Icons.check_box_outline_blank,

View file

@ -9,7 +9,7 @@ class CheckboxListTileFormField extends FormField<bool> {
FormFieldSetter<bool>? onSaved,
FormFieldValidator<bool>? validator,
bool initialValue = false,
AutovalidateMode autovalidateMode,
AutovalidateMode? autovalidateMode,
bool enabled = true,
bool dense = false,
Color? errorColor,