Created
October 30, 2021 19:47
-
-
Save umuieme/125cf4dde2a93055bfe2efef249d758d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CustomDropDownFormField<String>( | |
validator: (value) => | |
(value?.isNotEmpty ?? false) ? null : "Cannot be null", | |
items: AppConstant.timeOptions | |
.map((e) => DropdownMenuItem( | |
child: Text(e), | |
value: e, | |
)) | |
.toList(), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment