NyFormPicker constructor

NyFormPicker({
  1. Key? key,
  2. required String name,
  3. required List<String> options,
  4. String? selectedValue,
  5. BottomModalSheetStyle? bottomModalSheetStyle,
  6. dynamic onChanged(
    1. dynamic value
    )?,
})

Creates a NyFormPicker widget

Implementation

NyFormPicker({
  super.key,
  required String name,
  required List<String> options,
  String? selectedValue,
  BottomModalSheetStyle? bottomModalSheetStyle,
  this.onChanged,
}) : field = Field(name, value: selectedValue)
        ..cast = FormCast.picker(
            options: options, bottomModalSheetStyle: bottomModalSheetStyle);