mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-19 09:13:44 +02:00
Fixed comments
This commit is contained in:
parent
2f633eff7c
commit
29a90a377b
2 changed files with 7 additions and 14 deletions
|
@ -19,12 +19,9 @@ class ItemBuilder {
|
|||
);
|
||||
|
||||
late InputDecoration inputDecoration;
|
||||
if (options.inputDecorationField != null &&
|
||||
options.inputDecorationField![key] != null) {
|
||||
inputDecoration = options.inputDecorationField![key]!;
|
||||
} else {
|
||||
inputDecoration = options.inputDecoration;
|
||||
}
|
||||
|
||||
inputDecoration =
|
||||
options.inputDecorationField?[key] ?? options.inputDecoration;
|
||||
|
||||
return Form(
|
||||
key: formKey,
|
||||
|
@ -39,11 +36,7 @@ class ItemBuilder {
|
|||
}
|
||||
},
|
||||
validator: (value) {
|
||||
if (options.validators != null &&
|
||||
options.validators![key] != null) {
|
||||
return options.validators![key]!(value);
|
||||
}
|
||||
return null;
|
||||
return options.validators?[key]?.call(value);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue