options<T> abstract method

T options<T>({
  1. required String label,
  2. String? description,
  3. required T initial,
  4. List<Option<T>> options = const [],
})

Creates select field with label, description, initial value and list of options.

Implementation

T options<T>({
  required String label,
  String? description,
  required T initial,
  List<Option<T>> options = const [],
});