CustomSingleSelectField<T> constructor

CustomSingleSelectField<T>({
  1. Key? key,
  2. required List<T> items,
  3. required String title,
  4. required void onSelectionDone(
    1. dynamic value
    )?,
  5. double? width,
  6. String itemAsString(
    1. dynamic value
    )?,
  7. InputDecoration? decoration,
  8. String? validator(
    1. String?
    )?,
  9. T? initialValue,
  10. Color selectedItemColor = Colors.redAccent,
})

Implementation

CustomSingleSelectField({
  Key? key,
  required this.items,
  required this.title,
  required this.onSelectionDone,
  this.width,
  this.itemAsString,
  this.decoration,
  this.validator,
  this.initialValue,
  this.selectedItemColor = Colors.redAccent,
}): super(key: key);