Skip to content

Instantly share code, notes, and snippets.

@umuieme
Created October 30, 2021 19:47
Show Gist options
  • Save umuieme/125cf4dde2a93055bfe2efef249d758d to your computer and use it in GitHub Desktop.
Save umuieme/125cf4dde2a93055bfe2efef249d758d to your computer and use it in GitHub Desktop.
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